Tanoda
Leap.Unity.Interaction.Anchor Class Reference
Inheritance diagram for Leap.Unity.Interaction.Anchor:

Public Types

enum  EventType {
  OnAnchorPreferred = 100 , OnAnchorNotPreferred = 110 , WhileAnchorPreferred = 120 , OnAnchorablesAttached = 130 ,
  OnNoAnchorablesAttached = 140 , WhileAnchorablesAttached = 150
}
 

Public Member Functions

void NotifyAttached (AnchorableBehaviour anchObj)
 
void NotifyDetached (AnchorableBehaviour anchObj)
 
void NotifyAnchorPreference (AnchorableBehaviour anchObj)
 
void NotifyEndAnchorPreference (AnchorableBehaviour anchObj)
 

Public Attributes

bool allowMultipleObjects = false
 
bool matchActiveStateWithAttachedObjects = false
 
Action OnAnchorPreferred = () => { }
 Called as soon as any anchorable objects prefer this anchor if they were to try to attach to an anchor. More...
 
Action OnAnchorNotPreferred = () => { }
 Called when no anchorable objects prefer this anchor any more. More...
 
Action WhileAnchorPreferred = () => { }
 Called every Update() that an AnchorableBehaviour prefers this anchor. More...
 
Action OnAnchorablesAttached = () => { }
 Called as soon as any anchorables become attached to this anchor. More...
 
Action OnNoAnchorablesAttached = () => { }
 Called when there are no anchorables attached to this anchor. More...
 
Action WhileAnchorablesAttached = () => { }
 Called every Update() that one or more AnchorableBehaviours is attached to this anchor. More...
 

Static Public Attributes

static Color AnchorGizmoColor = new Color(0.6F, 0.2F, 0.8F)
 

Properties

static HashSet< AnchorallAnchors [get]
 
HashSet< AnchorGroupgroups [get]
 
HashSet< AnchorableBehaviouranchoredObjects [get]
 Gets the set of AnchorableBehaviours currently attached to this anchor. More...
 
bool isPreferred [get]
 
bool hasAnchoredObjects [get]
 

Detailed Description

Definition at line 19 of file Anchor.cs.

Member Enumeration Documentation

◆ EventType

Enumerator
OnAnchorPreferred 
OnAnchorNotPreferred 
WhileAnchorPreferred 
OnAnchorablesAttached 
OnNoAnchorablesAttached 
WhileAnchorablesAttached 

Definition at line 211 of file Anchor.cs.

Member Function Documentation

◆ NotifyAnchorPreference()

void Leap.Unity.Interaction.Anchor.NotifyAnchorPreference ( AnchorableBehaviour  anchObj)

Definition at line 150 of file Anchor.cs.

◆ NotifyAttached()

void Leap.Unity.Interaction.Anchor.NotifyAttached ( AnchorableBehaviour  anchObj)

Definition at line 129 of file Anchor.cs.

◆ NotifyDetached()

void Leap.Unity.Interaction.Anchor.NotifyDetached ( AnchorableBehaviour  anchObj)

Definition at line 137 of file Anchor.cs.

◆ NotifyEndAnchorPreference()

void Leap.Unity.Interaction.Anchor.NotifyEndAnchorPreference ( AnchorableBehaviour  anchObj)

Definition at line 158 of file Anchor.cs.

Member Data Documentation

◆ allowMultipleObjects

bool Leap.Unity.Interaction.Anchor.allowMultipleObjects = false

Definition at line 33 of file Anchor.cs.

◆ AnchorGizmoColor

Color Leap.Unity.Interaction.Anchor.AnchorGizmoColor = new Color(0.6F, 0.2F, 0.8F)
static

Definition at line 170 of file Anchor.cs.

◆ matchActiveStateWithAttachedObjects

bool Leap.Unity.Interaction.Anchor.matchActiveStateWithAttachedObjects = false

Definition at line 39 of file Anchor.cs.

◆ OnAnchorablesAttached

Action Leap.Unity.Interaction.Anchor.OnAnchorablesAttached = () => { }

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

Definition at line 77 of file Anchor.cs.

◆ OnAnchorNotPreferred

Action Leap.Unity.Interaction.Anchor.OnAnchorNotPreferred = () => { }

Called when no anchorable objects prefer this anchor any more.

Definition at line 67 of file Anchor.cs.

◆ OnAnchorPreferred

Action Leap.Unity.Interaction.Anchor.OnAnchorPreferred = () => { }

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

Definition at line 62 of file Anchor.cs.

◆ OnNoAnchorablesAttached

Action Leap.Unity.Interaction.Anchor.OnNoAnchorablesAttached = () => { }

Called when there are no anchorables attached to this anchor.

Definition at line 82 of file Anchor.cs.

◆ WhileAnchorablesAttached

Action Leap.Unity.Interaction.Anchor.WhileAnchorablesAttached = () => { }

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

Definition at line 87 of file Anchor.cs.

◆ WhileAnchorPreferred

Action Leap.Unity.Interaction.Anchor.WhileAnchorPreferred = () => { }

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

Definition at line 72 of file Anchor.cs.

Property Documentation

◆ allAnchors

HashSet<Anchor> Leap.Unity.Interaction.Anchor.allAnchors
staticget

Definition at line 22 of file Anchor.cs.

◆ anchoredObjects

HashSet<AnchorableBehaviour> Leap.Unity.Interaction.Anchor.anchoredObjects
get

Gets the set of AnchorableBehaviours currently attached to this anchor.

Definition at line 50 of file Anchor.cs.

◆ groups

HashSet<AnchorGroup> Leap.Unity.Interaction.Anchor.groups
get

Definition at line 42 of file Anchor.cs.

◆ hasAnchoredObjects

bool Leap.Unity.Interaction.Anchor.hasAnchoredObjects
get

Definition at line 54 of file Anchor.cs.

◆ isPreferred

bool Leap.Unity.Interaction.Anchor.isPreferred
get

Definition at line 52 of file Anchor.cs.


The documentation for this class was generated from the following file: