IXRProximityInteractable Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This interface is used to update the enable state of the Components that are in the ProximityEnabledComponents array (set in Editor) and to keep track of which UnityEngine.Collider and UnityEngine.XR.Interaction.Toolkit.XRBaseInteractor duples are triggering proximity.
public interface IXRProximityInteractable
type IXRProximityInteractable = interface
Public Interface IXRProximityInteractable
- Derived
Remarks
This interface is needed to prevent a circular reference between MRTK Input and MRTK UX Core Scripts packages.
Methods
| Name | Description |
|---|---|
| OnProximityEntered(ProximityEnteredEventArgs) |
Registers the Detector as triggering proximity. |
| OnProximityExited(ProximityExitedEventArgs) |
Unregisters the Detector as triggering proximity. |