API reference
API reference
Select your platform
No SDKs available
No versions available

Conecaster Class

Extends MonoBehaviour

Properties

The maximum acceptable angular offset between the gaze ray and a candidate interactable.
(Meters, World) The length of the cone as measured from the origin along the gaze ray.

Fields

The default comparer used to sort the results of a conecast, if no override comparer is provided through SetOverrideComparer()

Protected Fields

bool _started[Get]

Member Functions

If provided, this custom comparer will override the DefaultComparer used to sort the results of a conecast.

Protected Functions

Get the ConecastResult representing the root IConecastTarget used in the conecast.
This should only be called with ConecastResults obtained from GetResults() within the same frame.
Parameters
source
The result to retrieve the root for.
Returns
The root. If not found, will return the source.
Get the ConecastResult representing the parent IConecastTarget of the given ConecastResult.
This should only be called with ConecastResults obtained from GetResults() within the same frame.
Parameters
source
The result to retrieve the parent for.
parent
The parent of the provided source.
Returns
True if a parent was found, false if the source is a root target.
Get the results of the last Conecast call.
Results are sorted from best to worst, so index 0 represents the closest target to the cone ray, unless overridden by custom comparers (see SetOverrideComparer).
Returns
The sorted collection of ConecastResults
void Conecast
( Pose worldPose,
IReadOnlyList< IConecastTarget > rootConecastables )
virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
Did you find this page helpful?