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
Implements
IUsesFunctionalityInjection
IFunctionalitySubscriber<IProvidesFunctionalityInjection>
IFunctionalitySubscriber
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS
Assembly: Unity.MARS.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@2.0/manual/MARSConcepts.html#replicators")]
[MonoBehaviourComponentMenu(typeof(Replicator), "Replicator")]
public class Replicator : MARSEntity, ISimulatable, IUsesFunctionalityInjection, IFunctionalitySubscriber<IProvidesFunctionalityInjection>, IFunctionalitySubscriber
Properties
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 |
---|---|
int |
instanceCount
The total number of instances spawned, included ones seeking a match
Declaration
public int instanceCount { get; }
Property Value
Type | Description |
---|---|
int |
matchCount
The number of spawned instances that are currently matched
Declaration
public int matchCount { get; }
Property Value
Type | Description |
---|---|
int |
Implements
Unity.XRTools.ModuleLoader.IUsesFunctionalityInjection
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber