GetGPActionObjectMapperOrCreate() public static method

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
return ActionTool.GPActionObjectMapper
Example #1
0
 public virtual GPActionObjectMapper GetGPActionObjectMapperOrCreate()
 {
     return(GPActionUtils.GetGPActionObjectMapperOrCreate(this.gameObject));
 }