Table of Contents

Class BaseNode

Namespace
Gamelogic.Grids2.Graph
Assembly
Gamelogic.Grids2.dll

Represents a node of a Graph.

public class BaseNode : ScriptableObject
Inheritance
BaseNode
Derived
Inherited Members
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.ToString()
Object.hideFlags

Remarks

All graph nodes must extend from this type.

Fields

enable

Allows the node to be active or inactive. When inactive it will return its inputs without alter them.

rect

The rectangle this node occupies when displayed visually.

Properties

Id

Gets the id of this node.

Inputs

A list of nodes that are the inputs for this node.

Methods

AddNodeInput(BaseNode)

Adds a node to this node's inputs.

OnEnable()
Recompute()

Recomputes a nodes internal values that are independent of the inputs.

RemoveNodeInput(BaseNode)

Removes the given node from the list of input nodes of this node.

UpdateStatic()

Updates a nodes outputs without recomputing internal (possibly random) values.

See Also