Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.ShapeKey Class Reference

Public Member Functions

 ShapeKey (int[] idArray)
 The default Constructor.
void SetValue (float _value, ref Dictionary< int, float > blendshapeValueDict)
 Sets the value of the associated blendshape.
void ResetInitialValue ()
void Upgrade ()

Public Attributes

List< ShapeKeyBlendshapeblendshapes = null
string label = ""
int ID = 0
float value = 0
float targetValue = 0

Properties

float InitialValue [get]

Detailed Description

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

Constructor & Destructor Documentation

◆ ShapeKey()

AC.ShapeKey.ShapeKey ( int[] idArray)

The default Constructor.

Parameters
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,
ref Dictionary< int, float > blendshapeValueDict )

Sets the value of the associated blendshape.

Parameters
_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

◆ 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