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.

Member Enumerations

Enumeration SpawnLocation

Defines possible locations where objects can be spawned.
Floating
No description available
AnySurface
No description available
VerticalSurfaces
No description available
OnTopOfSurfaces
No description available
HangingDown
No description available

Fields

MRUK.RoomFilter SpawnOnStart[Get]
GameObject SpawnObject[Get]
int SpawnAmount[Get]
int MaxIterations[Get]
SpawnLocation SpawnLocations[Get]
bool CheckOverlaps[Get]
float OverrideBounds[Get]
LayerMask LayerMask[Get]
float SurfaceClearanceDistance[Get]

Member Functions

Starts the spawning process for all rooms.
Starts the spawning process for a specific room.
Parameters
room
The room to spawn objects in.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon