Class ScriptGraphComponents
This class manages temporary Unity components that are required when processing a script graph.
Inheritance
System.Object
ScriptGraphComponents
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
public static class ScriptGraphComponents : object
Methods
Clear()
Destroys the temporary container and all the temporary GameObjects in it.
Declaration
public static void Clear()
Get<T>()
Creates a GameObject with the given component type and returns that component.
Declaration
public static T Get<T>()
where T : Component
Returns
Type | Description |
---|---|
T | The temporary component. |
Type Parameters
Name | Description |
---|---|
T | The requested component type. |
RegisterTemporaryObject(GameObject)
Marks a Unity GameObject as temporary, so that it gets disposed of after a script graph has been
Declaration
public static void RegisterTemporaryObject(GameObject obj)
Parameters
Type | Name | Description |
---|---|---|
GameObject | obj |