Adventure Creator  1.66.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.ShapeKey Class Reference

Public Member Functions

 ShapeKey (int[] idArray)
 The default Constructor. More...
void SetValue (float _value, SkinnedMeshRenderer smr)
 Sets the value of the associated blendshape More...

Public Attributes

int index = 0
string label = ""
int ID = 0
float value = 0
float targetValue = 0

Detailed Description

A data container for a blendshape, stored within a ShapeGroup.

Constructor & Destructor Documentation

◆ ShapeKey()

AC.ShapeKey.ShapeKey ( int []  idArray)

The default Constructor.

idArrayAn array of existing ShapeKey ID numbers, to ensure that the key's identifier is unique

Member Function Documentation

◆ SetValue()

void AC.ShapeKey.SetValue ( float  _value,
SkinnedMeshRenderer  smr 

Sets the value of the associated blendshape

_valueThe value that the blendshape should have
smrThe SkinnedMeshRenderer component that the blendshape is a part of

Member Data Documentation

◆ ID

int AC.ShapeKey.ID = 0

A unique identifier

◆ index

int AC.ShapeKey.index = 0

The index number of the SkinnedMeshRenderer's blendshapes that this is linked to

◆ label

string AC.ShapeKey.label = ""

An editor-friendly name of the blendshape

◆ targetValue

float AC.ShapeKey.targetValue = 0

The intended value of the blendshape

◆ value

float AC.ShapeKey.value = 0

The current value of the blendshape