Interface IXRReticleDirectionProvider
An interface that provides the rotation of a reticle to match an interactor's attach transform.
Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors.Visuals
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public interface IXRReticleDirectionProvider
Methods
GetReticleDirection(IXRInteractor, Vector3, out Vector3, out Vector3?)
Get the reticle direction based on the given interactor's attach transform.
Declaration
void GetReticleDirection(IXRInteractor interactor, Vector3 hitNormal, out Vector3 reticleUp, out Vector3? optionalReticleForward)
Parameters
Type | Name | Description |
---|---|---|
IXRInteractor | interactor | The interactor whose attach transform determines the reticle direction. |
Vector3 | hitNormal | The normal of the surface the reticle is placed on. This is the default value for |
Vector3 | reticleUp | The returned up direction of the reticle. |
Vector3? | optionalReticleForward | The returned forward direction which will be projected onto the plane
defined by |