docs.unity3d.com
    目次を表示する/隠す

    Interface IRelation<T>

    A constraint between two MR objects that is used to filter data in a query

    Inherited Members
    IRelationBase.child1
    IRelationBase.child2
    IConditionBase.enabled
    IRequiresTraits.GetRequiredTraits()
    Namespace: Unity.MARS.Query
    Syntax
    public interface IRelation<T> : IRelation, IRelationBase, IConditionBase, IRequiresTraits<T>, IRequiresTraits
    Type Parameters
    Name Description
    T

    The type of data to filter against

    Properties

    child1TraitName

    The trait to test against for the first child

    Declaration
    string child1TraitName { get; }
    Property Value
    Type Description
    String

    child2TraitName

    The trait to test against for the second child

    Declaration
    string child2TraitName { get; }
    Property Value
    Type Description
    String

    Methods

    RateDataMatch(ref T, ref T)

    Compares the given trait data to the filter function

    Declaration
    float RateDataMatch(ref T child1Data, ref T child2Data)
    Parameters
    Type Name Description
    T child1Data

    The data being filtered against for the first child

    T child2Data

    The data being filtered against for the second child

    Returns
    Type Description
    Single

    A number from 0 to 1 indicating how well a set of data matches

    Extension Methods

    IRequiresTraitsMethods.TryGetTraitValue<T>(IRequiresTraits<T>, Int32, String, out T)
    IRequiresTraitsMethods.TryGetAllTraitsWithSemanticTag<T>(IRequiresTraits<T>, String, String, out Dictionary<Int32, T>)
    IRequiresTraitsMethods.ForEachContextIdWithTrait<T>(IRequiresTraits<T>, String, Action<Int32>)
    IRelationGenericMethods.PassesRelation<T>(IRelation<T>, ref T, ref T)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)