메소드 | 설명 | |
---|---|---|
CopyTo ( GameObject obj ) : void |
Copies this Prefabs data to a GameObject without linking itsself to it.
|
|
CopyTo ( IEnumerable |
Copies a subset of this Prefabs data to a specific Component.
|
|
HasComponent ( IEnumerable |
Returns whether this Prefab contains a Component inside a GameObject with the specified
|
|
HasGameObject ( IEnumerable |
Returns whether this Prefab contains a GameObject with the specified
|
|
Inject ( GameObject obj ) : void |
Discards previous data and injects the specified GameObject into the Prefab. The GameObject itsself will not be affected, instead a GameObject.Clone of it will be used for the Prefab.
|
|
Instantiate ( ) : GameObject |
Instantiates the Prefab.
|
|
Prefab ( ) : System |
Creates a new, empty Prefab.
|
|
Prefab ( GameObject obj ) : System |
Creates a new Prefab out of a GameObject.
|
메소드 | 설명 | |
---|---|---|
OnCopyTo ( Resource r, CloneProvider provider ) : void | ||
OnLoaded ( ) : void |
public CopyTo ( GameObject obj ) : void | ||
obj | GameObject | The GameObject to which the Prefabs data is copied. |
리턴 | void |
public CopyTo ( IEnumerable |
||
baseObjAddress | IEnumerable |
The GameObject IndexPath to locate the source Component |
target | Component | The Component to which the Prefabs data is copied. |
리턴 | void |
public HasComponent ( IEnumerable |
||
gameObjIndexPath | IEnumerable |
The |
cmpType | The Component type to search for inside the found GameObject. | |
리턴 | bool |
public HasGameObject ( IEnumerable |
||
indexPath | IEnumerable |
The |
리턴 | bool |
public Inject ( GameObject obj ) : void | ||
obj | GameObject | The object to inject as Prefab root object. |
리턴 | void |
protected OnCopyTo ( Resource r, CloneProvider provider ) : void | ||
r | Resource | |
provider | CloneProvider | |
리턴 | void |