Class ScriptGraphComponents
This class manages temporary Unity components that are required when processing a script graph.
Inheritance
object
ScriptGraphComponents
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
public static class ScriptGraphComponents
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 |
---|---|---|
UnityEngine.GameObject | obj |