Class Leap::Unity::Interaction::Anchor

class Leap.Unity.Interaction.Anchor : public MonoBehaviour

Public Members

Action OnAnchorPreferred = () => { }

Called as soon as any anchorable objects prefer this anchor if they were to try to attach to an anchor.

Action OnAnchorNotPreferred = () => { }

Called when no anchorable objects prefer this anchor any more.

Action WhileAnchorPreferred = () => { }

Called every Update() that an AnchorableBehaviour prefers this anchor.

Action OnAnchorablesAttached = () => { }

Called as soon as any anchorables become attached to this anchor.

Action OnNoAnchorablesAttached = () => { }

Called when there are no anchorables attached to this anchor.

Action WhileAnchorablesAttached = () => { }

Called every Update() that one or more AnchorableBehaviours is attached to this anchor.

Properties

HashSet<AnchorableBehaviour> anchoredObjects { get; set; }

Gets the set of AnchorableBehaviours currently attached to this anchor.