Instance a prefab on start
More...
|
void | Awake () |
| NOTE no virtual on purpose. override OnAwake More...
|
|
virtual void | RenameInstance (string rootName, int index) |
| Rename logic: append counter to the name More...
|
|
virtual void | OnAwake (bool notify=true) |
| Instance the prefab, rename and attach it More...
|
|
Instance a prefab on start
◆ Awake()
void UnityPlatformer.InstancePrefab.Awake |
( |
| ) |
|
|
inline |
NOTE no virtual on purpose. override OnAwake
◆ OnAwake()
virtual void UnityPlatformer.InstancePrefab.OnAwake |
( |
bool |
notify = true | ) |
|
|
inlinevirtual |
Instance the prefab, rename and attach it
- Parameters
-
notify | true -> SendMessage: OnInstancePrefab |
Reimplemented in UnityPlatformer.PlayerStart.
◆ RenameInstance()
virtual void UnityPlatformer.InstancePrefab.RenameInstance |
( |
string |
rootName, |
|
|
int |
index |
|
) |
| |
|
inlinevirtual |
Rename logic: append counter to the name
◆ attachToRoot
bool UnityPlatformer.InstancePrefab.attachToRoot = true |
Attach the prefab as a child or at root node.
◆ instance
GameObject UnityPlatformer.InstancePrefab.instance = null |
reference to instanced prefab
◆ placeholder
Sprite UnityPlatformer.InstancePrefab.placeholder |
Placeholder sprite for editor, to see something
◆ prefab
GameObject UnityPlatformer.InstancePrefab.prefab |
The documentation for this class was generated from the following file:
- Assets/UnityPlatformer/Scripts/Utils/InstancePrefab.cs