scatter builder keep loaded

This commit is contained in:
JohnCorby 2022-09-07 17:33:38 -07:00
parent 7a67a1f980
commit da211eff75
2 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,7 @@ namespace NewHorizons.Builder.Props
{ {
position = point.normalized * height, position = point.normalized * height,
scale = propInfo.scale, scale = propInfo.scale,
keepLoaded = propInfo.keepLoaded,
alignToNormal = true alignToNormal = true
}; };
var prop = DetailBuilder.Make(go, sector, prefab, detailInfo); var prop = DetailBuilder.Make(go, sector, prefab, detailInfo);

View File

@ -139,6 +139,11 @@ namespace NewHorizons.External.Modules
/// The highest height that these objects will be placed at (only relevant if there's a heightmap) /// The highest height that these objects will be placed at (only relevant if there's a heightmap)
/// </summary> /// </summary>
public float? maxHeight; public float? maxHeight;
/// <summary>
/// Should this detail stay loaded even if you're outside the sector (good for very large props)
/// </summary>
public bool keepLoaded;
} }
[JsonObject] [JsonObject]