Tanoda
Leap.Unity.GraphicalRenderer.LeapDynamicRenderer Class Reference
Inheritance diagram for Leap.Unity.GraphicalRenderer.LeapDynamicRenderer:
Leap.Unity.GraphicalRenderer.LeapMesherBase Leap.Unity.GraphicalRenderer.ISupportsAddRemove Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomMatrixChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomColorChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomVectorChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomFloatChannelFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapBlendShapeFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapRuntimeTintFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapSpriteFeature > Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapTextureFeature > Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >

Public Member Functions

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 SupportInfo GetSpaceSupportInfo (LeapSpace space)
 
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.LeapMesherBase
virtual void GetSupportInfo (List< LeapTextureFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< LeapSpriteFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< LeapRuntimeTintFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< LeapBlendShapeFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomFloatChannelFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomVectorChannelFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomColorChannelFeature > features, List< SupportInfo > info)
 
virtual void GetSupportInfo (List< CustomMatrixChannelFeature > features, List< SupportInfo > info)
 
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< LeapMeshGraphicBase >
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)
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapTextureFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapSpriteFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapRuntimeTintFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< LeapBlendShapeFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomFloatChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomVectorChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomColorChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
- Public Member Functions inherited from Leap.Unity.GraphicalRenderer.ISupportsFeature< CustomMatrixChannelFeature >
void GetSupportInfo (List< T > features, List< SupportInfo > info)
 Must be implemented by a renderer to report what level of support it has for all features of this type.
More...
 
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...
 

Static Public Attributes

const string DEFAULT_SHADER = "LeapMotion/GraphicRenderer/Unlit/Dynamic Transparent"
 
- Static Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
const string MESH_ASSET_NAME = "Mesh Data"
 
const string TEXTURE_ASSET_NAME = "Texture Data"
 
const string UV_0_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_0"
 
const string UV_1_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_1"
 
const string UV_2_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_2"
 
const string UV_3_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_UV_3"
 
const string COLORS_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_COLORS"
 
const string NORMALS_FEATURE = LeapGraphicRenderer.FEATURE_PREFIX + "VERTEX_NORMALS"
 
const string CUSTOM_CHANNEL_KEYWORD = LeapGraphicRenderer.FEATURE_PREFIX + "ENABLE_CUSTOM_CHANNELS"
 
- Static Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >
const string DATA_FOLDER_NAME
 
const string ASSET_PATH
 

Protected Member Functions

override void prepareMaterial ()
 
override void buildGraphic ()
 
override bool doesRequireVertInfo ()
 
override Vector3 graphicVertToMeshVert (Vector3 vertex)
 
override void graphicVertNormalToMeshVertNormal (Vector3 vertex, Vector3 normal, out Vector3 meshVert, out Vector3 meshNormal)
 
override Vector3 blendShapeDelta (Vector3 shapeVert, Vector3 originalVert)
 
- Protected Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
virtual void updateTinting ()
 
virtual void updateBlendShapes ()
 
virtual void updateCustomChannels ()
 
virtual void setupForBuilding ()
 
virtual void loadAllSupportedFeatures ()
 
virtual void prepareMeshes ()
 
virtual void prepareMaterial ()
 
virtual void extractSpriteRects ()
 
virtual void uploadSpriteTextures ()
 
virtual void buildMesh ()
 
virtual void buildGraphic ()
 
virtual void refreshMeshData ()
 
virtual void buildTopology ()
 
virtual void buildColors ()
 
virtual void buildUvs (UVChannelFlags channel)
 
virtual void buildVertInfo ()
 
virtual void buildBlendShapes (LeapBlendShapeData blendShapeData)
 
virtual Vector3 blendShapeDelta (Vector3 shapeVert, Vector3 originalVert)
 
virtual void beginMesh (Mesh mesh=null)
 
virtual void finishMesh (bool deleteEmptyMeshes=true)
 
virtual void finishAndAddMesh (bool deleteEmptyMeshes=true)
 
virtual void postProcessMesh ()
 
virtual bool doesRequireMeshColors ()
 
virtual bool doesRequireMeshNormals ()
 
virtual bool doesRequireUvChannel (UVChannelFlags channel)
 
void drawMesh (Mesh mesh, Matrix4x4 transform)
 
virtual bool doesRequireVertInfo ()
 
abstract Vector3 graphicVertToMeshVert (Vector3 vertex)
 
abstract void graphicVertNormalToMeshVertNormal (Vector3 vertex, Vector3 normal, out Vector3 meshVert, out Vector3 meshNormal)
 

