C# 클래스 Duality.Resources.Prefab

상속: Resource
파일 보기 프로젝트 열기: BraveSirAndrew/duality 1 사용 예제들

공개 메소드들

메소드 설명
CopyTo ( GameObject obj ) : void

Copies this Prefabs data to a GameObject without linking itsself to it.

CopyTo ( IEnumerable baseObjAddress, Component target ) : void

Copies a subset of this Prefabs data to a specific Component.

HasComponent ( IEnumerable gameObjIndexPath, Type cmpType ) : bool

Returns whether this Prefab contains a Component inside a GameObject with the specified index path. It is based on this Prefabs root GameObject.

HasGameObject ( IEnumerable indexPath ) : bool

Returns whether this Prefab contains a GameObject with the specified index path. It is based on this Prefabs root GameObject.

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

메소드 상세

CopyTo() 공개 메소드

Copies this Prefabs data to a GameObject without linking itsself to it.
public CopyTo ( GameObject obj ) : void
obj GameObject The GameObject to which the Prefabs data is copied.
리턴 void

CopyTo() 공개 메소드

Copies a subset of this Prefabs data to a specific Component.
public CopyTo ( IEnumerable baseObjAddress, Component target ) : void
baseObjAddress IEnumerable The GameObject IndexPath to locate the source Component
target Component The Component to which the Prefabs data is copied.
리턴 void

HasComponent() 공개 메소드

Returns whether this Prefab contains a Component inside a GameObject with the specified index path. It is based on this Prefabs root GameObject.
public HasComponent ( IEnumerable gameObjIndexPath, Type cmpType ) : bool
gameObjIndexPath IEnumerable The index path at which to search for a GameObject.
cmpType System.Type The Component type to search for inside the found GameObject.
리턴 bool

HasGameObject() 공개 메소드

Returns whether this Prefab contains a GameObject with the specified index path. It is based on this Prefabs root GameObject.
public HasGameObject ( IEnumerable indexPath ) : bool
indexPath IEnumerable The index path at which to search for a GameObject.
리턴 bool

Inject() 공개 메소드

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.
public Inject ( GameObject obj ) : void
obj GameObject The object to inject as Prefab root object.
리턴 void

Instantiate() 공개 메소드

Instantiates the Prefab.
public Instantiate ( ) : GameObject
리턴 GameObject

OnCopyTo() 보호된 메소드

protected OnCopyTo ( Resource r, CloneProvider provider ) : void
r Resource
provider CloneProvider
리턴 void

OnLoaded() 보호된 메소드

protected OnLoaded ( ) : void
리턴 void

Prefab() 공개 메소드

Creates a new, empty Prefab.
public Prefab ( ) : System
리턴 System

Prefab() 공개 메소드

Creates a new Prefab out of a GameObject.
public Prefab ( GameObject obj ) : System
obj GameObject
리턴 System