C# Class UnityPlatformer.InstancePrefab

Instance a prefab on start
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: llafuente/unity-platformer Class Usage Examples

Méthodes publiques

Свойство Type Description
attachToRoot bool
placeholder UnityEngine.Sprite
prefab UnityEngine.GameObject

Méthodes publiques

Méthode Description
Awake ( ) : void

NOTE no virtual on purpose. override OnAwake

OnAwake ( bool notify = true ) : void

Instance the prefab, rename and attach it

OnDrawGizmos ( ) : void

Draw placeholder + name in editor mode.

Rename ( Transform transform ) : void

Rename logic: append counter to the name

Method Details

Awake() public méthode

NOTE no virtual on purpose. override OnAwake
public Awake ( ) : void
Résultat void

OnAwake() public méthode

Instance the prefab, rename and attach it
public OnAwake ( bool notify = true ) : void
notify bool true -> SendMessage: OnInstancePrefab
Résultat void

OnDrawGizmos() public méthode

Draw placeholder + name in editor mode.
public OnDrawGizmos ( ) : void
Résultat void

Rename() public méthode

Rename logic: append counter to the name
public Rename ( Transform transform ) : void
transform UnityEngine.Transform
Résultat void

Property Details

attachToRoot public_oe property

Attach the prefab as a child or at root node.
public bool attachToRoot
Résultat bool

placeholder public_oe property

Placeholder sprite for editor, to see something
public Sprite,UnityEngine placeholder
Résultat UnityEngine.Sprite

prefab public_oe property

Prefab to instance
public GameObject,UnityEngine prefab
Résultat UnityEngine.GameObject