Meta SDK2 Beta  2.7.0
Meta.PrefabInstantiator Class Reference

Handles creation and destruction of a prefab. More...

Inheritance diagram for Meta.PrefabInstantiator:

Public Member Functions

InstantiateObject< T > (T prefab)
 Instantiates an object from a prefab. More...
 
void DestroyGameObject (UnityEngine.Object go)
 Destroys the game object go. More...
 
void Destroy ()
 Destroys this object. More...
 

Detailed Description

Handles creation and destruction of a prefab.

Member Function Documentation

◆ Destroy()

void Meta.PrefabInstantiator.Destroy ( )
inline

Destroys this object.

◆ DestroyGameObject()

void Meta.PrefabInstantiator.DestroyGameObject ( UnityEngine.Object  go)
inline

Destroys the game object go.

Parameters
goThe game object to be destroyed.

◆ InstantiateObject< T >()

T Meta.PrefabInstantiator.InstantiateObject< T > ( prefab)
inline

Instantiates an object from a prefab.

Parameters
prefabThe prefab.
Returns
The new object.
Type Constraints
T :UnityEngine.Object