docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Relations

    Collections of different types of bi-directional data filters, and the constraints of child MR objects involved

    Inheritance
    object
    Relations
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Query
    Assembly: Unity.MARS.dll
    Syntax
    public class Relations

    Constructors

    Relations(IRelation[], Dictionary<IMRObject, SetChildArgs>)

    Declaration
    public Relations(IRelation[] relations, Dictionary<IMRObject, SetChildArgs> children = null)
    Parameters
    Type Name Description
    IRelation[] relations
    Dictionary<IMRObject, SetChildArgs> children

    Relations(Relation, SetChildArgs, SetChildArgs)

    Declaration
    public Relations(Relation relation, SetChildArgs child1Args, SetChildArgs child2Args)
    Parameters
    Type Name Description
    Relation relation
    SetChildArgs child1Args
    SetChildArgs child2Args

    Relations(GameObject, Dictionary<IMRObject, SetChildArgs>)

    Declaration
    public Relations(GameObject gameObject, Dictionary<IMRObject, SetChildArgs> children)
    Parameters
    Type Name Description
    GameObject gameObject
    Dictionary<IMRObject, SetChildArgs> children

    Fields

    children

    Child MR objects involved in the relations, and the constraints of those children

    Declaration
    public Dictionary<IMRObject, SetChildArgs> children
    Field Value
    Type Description
    Dictionary<IMRObject, SetChildArgs>

    Properties

    Count

    Declaration
    public int Count { get; protected set; }
    Property Value
    Type Description
    int

    Methods

    TryGetType(out object[])

    This method exists in order for MARS to compile before type-specific code is generated. Use the type-specific version of this method

    Declaration
    [Obsolete("This method exists in order for MARS to compile before type-specific code is generated. Use the type-specific version of this method")]
    public bool TryGetType(out object[] conditions)
    Parameters
    Type Name Description
    object[] conditions
    Returns
    Type Description
    bool

    TryGetType<T>(out IRelation<T>[])

    Declaration
    public bool TryGetType<T>(out IRelation<T>[] conditions) where T : struct
    Parameters
    Type Name Description
    IRelation<T>[] conditions
    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)