Tanoda
Leap.Unity.GraphicalRenderer.LeapTextRenderer Class Reference
Inheritance diagram for Leap.Unity.GraphicalRenderer.LeapTextRenderer:
Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic > Leap.Unity.GraphicalRenderer.ISupportsAddRemove Leap.Unity.GraphicalRenderer.ILeapInternalRenderingMethod

Public Member Functions

override SupportInfo GetSpaceSupportInfo (LeapSpace space)
 
void OnAddRemoveGraphics (List< int > dirtyIndexes)
 Must be implemented by a renderer to report that it is able to support adding and removing graphics at runtime. More...
 
override void OnEnableRenderer ()
 Called when the renderer is enabled at runtime. More...
 
override void OnDisableRenderer ()
 Called when the renderer is disabled at runtime. More...
 
override void OnUpdateRenderer ()
 Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame. More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic >
abstract SupportInfo GetSpaceSupportInfo (LeapSpace space)
 
abstract void OnEnableRenderer ()
 Called when the renderer is enabled at runtime. More...
 
abstract void OnDisableRenderer ()
 Called when the renderer is disabled at runtime. More...
 
abstract void OnUpdateRenderer ()
 Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame. More...
 
abstract bool IsValidGraphic< T > ()
 
override bool IsValidGraphic< T > ()
 
abstract bool IsValidGraphic (LeapGraphic graphic)
 
override bool IsValidGraphic (LeapGraphic graphic)
 
abstract LeapGraphic GetValidGraphicOnObject (GameObject obj)
 
override LeapGraphic GetValidGraphicOnObject (GameObject obj)
 
void PreventDuplication< T > (ref T t)
 
void OnAddRemoveGraphics (List< int > dirtyIndexes)
 Must be implemented by a renderer to report that it is able to support adding and removing graphics at runtime. More...
 

Public Attributes

bool _useColor = true
 
Color _globalTint = Color.white
 

Static Public Attributes

const string DEFAULT_FONT = "Arial.ttf"
 
const string DEFAULT_SHADER = "LeapMotion/GraphicRenderer/Text/Dynamic"
 
const float SCALE_CONSTANT = 0.001f
 
- Static Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic >
const string DATA_FOLDER_NAME
 
const string ASSET_PATH
 

Additional Inherited Members

- Properties inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic >
LeapGraphicRenderer renderer [get]
 Gets the renderer this rendering method is attached to. More...
 
LeapGraphicGroup group [get]
 Gets the group this rendering method is attached to. More...
 
- Properties inherited from Leap.Unity.GraphicalRenderer.ILeapInternalRenderingMethod
LeapGraphicRenderer renderer [set]
 
LeapGraphicGroup group [set]
 

Detailed Description

Definition at line 23 of file LeapTextRenderer.cs.

Member Function Documentation

◆ GetSpaceSupportInfo()

override SupportInfo Leap.Unity.GraphicalRenderer.LeapTextRenderer.GetSpaceSupportInfo ( LeapSpace  space)

Definition at line 60 of file LeapTextRenderer.cs.

◆ OnAddRemoveGraphics()

void Leap.Unity.GraphicalRenderer.LeapTextRenderer.OnAddRemoveGraphics ( List< int >  dirtyIndexes)

Must be implemented by a renderer to report that it is able to support adding and removing graphics at runtime.

Will be called once per frame, with a list of indexes that are 'dirty'. Each dirty index represents a graphic that might have changed completely because an ordering has changed. Dirty indexes will not be included for new graphics, so you will also need to check to see if the graphics list has increased in size.

Implements Leap.Unity.GraphicalRenderer.ISupportsAddRemove.

Definition at line 64 of file LeapTextRenderer.cs.

◆ OnDisableRenderer()

override void Leap.Unity.GraphicalRenderer.LeapTextRenderer.OnDisableRenderer ( )
virtual

Called when the renderer is disabled at runtime.

Implements Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic >.

Definition at line 86 of file LeapTextRenderer.cs.

◆ OnEnableRenderer()

override void Leap.Unity.GraphicalRenderer.LeapTextRenderer.OnEnableRenderer ( )
virtual

Called when the renderer is enabled at runtime.

Implements Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic >.

Definition at line 75 of file LeapTextRenderer.cs.

◆ OnUpdateRenderer()

override void Leap.Unity.GraphicalRenderer.LeapTextRenderer.OnUpdateRenderer ( )
virtual

Called from LateUpdate during runtime. Use this to update the renderer using any changes made to during this frame.

Implements Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapTextGraphic >.

Definition at line 90 of file LeapTextRenderer.cs.

Member Data Documentation

◆ _globalTint

Color Leap.Unity.GraphicalRenderer.LeapTextRenderer._globalTint = Color.white

Definition at line 38 of file LeapTextRenderer.cs.

◆ _useColor

bool Leap.Unity.GraphicalRenderer.LeapTextRenderer._useColor = true

Definition at line 35 of file LeapTextRenderer.cs.

◆ DEFAULT_FONT

const string Leap.Unity.GraphicalRenderer.LeapTextRenderer.DEFAULT_FONT = "Arial.ttf"
static

Definition at line 24 of file LeapTextRenderer.cs.

◆ DEFAULT_SHADER

const string Leap.Unity.GraphicalRenderer.LeapTextRenderer.DEFAULT_SHADER = "LeapMotion/GraphicRenderer/Text/Dynamic"
static

Definition at line 25 of file LeapTextRenderer.cs.

◆ SCALE_CONSTANT

const float Leap.Unity.GraphicalRenderer.LeapTextRenderer.SCALE_CONSTANT = 0.001f
static

Definition at line 26 of file LeapTextRenderer.cs.


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