docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Node

    A base class for behaviour nodes used in the Muse Behavior graph.

    Inheritance
    object
    Node
    Action
    Composite
    Join
    Modifier
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Muse.Behavior
    Assembly: Unity.Muse.Behavior.dll
    Syntax
    [Serializable]
    [JsonObject(IsReference = true)]
    public abstract class Node

    Properties

    CurrentStatus

    The current status of the graph node.

    Declaration
    public Node.Status CurrentStatus { get; }
    Property Value
    Type Description
    Node.Status

    GameObject

    The game object associated with the behavior graph.

    Declaration
    protected GameObject GameObject { get; }
    Property Value
    Type Description
    GameObject

    Methods

    AwakeNode(Node)

    Declaration
    protected void AwakeNode(Node node)
    Parameters
    Type Name Description
    Node node

    AwakeParents()

    AwakeParents is called after the running node has returned a status of Success or Fail.

    Declaration
    protected virtual void AwakeParents()

    EndNode(Node)

    Declaration
    protected void EndNode(Node node)
    Parameters
    Type Name Description
    Node node

    OnEnd()

    OnEnd is called when the node has stopped running.

    Declaration
    protected virtual void OnEnd()

    OnStart()

    OnStart is called when the node starts running.

    Declaration
    protected virtual Node.Status OnStart()
    Returns
    Type Description
    Node.Status

    The status of the node.

    OnUpdate()

    OnUpdate is called each frame while the node is running.

    Declaration
    protected virtual Node.Status OnUpdate()
    Returns
    Type Description
    Node.Status

    The status of the node.

    ResetStatus()

    Resets the current status of the node.

    Declaration
    protected virtual void ResetStatus()

    StartNode(Node)

    Declaration
    protected Node.Status StartNode(Node node)
    Parameters
    Type Name Description
    Node node
    Returns
    Type Description
    Node.Status
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)