Level Generator 2D

Spawner Members

The Spawner type exposes the following members.

Methods


  Name Description
Public method AddSpawnable
Adds a spawnable Game Object
Public method BroadcastMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public method BroadcastMessage(String, Object) (Inherited from Component.)
Public method BroadcastMessage(String) (Inherited from Component.)
Public method BroadcastMessage(String, SendMessageOptions) (Inherited from Component.)
Public method CancelInvoke()()()() (Inherited from MonoBehaviour.)
Public method CancelInvoke(String) (Inherited from MonoBehaviour.)
Public method CompareTag (Inherited from Component.)
Public method Equals (Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetComponent(Type) (Inherited from Component.)
Public method GetComponent(String) (Inherited from Component.)
Public method GetComponent``1()()()() (Inherited from Component.)
Public method GetComponentInChildren(Type, Boolean) (Inherited from Component.)
Public method GetComponentInChildren(Type) (Inherited from Component.)
Public method GetComponentInChildren``1()()()() (Inherited from Component.)
Public method GetComponentInChildren``1(Boolean) (Inherited from Component.)
Public method GetComponentInParent(Type) (Inherited from Component.)
Public method GetComponentInParent``1()()()() (Inherited from Component.)
Public method GetComponents(Type) (Inherited from Component.)
Public method GetComponents(Type, List<(Of <<'(Component>)>>)) (Inherited from Component.)
Public method GetComponents``1(List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponents``1()()()() (Inherited from Component.)
Public method GetComponentsInChildren(Type) (Inherited from Component.)
Public method GetComponentsInChildren(Type, Boolean) (Inherited from Component.)
Public method GetComponentsInChildren``1(Boolean) (Inherited from Component.)
Public method GetComponentsInChildren``1(Boolean, List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponentsInChildren``1()()()() (Inherited from Component.)
Public method GetComponentsInChildren``1(List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponentsInParent(Type) (Inherited from Component.)
Public method GetComponentsInParent(Type, Boolean) (Inherited from Component.)
Public method GetComponentsInParent``1(Boolean) (Inherited from Component.)
Public method GetComponentsInParent``1(Boolean, List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponentsInParent``1()()()() (Inherited from Component.)
Public method GetHashCode (Inherited from Object.)
Public method GetInstanceID (Inherited from Object.)
Public method GetMaxSpawns
gets the maximum number of game objects that this spawner will spawn
Public method GetMinSpawns
Gets the minimum number of GameObjects this spawner will spawn
Public method GetSpawnables
Gets the spawnable game objects for this spawner
Public method GetSpawnChance
Gets the chance a GameObject will be spawned
Public method GetSpawnOnStart
Gets whether or not the spawner will spawn on start
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetWeights
Gets the weights for the spawnable game objects
Public method Invoke (Inherited from MonoBehaviour.)
Public method InvokeRepeating (Inherited from MonoBehaviour.)
Public method IsInvoking(String) (Inherited from MonoBehaviour.)
Public method IsInvoking()()()() (Inherited from MonoBehaviour.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveSpawnable
Removes a spawnable game object from the options
Public method SendMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public method SendMessage(String, Object) (Inherited from Component.)
Public method SendMessage(String) (Inherited from Component.)
Public method SendMessage(String, SendMessageOptions) (Inherited from Component.)
Public method SendMessageUpwards(String, Object, SendMessageOptions) (Inherited from Component.)
Public method SendMessageUpwards(String, Object) (Inherited from Component.)
Public method SendMessageUpwards(String) (Inherited from Component.)
Public method SendMessageUpwards(String, SendMessageOptions) (Inherited from Component.)
Public method SetMaxSpawnableSize
Sets the size for the spawnable outline
Public method SetMaxSpawns
Sets the maximum number of gameobjects that will be spawned
Public method SetMinSpawns
Sets the minimum number of GameObjects that this spawner will spawn
Public method SetSpawnChance
Sets the chance of a GameObject spawning
Public method SetSpawnOnStart
Set whether or not the spawner should spawn on start
Public method SetWeight
Sets the weight for a spawnable game object
Public method Spawn
Spawns random game objects based on their weights
Public method StartCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public method StartCoroutine(String, Object) (Inherited from MonoBehaviour.)
Public method StartCoroutine(String) (Inherited from MonoBehaviour.)
Public method StartCoroutine_Auto (Inherited from MonoBehaviour.)
Public method StopAllCoroutines (Inherited from MonoBehaviour.)
Public method StopCoroutine(String) (Inherited from MonoBehaviour.)
Public method StopCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public method StopCoroutine(Coroutine) (Inherited from MonoBehaviour.)
Public method ToString (Inherited from Object.)

Properties


  Name Description
Public property animation (Inherited from Component.)
Public property audio (Inherited from Component.)
Public property camera (Inherited from Component.)
Public property collider (Inherited from Component.)
Public property collider2D (Inherited from Component.)
Public property constantForce (Inherited from Component.)
Public property enabled (Inherited from Behaviour.)
Public property gameObject (Inherited from Component.)
Public property guiElement (Inherited from Component.)
Public property guiText (Inherited from Component.)
Public property guiTexture (Inherited from Component.)
Public property hideFlags (Inherited from Object.)
Public property hingeJoint (Inherited from Component.)
Public property isActiveAndEnabled (Inherited from Behaviour.)
Public property light (Inherited from Component.)
Public property name (Inherited from Object.)
Public property networkView (Inherited from Component.)
Public property particleEmitter (Inherited from Component.)
Public property particleSystem (Inherited from Component.)
Public property renderer (Inherited from Component.)
Public property rigidbody (Inherited from Component.)
Public property rigidbody2D (Inherited from Component.)
Public property tag (Inherited from Component.)
Public property transform (Inherited from Component.)
Public property useGUILayout (Inherited from MonoBehaviour.)

Events


  Name Description
Public event Static member OnSpawn
Event called when spawnable spawns