Class PropSpawner
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class PropSpawner : MonoBehaviour
- Inheritance
-
PropSpawner
- Inherited Members
-
- Extension Methods
-
Constructors
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
Field Value
- float
minHeight
Field Value
- float
minScale
Field Value
- float
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
Field Value
- float
sphereSampler
public SphereSampler sphereSampler
Field Value
- SphereSampler
useFirstChild
public bool useFirstChild
Field Value
- bool
usePerlin
Field Value
- bool
Methods
Clear()
Collides(GameObject)
public bool Collides(GameObject spawned)
Parameters
spawned
GameObject
Returns
- bool
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()
SpawnObject()
public bool SpawnObject()
Returns
- bool