Class ScriptNode
Base class for script graph nodes.
Syntax
[Serializable]
public abstract class ScriptNode : IScriptNode, INode
Constructors
ScriptNode()
Declaration
ScriptNode(ScriptGraphGraph)
Declaration
[Obsolete("Nodes aren't directly dependant on a graph anymore. You can use the parameterless constructor instead. This constructor will be removed with version 2.0.")]
protected ScriptNode(ScriptGraphGraph graph)
Parameters
Properties
Graph
Gets the graph this node is part of.
Declaration
[Obsolete("Nodes aren't directly dependant on a graph anymore. This property one will be removed in version 2.0. Check the manual page about custom nodes to see how to access dependencies.")]
protected ScriptGraphGraph Graph { get; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
Note
Declaration
public string Note { get; set; }
Property Value
Position
Declaration
public Rect Position { get; set; }
Property Value
Methods
Get<T>()
Returns dependency of the given type.
Declaration
protected T Get<T>() where T : class
Returns
Type |
Description |
T |
The object.
|
Type Parameters
Name |
Description |
T |
The type.
|
Initialize()
Declaration
public virtual void Initialize()
LoadDependencies(DependencyContainer)
Declaration
public virtual void LoadDependencies(DependencyContainer container)
Parameters
RestoreDependencyStates()
Declaration
protected void RestoreDependencyStates()
SaveDependencyStates()
Declaration
protected void SaveDependencyStates()
Events
OnRestoreDependenciesState
Declaration
public event Action<IScriptNode, IDependencyContainer> OnRestoreDependenciesState
Event Type
OnSaveDependenciesState
Declaration
public event Action<IScriptNode, IDependencyContainer> OnSaveDependenciesState
Event Type
Implements