Table of Contents

Class PropSpawner

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class PropSpawner : MonoBehaviour
Inheritance
PropSpawner
Inherited Members
Extension Methods

Constructors

PropSpawner()

public PropSpawner()

Fields

allowedPenetration

public float allowedPenetration

Field Value

float

boxSampler

public BoxSampler boxSampler

Field Value

BoxSampler

collisionType

public PropSpawner.CollisionType collisionType

Field Value

PropSpawner.CollisionType

groundPosition

public bool groundPosition

Field Value

bool

maxScale

public float maxScale

Field Value

float

minHeight

public float minHeight

Field Value

float

minScale

public float minScale

Field Value

float

nrOfSpawns

public int nrOfSpawns

Field Value

int

objectsToSpawn

public GameObject[] objectsToSpawn

Field Value

GameObject[]

perlin

public PerlinSampler perlin

Field Value

PerlinSampler

randomRotation

[Range(0, 1)]
public float randomRotation

Field Value

float

samplerType

public PropSpawner.SamplerType samplerType

Field Value

PropSpawner.SamplerType

scalePow

public float scalePow

Field Value

float

sphereSampler

public SphereSampler sphereSampler

Field Value

SphereSampler

useFirstChild

public bool useFirstChild

Field Value

bool

usePerlin

public bool usePerlin

Field Value

bool

Methods

Clear()

public void Clear()

Collides(GameObject)

public bool Collides(GameObject spawned)

Parameters

spawned GameObject

Returns

bool

ConfigTransform(GameObject)

public void ConfigTransform(GameObject spawned)

Parameters

spawned GameObject

GetPosition()

public Vector3 GetPosition()

Returns

Vector3

GetRotation(Quaternion)

public Quaternion GetRotation(Quaternion currentRotation)

Parameters

currentRotation Quaternion

Returns

Quaternion

GetSourceObject()

public GameObject GetSourceObject()

Returns

GameObject

OnDrawGizmosSelected()

public void OnDrawGizmosSelected()

Spawn()

public void Spawn()

SpawnObject()

public bool SpawnObject()

Returns

bool