ManoMotion SDK PRO  1.4.8
ManoMotion SDK PRO API documentation
ManoVisualization Class Reference

Handles the background mesh and displays the camera iamge. More...

Inheritance diagram for ManoVisualization:

Properties

bool ShowBackgroundLayer [get, set]
 

Private Member Functions

void InstantiateManomotionMeshes ()
 Creates the meshes needed by the different Manomotion Layers and also parents them to the scene's Main Camera More...
 
void Start ()
 
void SetHandsSupportedByLicence ()
 Set the maximum number of hands that can be simultaneously detected by Manomotion Manager based on the licence, only 1 hand is supporetd. More...
 
void HandleVisualizationOfUpdatedFrame ()
 Update the visualization after the manomotion frame is processed by the SDK. More...
 
void DisplayBackground (Texture2D backgroundTexture, MeshRenderer backgroundMeshRenderer)
 Projects the texture received from the camera as the background More...
 
void ToggleObjectVisibility (GameObject givenObject)
 Toggles the visibility of the given gameobject More...
 

Private Attributes

int handsSupportedByLicence = 1
 
Camera cam
 
GameObject manomotionGenericLayerPrefab
 
bool _showBackgroundLayer
 
MeshRenderer _backgroundMeshRenderer
 

Detailed Description

Handles the background mesh and displays the camera iamge.

Member Function Documentation

◆ DisplayBackground()

void ManoVisualization.DisplayBackground ( Texture2D  backgroundTexture,
MeshRenderer  backgroundMeshRenderer 
)
inlineprivate

Projects the texture received from the camera as the background

Parameters
backgroundTextureRequires the texture captured from the camera
backgroundMeshRendererRequires the MeshRenderer that the texture will be displayed

◆ HandleVisualizationOfUpdatedFrame()

void ManoVisualization.HandleVisualizationOfUpdatedFrame ( )
inlineprivate

Update the visualization after the manomotion frame is processed by the SDK.

◆ InstantiateManomotionMeshes()

void ManoVisualization.InstantiateManomotionMeshes ( )
inlineprivate

Creates the meshes needed by the different Manomotion Layers and also parents them to the scene's Main Camera

◆ SetHandsSupportedByLicence()

void ManoVisualization.SetHandsSupportedByLicence ( )
inlineprivate

Set the maximum number of hands that can be simultaneously detected by Manomotion Manager based on the licence, only 1 hand is supporetd.

◆ Start()

void ManoVisualization.Start ( )
inlineprivate

◆ ToggleObjectVisibility()

void ManoVisualization.ToggleObjectVisibility ( GameObject  givenObject)
inlineprivate

Toggles the visibility of the given gameobject

Parameters
givenObjectRequires a gameObject

Field Documentation

◆ _backgroundMeshRenderer

MeshRenderer ManoVisualization._backgroundMeshRenderer
private

◆ _showBackgroundLayer

bool ManoVisualization._showBackgroundLayer
private

◆ cam

Camera ManoVisualization.cam
private

◆ handsSupportedByLicence

int ManoVisualization.handsSupportedByLicence = 1
private

◆ manomotionGenericLayerPrefab

GameObject ManoVisualization.manomotionGenericLayerPrefab
private

Property Documentation

◆ ShowBackgroundLayer

bool ManoVisualization.ShowBackgroundLayer
getset

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