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
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 |