docs.unity3d.com
    显示 / 隐藏目录

    Class CreateFromDataBase

    Base class for creating from trait data.

    Inheritance
    Object
    CreateFromDataBase
    CreateProxyFromData
    CreateProxyGroupFromData
    Namespace: Unity.MARS
    Syntax
    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()
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)