Tanoda
Leap.Unity.GraphicalRenderer.LeapGraphicRenderer Class Reference
Inheritance diagram for Leap.Unity.GraphicalRenderer.LeapGraphicRenderer:

Public Member Functions

LeapGraphicGroup FindGroup (string name)
 Searches the group list for a group with the given name. If there is no group with the given name, this method will return null. More...
 
bool TryAddGraphic (LeapGraphic graphic)
 Tries to add the given graphic to any group attached to this graphic. First, it will try to be attached to a group that has its preferred renderer type, and if there are multiple such groups it will choose the group with the smallest graphic count. More...
 
void validateSpaceComponent ()
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 

Static Public Attributes

const string FEATURE_PREFIX = "GRAPHIC_RENDERER_"
 
const string PROPERTY_PREFIX = "_GraphicRenderer"
 
const string FEATURE_MOVEMENT_TRANSLATION = FEATURE_PREFIX + "MOVEMENT_TRANSLATION"
 
const string FEATURE_MOVEMENT_FULL = FEATURE_PREFIX + "MOVEMENT_FULL"
 

Properties

LeapSpace space [get]
 Returns the leap space that is currently attached to this graphic renderer. More...
 
List< LeapGraphicGroupgroups [get]
 Returns a list of all graphic groups contained withinin this renderer. This getter returns a regular List object for simplicity and speed, but it is still not allowed to mutate this list in any way. More...
 

Detailed Description

Definition at line 20 of file LeapGraphicRendererEditorApi.cs.

Member Function Documentation

◆ FindGroup()

LeapGraphicGroup Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.FindGroup ( string  name)

Searches the group list for a group with the given name. If there is no group with the given name, this method will return null.

Definition at line 61 of file LeapGraphicRenderer.cs.

◆ OnAfterDeserialize()

void Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.OnAfterDeserialize ( )

Definition at line 293 of file LeapGraphicRenderer.cs.

◆ OnBeforeSerialize()

void Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.OnBeforeSerialize ( )

Definition at line 291 of file LeapGraphicRenderer.cs.

◆ TryAddGraphic()

bool Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.TryAddGraphic ( LeapGraphic  graphic)

Tries to add the given graphic to any group attached to this graphic. First, it will try to be attached to a group that has its preferred renderer type, and if there are multiple such groups it will choose the group with the smallest graphic count.

If no group has the preferred renderer type, it will try to attach to a group that supports this type of graphic, again choosing the group with the smallest graphic count.

If no such group is found, the attach will fail and this method will return false.

Definition at line 77 of file LeapGraphicRenderer.cs.

◆ validateSpaceComponent()

void Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.validateSpaceComponent ( )

Definition at line 229 of file LeapGraphicRenderer.cs.

Member Data Documentation

◆ FEATURE_MOVEMENT_FULL

const string Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.FEATURE_MOVEMENT_FULL = FEATURE_PREFIX + "MOVEMENT_FULL"
static

Definition at line 24 of file LeapGraphicRenderer.cs.

◆ FEATURE_MOVEMENT_TRANSLATION

const string Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.FEATURE_MOVEMENT_TRANSLATION = FEATURE_PREFIX + "MOVEMENT_TRANSLATION"
static

Definition at line 23 of file LeapGraphicRenderer.cs.

◆ FEATURE_PREFIX

const string Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.FEATURE_PREFIX = "GRAPHIC_RENDERER_"
static

Definition at line 20 of file LeapGraphicRenderer.cs.

◆ PROPERTY_PREFIX

const string Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.PROPERTY_PREFIX = "_GraphicRenderer"
static

Definition at line 21 of file LeapGraphicRenderer.cs.

Property Documentation

◆ groups

List<LeapGraphicGroup> Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.groups
get

Returns a list of all graphic groups contained withinin this renderer. This getter returns a regular List object for simplicity and speed, but it is still not allowed to mutate this list in any way.

Definition at line 51 of file LeapGraphicRenderer.cs.

◆ space

LeapSpace Leap.Unity.GraphicalRenderer.LeapGraphicRenderer.space
get

Returns the leap space that is currently attached to this graphic renderer.

Definition at line 40 of file LeapGraphicRenderer.cs.


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