mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
commit
3231848017
@ -69,6 +69,7 @@ namespace NewHorizons.Builder.Props
|
||||
var detailInfo = new PropModule.DetailInfo()
|
||||
{
|
||||
scale = propInfo.scale,
|
||||
stretch = propInfo.stretch,
|
||||
keepLoaded = propInfo.keepLoaded
|
||||
};
|
||||
var scatterPrefab = DetailBuilder.Make(go, sector, prefab, detailInfo);
|
||||
|
||||
7
NewHorizons/External/Modules/PropModule.cs
vendored
7
NewHorizons/External/Modules/PropModule.cs
vendored
@ -123,7 +123,12 @@ namespace NewHorizons.External.Modules
|
||||
/// <summary>
|
||||
/// Scale this prop once it is placed
|
||||
/// </summary>
|
||||
public float scale = 1f;
|
||||
[DefaultValue(1f)] public float scale = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// Scale each axis of the prop. Overrides `scale`.
|
||||
/// </summary>
|
||||
public MVector3 stretch;
|
||||
|
||||
/// <summary>
|
||||
/// The number used as entropy for scattering the props
|
||||
|
||||
@ -1376,7 +1376,12 @@
|
||||
"scale": {
|
||||
"type": "number",
|
||||
"description": "Scale this prop once it is placed",
|
||||
"format": "float"
|
||||
"format": "float",
|
||||
"default": 1.0
|
||||
},
|
||||
"stretch": {
|
||||
"description": "Scale each axis of the prop. Overrides `scale`.",
|
||||
"$ref": "#/definitions/MVector3"
|
||||
},
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user