SRanipal Unity SDK  1.3.2.0
SRanipal Unity SDK document
Static Public Member Functions | Public Attributes | List of all members
ViveSR.anipal.Lip.SRanipal_Lip_v2 Class Reference

Static Public Member Functions

static bool GetLipWeightings (out Dictionary< LipShape_v2, float > shapes)
 Gets weighting values from anipal's Lip module. More...
 
static bool GetLipImage (ref Texture2D texture)
 Extracts the latest image from the lip device. More...
 

Public Attributes

const int ANIPAL_TYPE_LIP_V2 = 3
 
const int ImageWidth = 800
 
const int WeightingCount = (int)LipShape_v2.Max
 

Member Function Documentation

◆ GetLipImage()

static bool ViveSR.anipal.Lip.SRanipal_Lip_v2.GetLipImage ( ref Texture2D  texture)
inlinestatic

Extracts the latest image from the lip device.

Parameters
textureA texture whose colors, height, and width are set as those of the lastest image extracted from the lip device.
Returns
Indicates whether the image extracted is new.

◆ GetLipWeightings()

static bool ViveSR.anipal.Lip.SRanipal_Lip_v2.GetLipWeightings ( out Dictionary< LipShape_v2, float >  shapes)
inlinestatic

Gets weighting values from anipal's Lip module.

Parameters
shapesWeighting values obtained from anipal's Lip module.
Returns
Indicates whether the values received are new.