Method CreateGraphComponent
CreateGraphComponent(GameObject, SystemGraphObject, GraphDescriptor, string, HandlerEnable)
Create a SystemGraphComponent and attach it to an object.
Declaration
public static SystemGraphComponent CreateGraphComponent(GameObject go, SystemGraphObject obj = null, SystemGraphManager.GraphDescriptor parentDesc = null, string subGraphPath = "", SystemGraphComponent.PendingGraphDescriptor.HandlerEnable enableHandler = null)
Parameters
Type | Name | Description |
---|---|---|
GameObject | go | Game object to attach the component to. |
SystemGraphObject | obj | Asset to be used by the SystemGraphComponent. |
SystemGraphManager.GraphDescriptor | parentDesc | Description of the parent if this graph is a subgraph. |
string | subGraphPath | Path of the subgraph |
SystemGraphComponent.PendingGraphDescriptor.HandlerEnable | enableHandler | The enable handler. |
Returns
Type | Description |
---|---|
SystemGraphComponent | A new SystemgraphComponent. |