docs.unity3d.com
    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
    Namespace: Unity.MARS.Query
    Syntax
    public class Relations : object

    Constructors

    Relations(GameObject, Dictionary<IMRObject, SetChildArgs>)

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

    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

    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
    Int32

    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
    public bool TryGetType(out object[] conditions)
    Parameters
    Type Name Description
    Object[] conditions
    Returns
    Type Description
    Boolean

    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
    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