Additional Inherited Members

- Static Public Member Functions inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
static string GetUvFeature (UVChannelFlags flags)
 
- Public Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
Action< Texture2D, AtlasUvsOnPostProcessAtlas
 
- Protected Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
Shader _shader
 
GenerationState _generation = GenerationState.GetGenerationState()
 
bool _doesRequireColors
 
bool _doesRequireNormals
 
bool _doesRequireVertInfo
 
List< UVChannelFlags > _requiredUvChannels = new List<UVChannelFlags>()
 
List< LeapTextureFeature_textureFeatures = new List<LeapTextureFeature>()
 
List< LeapSpriteFeature_spriteFeatures = new List<LeapSpriteFeature>()
 
List< LeapRuntimeTintFeature_tintFeatures = new List<LeapRuntimeTintFeature>()
 
List< LeapBlendShapeFeature_blendShapeFeatures = new List<LeapBlendShapeFeature>()
 
List< CustomFloatChannelFeature_floatChannelFeatures = new List<CustomFloatChannelFeature>()
 
List< CustomVectorChannelFeature_vectorChannelFeatures = new List<CustomVectorChannelFeature>()
 
List< CustomColorChannelFeature_colorChannelFeatures = new List<CustomColorChannelFeature>()
 
List< CustomMatrixChannelFeature_matrixChannelFeatures = new List<CustomMatrixChannelFeature>()
 
Material _material
 
RendererMeshData _meshes
 
RendererTextureData _packedTextures
 
MaterialPropertyBlock _spriteTextureBlock
 
List< Vector4 > _tintColors = new List<Vector4>()
 
List< float > _blendShapeAmounts = new List<float>()
 
List< float > _customFloatChannelData = new List<float>()
 
List< Vector4 > _customVectorChannelData = new List<Vector4>()
 
List< Color_customColorChannelData = new List<Color>()
 
List< Matrix4x4 > _customMatrixChannelData = new List<Matrix4x4>()
 
- Static Protected Attributes inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
const string TINTS_PROPERTY = LeapGraphicRenderer.PROPERTY_PREFIX + "Tints"
 
const string BLEND_SHAPE_AMOUNTS_PROPERTY = LeapGraphicRenderer.PROPERTY_PREFIX + "BlendShapeAmounts"
 
- Properties inherited from Leap.Unity.GraphicalRenderer.LeapMesherBase
Material material [get]
 
IEnumerable< UVChannelFlags > enabledUvChannels [get]
 
- Properties inherited from Leap.Unity.GraphicalRenderer.LeapRenderingMethod< LeapMeshGraphicBase >
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 19 of file LeapDynamicRenderer.cs.

Member Function Documentation

◆ blendShapeDelta()

override Vector3 Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.blendShapeDelta ( Vector3  shapeVert,
Vector3  originalVert 
)
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 195 of file LeapDynamicRenderer.cs.

◆ buildGraphic()

override void Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.buildGraphic ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 168 of file LeapDynamicRenderer.cs.

◆ doesRequireVertInfo()

override bool Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.doesRequireVertInfo ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 179 of file LeapDynamicRenderer.cs.

◆ GetSpaceSupportInfo()

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

Definition at line 59 of file LeapDynamicRenderer.cs.

◆ graphicVertNormalToMeshVertNormal()

override void Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.graphicVertNormalToMeshVertNormal ( Vector3  vertex,
Vector3  normal,
out Vector3  meshVert,
out Vector3  meshNormal 
)
protectedvirtual

◆ graphicVertToMeshVert()

override Vector3 Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.graphicVertToMeshVert ( Vector3  vertex)
protectedvirtual

◆ OnAddRemoveGraphics()

void Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.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 30 of file LeapDynamicRenderer.cs.

◆ OnUpdateRenderer()

override void Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.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< LeapMeshGraphicBase >.

Definition at line 69 of file LeapDynamicRenderer.cs.

◆ prepareMaterial()

override void Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.prepareMaterial ( )
protectedvirtual

Reimplemented from Leap.Unity.GraphicalRenderer.LeapMesherBase.

Definition at line 152 of file LeapDynamicRenderer.cs.

Member Data Documentation

◆ DEFAULT_SHADER

const string Leap.Unity.GraphicalRenderer.LeapDynamicRenderer.DEFAULT_SHADER = "LeapMotion/GraphicRenderer/Unlit/Dynamic Transparent"
static

Definition at line 20 of file LeapDynamicRenderer.cs.


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