Meta SDK2 Beta  2.7.0
Meta.MonoBehaviourProxy< T > Class Template Reference

Handles the access to a prefab, in order to create and destroy one instance of it. More...

Inheritance diagram for Meta.MonoBehaviourProxy< T >:
Meta.IMonoBehaviourProxy< T >

Public Member Functions

 MonoBehaviourProxy (T prefab)
 Creates an instance of CurrentObject class. More...
 
Create ()
 Creates a new instance of the prefab. More...
 
void Destroy ()
 Destroys the current instantiated object. More...
 

Properties

CurrentObject [get]
 Gets the current instantiated object. More...
 

Detailed Description

Handles the access to a prefab, in order to create and destroy one instance of it.

Template Parameters
TPrefab type.
Type Constraints
T :UnityEngine.Object 

Constructor & Destructor Documentation

◆ MonoBehaviourProxy()

Meta.MonoBehaviourProxy< T >.MonoBehaviourProxy ( prefab)
inline

Creates an instance of CurrentObject class.

Member Function Documentation

◆ Create()

T Meta.MonoBehaviourProxy< T >.Create ( )
inline

Creates a new instance of the prefab.

Implements Meta.IMonoBehaviourProxy< T >.

◆ Destroy()

void Meta.MonoBehaviourProxy< T >.Destroy ( )
inline

Destroys the current instantiated object.

Implements Meta.IMonoBehaviourProxy< T >.

Property Documentation

◆ CurrentObject

T Meta.MonoBehaviourProxy< T >.CurrentObject
get

Gets the current instantiated object.