Class MultiRelation<TRelation1, TRelation2> | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MultiRelation<TRelation1, TRelation2>

    Base class for conditions that interact with two traits at once This handles all the necessary wiring of making sure the SubRelations are properly serialized, available for queries and that each SubRelation has a proper reference back to the host

    Inheritance
    Object
    ConditionBase
    RelationBase
    MultiRelationBase
    MultiRelation<TRelation1, TRelation2>
    TestMultiRelation
    Inherited Members
    MultiRelationBase.m_HostedComponents
    MultiRelationBase.HostedComponents
    RelationBase.m_Child1
    RelationBase.m_Child2
    RelationBase.child1
    RelationBase.child2
    RelationBase.child1Transform
    RelationBase.child2Transform
    RelationBase.child1Proxy
    RelationBase.child2Proxy
    RelationBase.proxyGroup
    RelationBase.ResetChildrenReferences()
    ConditionBase.proxy
    ConditionBase.drawWarning
    ConditionBase.OnValidate()
    Namespace: Unity.MARS
    Syntax
    public class MultiRelation<TRelation1, TRelation2> : MultiRelationBase, ISimulatable, IComponentHost<IRelation>, ISerializationCallbackReceiver where TRelation1 : SubRelation, IRelation, new()
        where TRelation2 : SubRelation, IRelation, new()
    Type Parameters
    Name Description
    TRelation1

    The type of the first SubRelation

    TRelation2

    The type of the second SubRelation

    Fields

    m_Relation1

    Declaration
    protected TRelation1 m_Relation1
    Field Value
    Type Description
    TRelation1

    m_Relation2

    Declaration
    protected TRelation2 m_Relation2
    Field Value
    Type Description
    TRelation2

    Methods

    OnAfterDeserialize()

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Declaration
    public void OnBeforeSerialize()

    SetChildren(Proxy, Proxy)

    Declaration
    public override void SetChildren(Proxy context1, Proxy context2)
    Parameters
    Type Name Description
    Proxy context1
    Proxy context2
    Overrides
    MultiRelationBase.SetChildren(Proxy, Proxy)
    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