Interface IInteractionCaster
Basic interface used to define an interaction caster, used by NearFarInteractor.
Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors.Casters
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public interface IInteractionCaster
Properties
castOrigin
Source of origin and direction used when updating sample points.
Declaration
Transform castOrigin { get; set; }
Property Value
Type | Description |
---|---|
Transform |
See Also
effectiveCastOrigin
Gets the effective cast origin, which may be different than the castOrigin. The caster may use a different transform, such as one that is stabilized, to conduct the cast.
Declaration
Transform effectiveCastOrigin { get; }
Property Value
Type | Description |
---|---|
Transform |
See Also
isInitialized
Indicates whether the caster has been initialized.
Declaration
bool isInitialized { get; }
Property Value
Type | Description |
---|---|
bool |
See Also
Methods
TryGetColliderTargets(XRInteractionManager, List<Collider>)
Gets an unsorted list of collider targets
Declaration
bool TryGetColliderTargets(XRInteractionManager interactionManager, List<Collider> targets)
Parameters
Type | Name | Description |
---|---|---|
XRInteractionManager | interactionManager | XR Interaction manager reference |
List<Collider> | targets | List of target colliders to populate. |
Returns
Type | Description |
---|---|
bool | Returns true if collider targets were found. |