docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TraitDataSnapshot

    Inheritance
    object
    TraitDataSnapshot
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Data
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public class TraitDataSnapshot

    Properties

    DataID

    Declaration
    public int DataID { get; }
    Property Value
    Type Description
    int

    Methods

    GetAllTraitNames(object)

    Declaration
    public void GetAllTraitNames(object results)
    Parameters
    Type Name Description
    object results

    GetPotentialConditions(object, GameObject)

    Declaration
    public void GetPotentialConditions(object results, GameObject gameObject)
    Parameters
    Type Name Description
    object results
    GameObject gameObject

    GetPotentialRelations(List<PotentialChild>, List<PotentialRelation>, GameObject)

    Declaration
    public static void GetPotentialRelations(List<PotentialChild> groupMembers, List<PotentialRelation> results, GameObject gameObject)
    Parameters
    Type Name Description
    List<PotentialChild> groupMembers
    List<PotentialRelation> results
    GameObject gameObject

    GetPotentialTags(List<PotentialCondition>, GameObject)

    Declaration
    public void GetPotentialTags(List<PotentialCondition> results, GameObject gameObject)
    Parameters
    Type Name Description
    List<PotentialCondition> results
    GameObject gameObject

    GetTraits<TKey, TValue>(out Dictionary<TKey, TValue>)

    Declaration
    public void GetTraits<TKey, TValue>(out Dictionary<TKey, TValue> traits)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> traits
    Type Parameters
    Name Description
    TKey
    TValue

    TakeSnapshot(object)

    Declaration
    public void TakeSnapshot(object queryResult)
    Parameters
    Type Name Description
    object queryResult

    TryGetTrait(string, out object)

    Declaration
    public bool TryGetTrait(string traitName, out object value)
    Parameters
    Type Name Description
    string traitName
    object value
    Returns
    Type Description
    bool

    TryGetTrait<T>(string, out T)

    Declaration
    public bool TryGetTrait<T>(string traitName, out T value) where T : struct
    Parameters
    Type Name Description
    string traitName
    T value
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    In This Article
    Back to top
    Copyright © 2025 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)