docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BlackboardVariable

    A variable used within a blackboard.

    Inheritance
    object
    BlackboardVariable
    BlackboardVariable<DataType>
    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 BlackboardVariable

    Fields

    GUID

    A GUID used to uniquely identify the variable.

    Declaration
    [SerializeField]
    public SerializableGUID GUID
    Field Value
    Type Description
    SerializableGUID

    Name

    The name of the variable.

    Declaration
    [SerializeField]
    public string Name
    Field Value
    Type Description
    string

    Properties

    ObjectValue

    The value of the variable.

    Declaration
    [JsonIgnore]
    public abstract object ObjectValue { get; set; }
    Property Value
    Type Description
    object

    Type

    The type of the variable.

    Declaration
    [JsonIgnore]
    public abstract Type Type { get; }
    Property Value
    Type Description
    Type

    Methods

    Equals(BlackboardVariable)

    Returns true if the two variables are equal and false otherwise.

    Declaration
    public virtual bool Equals(BlackboardVariable other)
    Parameters
    Type Name Description
    BlackboardVariable other

    The variable to compare to.

    Returns
    Type Description
    bool

    Returns true if the two variables are equal and false otherwise.

    ValueEquals(BlackboardVariable)

    Returns true if the values of the two variables are equal and false otherwise.

    Declaration
    public abstract bool ValueEquals(BlackboardVariable other)
    Parameters
    Type Name Description
    BlackboardVariable other

    The variable whose value is compared to.

    Returns
    Type Description
    bool

    Returns true if the values of the two variables are equal and false otherwise.

    Events

    OnValueChanged

    Callback used for changes in the blackboard variable value.

    Declaration
    public event BlackboardVariable.ValueChangedCallback OnValueChanged
    Event Type
    Type Description
    BlackboardVariable.ValueChangedCallback
    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)