private int baseQuantityToSpawn | Starting number of prefabs to spawn per chunk before constraints change it. |
private SpawnConstrain[] constrains | Checks that can change the quantity or cancel spawning for this chunk. |
private float floorThreshold | Floor layer value below which a cell counts as open, used to find the floor height. |
private bool hasIdentityRotation | If set, spawned objects are not rotated. |
private bool isOrientedWithFace | If set, objects are rotated to the surface normal found by the raycast. |
private bool isOrientedWithFaceUpForced | With face orientation, skips the extra 90 degree tilt so the object's forward points along the normal. |
private bool isRaycastDown | Raycast down if set, otherwise up. |
private bool isRaycasted | If set, raycasts to find the surface and drops the spawn if nothing is hit. |
private bool isRotationRandom | If set, uses a fully random rotation instead of a random Y rotation. |
private bool isUsingFloorLayer | If set, lifts the spawn to the floor height read from the floor plugin's layer. |
private float offset | Height offset added to the spawn position (and above the raycast hit). |
private float orientationWeight | Blend between a random Y rotation (0) and the surface orientation (1). |
private NetworkPrefab prefab | The networked prefab to spawn. |
private float raycastDistance | Maximum raycast length. |
private LayerMask raycastMask | Layers the raycast can hit. |
private float yNormalMaximum | Highest allowed Y of the hit normal; steeper or flatter surfaces are skipped. |
private float yNormalMinimum | Lowest allowed Y of the hit normal. |