docs.unity3d.com
    Show / Hide Table of Contents

    Class CreateProxyFromData

    Creates MARS proxies with conditions based on trait data. Proxies can be created immediately with defaults or opens a window for choosing the conditions and name of the created object.

    Inheritance
    Object
    CreateFromDataBase
    CreateProxyFromData
    Inherited Members
    CreateFromDataBase.m_CreatedObject
    CreateFromDataBase.m_Replicate
    CreateFromDataBase.m_Replicator
    CreateFromDataBase.ObjectParent
    CreateFromDataBase.Replicate
    CreateFromDataBase.MaxCount
    CreateFromDataBase.SetupReplicator()
    Namespace: Unity.MARS.Authoring
    Syntax
    public class CreateProxyFromData : CreateFromDataBase

    Properties

    CreatedGameObject

    The result game object that has been created

    Declaration
    public GameObject CreatedGameObject { get; }
    Property Value
    Type Description
    GameObject

    EditMode

    Whether this create data is editing an existing proxy. If true, the proxy will be restored to its prior state when the create is cancelled rather than being destroyed.

    Declaration
    public bool EditMode { get; }
    Property Value
    Type Description
    Boolean

    Methods

    OnObjectDropped(GameObject, GameObject)

    Creates a new proxy with the provided content object as the child and a target proxy gameObject. The trait data of the target proxy's current match will be used to create the conditions on the new proxy

    Declaration
    public void OnObjectDropped(GameObject droppedObject, GameObject target)
    Parameters
    Type Name Description
    GameObject droppedObject

    The content that will be attached to the new proxy.

    GameObject target

    The target gameobject that has a matched proxy component.

    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