Tanoda
Leap.Unity.LeapPreferences Class Reference

This attribute is used to add items to the Leap Motion preferences window. This allows each module to define their own preferences and still have them all show up under the same window.
More...

Inheritance diagram for Leap.Unity.LeapPreferences:

Public Member Functions

 LeapPreferences (string header, int order)
 

Public Attributes

readonly string header
 
readonly int order
 

Detailed Description

This attribute is used to add items to the Leap Motion preferences window. This allows each module to define their own preferences and still have them all show up under the same window.

The usage is very similar to the built-in PreferenceItem attribute. You add the attribute onto a static method that should be run whenever the preference window is visited. This method is a gui method and should use GuiLayout and EditorGuiLayout in order to draw the preferences. You can specify the name of the preferences as well as an order value to specify how the preferences are ordered relative to other preferences.

Definition at line 32 of file LeapPreferences.cs.

Constructor & Destructor Documentation

◆ LeapPreferences()

Leap.Unity.LeapPreferences.LeapPreferences ( string  header,
int  order 
)

Definition at line 36 of file LeapPreferences.cs.

Member Data Documentation

◆ header

readonly string Leap.Unity.LeapPreferences.header

Definition at line 33 of file LeapPreferences.cs.

◆ order

readonly int Leap.Unity.LeapPreferences.order

Definition at line 34 of file LeapPreferences.cs.


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