SpecsInteractionModule.TargetingMode
EnumHow an interactor can target an Interactable, as a bitmask of interaction methods.
- 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
How an interactor can target an Interactable, as a bitmask of interaction methods. Combine bits
with | (for example Direct | Poke); DirectIndirect and All are provided combinations.
Assign the value to SpecsInteractionModule.InteractableOptions#targetingMode. None
disables targeting.
Index
Example
const options = new SpecsInteractionModule.InteractableOptions();
options.targetingMode =
SpecsInteractionModule.TargetingMode.Indirect | SpecsInteractionModule.TargetingMode.Poke;
interaction.registerInteractable(script.getSceneObject(), [collider], options);
Enumeration Members
All
All:
number
SPECS
Convenience combination of all methods (Direct, Indirect, and Poke).
Since
Lens Scripting Version 375
Direct
Direct:
number
SPECS
Close pinch interactions where a hand directly touches the Interactable.
Since
Lens Scripting Version 375
DirectIndirect
DirectIndirect:
number
SPECS
Convenience combination of Direct and Indirect.
Since
Lens Scripting Version 375
Indirect
Indirect:
number
SPECS
Interactions from a distance with raycasting.
Since
Lens Scripting Version 375
None
None:
number
SPECS
Cannot be targeted.
Since
Lens Scripting Version 375
Poke
Poke:
number
SPECS
Finger poking interactions.
Since
Lens Scripting Version 375