SpecsInteractionModule.TargetingPriority
EnumTargeting priority for this Interactable.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported — Available on SPECS only
- SPECSFully supported
- Camera Kit WebNot supported — Available on SPECS only
- Camera Kit MobileNot supported — Available on SPECS only
Since Lens Scripting v375
Targeting priority for this Interactable. Higher-priority Interactables are preferred over closer, lower-priority ones when an interactor targets.
The same preference orders interaction casts: single-target casts return the highest-priority hit, and all-hits casts return results in priority order (then nearest first). On a direct hit it also drives cursor positioning, snapping the cursor to the highest-priority collider along the ray.
Index
Example
const options = new SpecsInteractionModule.InteractableOptions();
options.targetingPriority = SpecsInteractionModule.TargetingPriority.High;
interaction.registerInteractable(script.getSceneObject(), [collider], options);
Enumeration Members
High
High:
number
SPECS
Preferred over closer TargetingPriority.Normal Interactables.
Since
Lens Scripting Version 375
Normal
Normal:
number
SPECS
Default priority.
Since
Lens Scripting Version 375