docs.unity3d.com
    Show / Hide Table of Contents

    Class Replicator

    MARS Entity for replicating proxies on all available data Add a proxy as a child object to this behavior's GameObject and it will be replicated for all data that matches that proxy's conditions, or up to the number specified in the Max Instances property

    Inheritance
    Object
    MARSEntity
    Replicator
    Namespace: Unity.MARS
    Syntax
    public class Replicator : MARSEntity, ISimulatable, IUsesFunctionalityInjection

    Properties

    instanceCount

    The total number of instances spawned, included ones seeking a match

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

    matchCount

    The number of spawned instances that are currently matched

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

    MaxInstances

    Sets the maximum number of GameObjects that can be spawned. A value of 0 indicates no maximum

    Declaration
    public int MaxInstances { get; set; }
    Property Value
    Type Description
    Int32
    Back to top
    Terms of use
    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