docs.unity3d.com
    Show / Hide Table of Contents

    Class TraitDataSnapshot

    Inheritance
    Object
    TraitDataSnapshot
    Namespace: Unity.MARS.Data
    Syntax
    [MovedFrom("Unity.MARS")]
    public class TraitDataSnapshot

    Properties

    DataID

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

    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
    Boolean

    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
    Boolean
    Type Parameters
    Name Description
    T
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023