API reference

FindSpawnPositions Class

Extends MonoBehaviour
Allows for fast generation of valid (inside the room, outside furniture bounds) random positions for content spawning.
Optional method to pin directly to surfaces.

Fields

CheckOverlaps : bool
Signature
bool CheckOverlaps
Signature
MRUKAnchor.SceneLabels Labels
LayerMask : LayerMask
Signature
LayerMask LayerMask
MaxIterations : int
Signature
int MaxIterations
OverrideBounds : float
Signature
float OverrideBounds
SpawnAmount : int
Signature
int SpawnAmount
SpawnLocations : SpawnLocation
Signature
SpawnLocation SpawnLocations
SpawnObject : GameObject
Signature
GameObject SpawnObject
SpawnOnStart : MRUK.RoomFilter
Signature
MRUK.RoomFilter SpawnOnStart
SurfaceClearanceDistance : float
Signature
float SurfaceClearanceDistance

Methods

StartSpawn ()
Starts the spawning process for all rooms.
Signature
void StartSpawn()
Returns
void
StartSpawn ( room )
Starts the spawning process for a specific room.
Signature
void StartSpawn(MRUKRoom room)
Parameters
room: MRUKRoom  The room to spawn objects in.
Returns
void

Inner Enum

SpawnLocation Enum

Defines possible locations where objects can be spawned.

Enumeration Constants

Member
Floating
AnySurface
VerticalSurfaces
OnTopOfSurfaces
HangingDown