Class XRParticipantSubsystem
Subsystem for managing the participants in a multi-user collaborative session.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public abstract class XRParticipantSubsystem : TrackingSubsystem<XRParticipant, XRParticipantSubsystemDescriptor>, ISubsystem
Constructors
XRParticipantSubsystem()
Do not call this directly. Call create on a valid XRParticipantSubsystemDescriptor instead.
Declaration
public XRParticipantSubsystem()
Methods
CreateProvider()
Implement this to provide this class with an interface to platform specific implementations.
Declaration
protected abstract XRParticipantSubsystem.Provider CreateProvider()
Returns
Type | Description |
---|---|
XRParticipantSubsystem.Provider | An implementation specific provider. |
GetChanges(Allocator)
Get the changed (added, updated, and removed) participants since the last call to GetChanges(Allocator).
Declaration
public override TrackableChanges<XRParticipant> GetChanges(Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
Allocator | allocator | An |
Returns
Type | Description |
---|---|
TrackableChanges<XRParticipant> | TrackableChanges<T> describing the participants that have been added, updated, and removed
since the last call to GetChanges(Allocator). The caller owns the memory allocated with |
Overrides
OnDestroyed()
Destroys the participant subsystem.
Declaration
protected override sealed void OnDestroyed()
Overrides
OnStart()
Starts the participant subsystem.
Declaration
protected override sealed void OnStart()
Overrides
OnStop()
Stops the participant subsystem.
Declaration
protected override sealed void OnStop()