Class ARParticipantManager
A manager for ARParticipants. Creates, updates, and removes
GameObject
s in response to other users in a multi-user collaborative session.
Inheritance
SubsystemLifecycleManager<XRParticipantSubsystem, XRParticipantSubsystemDescriptor, XRParticipantSubsystem.Provider>
ARTrackableManager<XRParticipantSubsystem, XRParticipantSubsystemDescriptor, XRParticipantSubsystem.Provider, XRParticipant, ARParticipant>
ARParticipantManager
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-2147483647)]
[DisallowMultipleComponent]
[RequireComponent(typeof(ARSessionOrigin))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARParticipantManager.html")]
public sealed class ARParticipantManager : ARTrackableManager<XRParticipantSubsystem, XRParticipantSubsystemDescriptor, XRParticipantSubsystem.Provider, XRParticipant, ARParticipant>
Properties
Name | Description |
---|---|
gameObjectName | The name to be used for the |
participantPrefab | (Optional) Instantiates this Prefab for each participant. If |
Methods
Name | Description |
---|---|
GetParticipant(TrackableId) | Attempt to retrieve an existing ARParticipant by |
GetPrefab() | The Prefab which will be instantiated for each ARParticipant. Can be |
OnTrackablesChanged(List<ARParticipant>, List<ARParticipant>, List<ARParticipant>) | Invoked when the base class detects trackable changes. |
Events
Name | Description |
---|---|
participantsChanged | Invoked when participants have changed (been added, updated, or removed). |