docs.unity3d.com
    Show / Hide Table of Contents

    Class CreateFromDataBase

    Base class for creating from trait data.

    Inheritance
    Object
    CreateFromDataBase
    CreateProxyFromData
    Namespace: Unity.MARS.Authoring
    Syntax
    [MovedFrom("Unity.MARS")]
    public abstract class CreateFromDataBase

    Fields

    m_CreatedObject

    Declaration
    protected GameObject m_CreatedObject
    Field Value
    Type Description
    GameObject

    m_Replicate

    Declaration
    protected bool m_Replicate
    Field Value
    Type Description
    Boolean

    m_Replicator

    Declaration
    protected Replicator m_Replicator
    Field Value
    Type Description
    Replicator

    ObjectParent

    Declaration
    protected Transform ObjectParent
    Field Value
    Type Description
    Transform

    Properties

    MaxCount

    The max count for the created replicator. If set to 1, there will be no replicator. 0 indicates infinite matches.

    Declaration
    public int MaxCount { get; set; }
    Property Value
    Type Description
    Int32

    Replicate

    If enabled, the created object will be replicated for all matches. The max instance count can be set via SetMaxCount

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

    Methods

    SetupReplicator()

    Declaration
    protected void SetupReplicator()
    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