Class Replicator | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class Replicator

    Inheritance
    Object
    MARSEntity
    Replicator
    Namespace: Unity.MARS
    Syntax
    [MonoBehaviourComponentMenu(typeof(Replicator), "Replicator")]
    public class Replicator : MARSEntity, ISimulatable, IUsesFunctionalityInjection, IFunctionalitySubscriber<IProvidesFunctionalityInjection>, IFunctionalitySubscriber

    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

    Explicit Interface Implementations

    IFunctionalitySubscriber<IProvidesFunctionalityInjection>.provider

    Declaration
    IProvidesFunctionalityInjection IFunctionalitySubscriber<IProvidesFunctionalityInjection>.provider { get; set; }
    Returns
    Type Description
    IProvidesFunctionalityInjection
    Implements
    IFunctionalitySubscriber<TProvider>.provider
    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