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)
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.name
Object.hideFlags

Remarks

All graph nodes must extend from this type.

Fields

DefaultWidth
GraphNodeWidth
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.

Width

Gets the width this node is displayed at.

Methods

AddNodeInput(BaseNode)

Adds a node to this node's inputs.

OnEnable()
Recompute()

Recomputes dynamic internal data.

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