Skip to content

BlendShapeBlender.cs

Matthew Coulter edited this page Aug 17, 2022 · 1 revision

BlendShapeBlender

class/ Inherits from:MonoBehaviour

Description

This component handles automatically animatingblendshape layers on a skinned mesh renderer each individually from 0-100 in order.

There can be as many blend shapes as required and the order can be reversed. This is used for the battery indicator of the flash system.

The lerping from 0 to 100 is always happening

Public Properties

Property Description Type
value; The current lerped value between 0 and 100 float
inverseDirection Updates the blend shapes from bottom to top instead of top to bottom bool
inverseSize Blend shapes will be set to 100 when value is 0 bool