A custom Node to be displayed in the AiMalgamNodeGraph used for several setting types to define your AI behavior. Inherit this for custom settings that need to be displayed in AiMalgamNodeGraph. Is visible and assignable in the Unity inspector
More...
|
override void | Reset () |
|
override void | OnEnable () |
|
override void | Awake () |
|
override void | OnValidate () |
|
|
virtual Action< AiMalgamNode > | OnNodeChanged |
| Emitted, if the node values where changed (OnValidate())
|
|
A custom Node to be displayed in the AiMalgamNodeGraph used for several setting types to define your AI behavior. Inherit this for custom settings that need to be displayed in AiMalgamNodeGraph. Is visible and assignable in the Unity inspector
◆ GetValue()
override object NikosAssets.AiMalgam.Settings.AiMalgamNode.GetValue |
( |
NodePort |
port | ) |
|
Used in the AiMalgamNodeGraph.
- Parameters
-
port | Not important for this implementation of XNode |
- Returns
- Should return this instance
◆ MarkInGraph() [1/2]
virtual void NikosAssets.AiMalgam.Settings.AiMalgamNode.MarkInGraph |
( |
AiMalgamEntity |
requester, |
|
|
bool |
acceptedOrFailed, |
|
|
bool |
forceRepaint = false |
|
) |
| |
|
virtual |
EDITOR ONLY EFFECT. Set the node's visuals in the AiMalgamNodeGraph (accepted or failed)
- Parameters
-
requester | The requesting AiMalgamEntity to check if setting the markings are allowed or not |
acceptedOrFailed | The node color (true = green/ false = red) by default |
forceRepaint | repaint is very expensive, use with caution! |
◆ MarkInGraph() [2/2]
virtual void NikosAssets.AiMalgam.Settings.AiMalgamNode.MarkInGraph |
( |
AiMalgamEntity |
requester, |
|
|
Color |
markColor, |
|
|
bool |
forceRepaint = false |
|
) |
| |
|
virtual |
EDITOR ONLY EFFECT. Set the node's visuals in the AiMalgamNodeGraph
- Parameters
-
requester | The requesting AiMalgamEntity to check if setting the markings are allowed or not |
markColor | The node color to update in the AiMalgamNodeGraph |
forceRepaint | repaint is very expensive, use with caution! |
◆ ResetMarkingInGraph()
virtual void NikosAssets.AiMalgam.Settings.AiMalgamNode.ResetMarkingInGraph |
( |
AiMalgamEntity |
requester, |
|
|
bool |
forceRepaint = false |
|
) |
| |
|
virtual |
EDITOR ONLY EFFECT. Reset the node's visuals in the AiMalgamNodeGraph
- Parameters
-
requester | The requesting AiMalgamEntity to check if setting the markings are allowed or not |
forceRepaint | repaint is very expensive, use with caution! |