Skip to main content

InworldFacialEmotion

This scriptable object contains all the facial animation related classes.

VariableDescription
emotionThe list of the FacialAnimation this map stored.
FunctionsDescriptionParameters
this[]This scriptable Object also supports using [] to get the FacialAnimationemoName: the string of the emotion name to acquire the data.

Classes

MorphState

Module: Inworld.Assets. Namespace: Inworld.Assets.

This class represents a morph state, which defines how specific morph targets (e.g., "eyeClosed") should be adjusted to a certain weight (e.g., 0.7) when an emotion is triggered.

VariableDescription
morphNameThe name of the blendshape morph.
morphWeightThe target weight for the morph when an emotion is triggered.

FacialAnimation

Module: Inworld.Assets. Namespace: Inworld.Assets.

This class stores data for mapping emotion enums to icons and a list of associated MorphStates.

Inspector Variables

VariableDescription
emotionThe emotion enum received from the server.
iconThe emoji icon used for 3D Inworld characters.
morphStatesA list of MorphStates processed for the emotion enum.