C# 클래스 ActionTool.GPActionUtils

파일 보기 프로젝트 열기: trfd/Unity-ActionTool 1 사용 예제들

공개 메소드들

메소드 설명
CreateGPActionObject ( GameObject parentObj ) : GameObject

Creates a default GPActionObject if not existing. Returns the created GameObject or the existing GPActionObject

DestroyGPActionObject ( GameObject parentObj ) : void

Destroys an GPActionObject

GetGPActionObject ( GameObject parentObj ) : GameObject

Returns the attached GPActionObject if any

GetGPActionObjectMapper ( GameObject parentObj ) : ActionTool.GPActionObjectMapper

Returns the attached GPActionObjectMapper if any

GetGPActionObjectMapperOrCreate ( GameObject parentObj ) : ActionTool.GPActionObjectMapper

Returns the GPActionObjectMapper attached to the specified GameObject if any. Otherwise creates a GPActionObject it and return the newly created GPActionObjectMapper;

GetGPActionObjectOrCreate ( GameObject parentObj ) : GameObject

Returns the GPActionObject attached to the specified GameObject if any. Otherwise creates it and return the newly created GPActionObject;

HasGPActionObject ( GameObject parentObj ) : bool

Returns whether or not the specified gameobject has a GPActionObject attached

InitGPActionObject ( GameObject gpactionParent, GameObject gpactionObj ) : void

Init a GameObject owner GPAction (a so-called "GPActionObject"). That is, the object is hid in the hierarchy and parent transform is set to parent gameobject

메소드 상세

CreateGPActionObject() 공개 정적인 메소드

Creates a default GPActionObject if not existing. Returns the created GameObject or the existing GPActionObject
public static CreateGPActionObject ( GameObject parentObj ) : GameObject
parentObj GameObject
리턴 GameObject

DestroyGPActionObject() 공개 정적인 메소드

Destroys an GPActionObject
public static DestroyGPActionObject ( GameObject parentObj ) : void
parentObj GameObject
리턴 void

GetGPActionObject() 공개 정적인 메소드

Returns the attached GPActionObject if any
public static GetGPActionObject ( GameObject parentObj ) : GameObject
parentObj GameObject
리턴 GameObject

GetGPActionObjectMapper() 공개 정적인 메소드

Returns the attached GPActionObjectMapper if any
public static GetGPActionObjectMapper ( GameObject parentObj ) : ActionTool.GPActionObjectMapper
parentObj GameObject
리턴 ActionTool.GPActionObjectMapper

GetGPActionObjectMapperOrCreate() 공개 정적인 메소드

Returns the GPActionObjectMapper attached to the specified GameObject if any. Otherwise creates a GPActionObject it and return the newly created GPActionObjectMapper;
public static GetGPActionObjectMapperOrCreate ( GameObject parentObj ) : ActionTool.GPActionObjectMapper
parentObj GameObject
리턴 ActionTool.GPActionObjectMapper

GetGPActionObjectOrCreate() 공개 정적인 메소드

Returns the GPActionObject attached to the specified GameObject if any. Otherwise creates it and return the newly created GPActionObject;
public static GetGPActionObjectOrCreate ( GameObject parentObj ) : GameObject
parentObj GameObject
리턴 GameObject

HasGPActionObject() 공개 정적인 메소드

Returns whether or not the specified gameobject has a GPActionObject attached
public static HasGPActionObject ( GameObject parentObj ) : bool
parentObj GameObject
리턴 bool

InitGPActionObject() 공개 정적인 메소드

Init a GameObject owner GPAction (a so-called "GPActionObject"). That is, the object is hid in the hierarchy and parent transform is set to parent gameobject
public static InitGPActionObject ( GameObject gpactionParent, GameObject gpactionObj ) : void
gpactionParent GameObject
gpactionObj GameObject
리턴 void