Dungeon Architect
17.0.0
|
Public Member Functions | |
override void | Initialize (string id, Graph graph) |
override void | CopyFrom (GraphNode node) |
Called when the node is copied. The implementations should implement copy here (e.g. deep / shallow copy depending on implementation) More... | |
Public Member Functions inherited from DungeonArchitect.Graphs.GraphNode | |
virtual void | OnEnable () |
GraphNode[] | GetParentNodes () |
Gets the list of parent graph nodes More... | |
GraphNode[] | GetChildNodes () |
Gets the list of child nodes More... | |
void | DragNode (Vector2 delta) |
Moves the node by the specified delta More... | |
Public Attributes | |
bool | IsStatic = false |
Indicates if the game object created from this visual node is set to static If you are spawning NPCs or other dynamic objects, uncheck this More... | |
bool | affectsNavigation = true |
Indicates of the geometry in this node contributes to the navigation mesh You should enable this only if necessary to improve navmesh generation performance More... | |
bool | selectionRuleEnabled = false |
Indicates if the selection rule is enabled. The selection rule will not run if this is disabled More... | |
string | selectionRuleClassName |
The class name of the selection rule. Selection rules let you specify behavior logic for selecting your nodes More... | |
bool | transformRuleEnabled = false |
Indicates if the transform rule is enabled. The transform rule will not run if this is disabled More... | |
string | transformRuleClassName |
The class name of the transformation rule. Transform rules let you specify behavior logic to apply the offset on the nodes More... | |
bool | useSpatialConstraint = false |
Flag to indicate if spatial constraints are to be used More... | |
SpatialConstraintAsset | spatialConstraint |
Spatial constraints lets you select a node based on nearby neighbor constraints More... | |
Public Attributes inherited from DungeonArchitect.Graphs.PlaceableNode | |
Matrix4x4 | offset = Matrix4x4.identity |
bool | consumeOnAttach = true |
float | attachmentProbability = 1.0f |
Additional Inherited Members | |
Protected Member Functions inherited from DungeonArchitect.Graphs.GraphNode | |
void | UpdateName (string prefix) |
GraphPin | CreatePin (GraphPinType pinType, Vector2 position, Rect boundsOffset, Vector2 tangent) |
Creates a pin with the specified configuration More... | |
T | CreatePinOfType< T > (GraphPinType pinType, Vector2 position, Rect boundsOffset, Vector2 tangent) |
Protected Attributes inherited from DungeonArchitect.Graphs.GraphNode | |
string | id |
string | caption |
Rect | bounds = new Rect(10, 10, 120, 120) |
bool | canBeDeleted = true |
bool | canBeSelected = true |
bool | canBeMoved = true |
bool | selected = false |
int | zIndex |
List< GraphPin > | inputPins |
List< GraphPin > | outputPins |
Graph | graph |
Properties inherited from DungeonArchitect.Graphs.GraphNode | |
string | Id [get, set] |
The ID of the graph node More... | |
string | Caption [get, set] |
The caption label of the node. It is up to the implementation to draw this label, if needed More... | |
Rect | Bounds [get, set] |
The bounds of the node More... | |
bool | CanBeDeleted [get] |
bool | CanBeSelected [get] |
bool | CanBeMoved [get] |
bool | Selected [get, set] |
Flag to indicate if the node has been selected More... | |
Vector2 | Size [get, set] |
The size of the node More... | |
Vector2 | Position [get, set] |
The position of the node More... | |
int | ZIndex [get, set] |
The Z-index of the node. It determines if the node is on top of other nodes More... | |
GraphPin[]? | InputPins [get] |
List of input pins owned by this node More... | |
GraphPin[]? | OutputPins [get] |
List of output pins owned by this node More... | |
GraphPin | OutputPin [get] |
Gets the first output pin. Returns null if no output pins are defined More... | |
GraphPin | InputPin [get] |
Gets the first input pin. Returns null if no input pins are defined More... | |
Graph | Graph [get] |
The graph that owns this node More... | |
bool | Dragging [get, set] |
Definition at line 11 of file VisualNode.cs.
|
virtual |
Called when the node is copied.
The implementations should implement copy here (e.g. deep / shallow copy depending on implementation)
node |
Reimplemented from DungeonArchitect.Graphs.PlaceableNode.
Definition at line 91 of file VisualNode.cs.
bool DungeonArchitect.Graphs.VisualNode.affectsNavigation = true |
Indicates of the geometry in this node contributes to the navigation mesh You should enable this only if necessary to improve navmesh generation performance
Definition at line 22 of file VisualNode.cs.
bool DungeonArchitect.Graphs.VisualNode.IsStatic = false |
Indicates if the game object created from this visual node is set to static If you are spawning NPCs or other dynamic objects, uncheck this
Definition at line 16 of file VisualNode.cs.
string DungeonArchitect.Graphs.VisualNode.selectionRuleClassName |
The class name of the selection rule. Selection rules let you specify behavior logic for selecting your nodes
Definition at line 33 of file VisualNode.cs.
bool DungeonArchitect.Graphs.VisualNode.selectionRuleEnabled = false |
Indicates if the selection rule is enabled. The selection rule will not run if this is disabled
Definition at line 27 of file VisualNode.cs.
SpatialConstraintAsset DungeonArchitect.Graphs.VisualNode.spatialConstraint |
Spatial constraints lets you select a node based on nearby neighbor constraints
Definition at line 55 of file VisualNode.cs.
string DungeonArchitect.Graphs.VisualNode.transformRuleClassName |
The class name of the transformation rule.
Transform rules let you specify behavior logic to apply the offset on the nodes
Definition at line 44 of file VisualNode.cs.
bool DungeonArchitect.Graphs.VisualNode.transformRuleEnabled = false |
Indicates if the transform rule is enabled. The transform rule will not run if this is disabled
Definition at line 38 of file VisualNode.cs.
bool DungeonArchitect.Graphs.VisualNode.useSpatialConstraint = false |
Flag to indicate if spatial constraints are to be used
Definition at line 49 of file VisualNode.cs.