|
Adventure Creator 1.85.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2025
|
Public Member Functions | |
| void | LimitTextureArray () |
| void | SetFrame (int textureIndex, bool fromLateUpdate=false) |
| Sets the material's texture based on the currently-active phoneme. | |
Public Attributes | |
| Renderer | skinnedMeshRenderer |
| int | materialIndex |
| string | propertyName = "_MainTex" |
| List< Texture2D > | textures = new List<Texture2D>() |
| bool | affectInLateUpdate |
Protected Member Functions | |
| void | Awake () |
| void | LateUpdate () |
Protected Attributes | |
| int | thisFrameIndex = -1 |
Animates a MeshRenderer's textures based on lipsync animation
| void AC.LipSyncTexture.LimitTextureArray | ( | ) |
Resizes the textures List to match the number of phonemes defined in the Phonemes Editor
| void AC.LipSyncTexture.SetFrame | ( | int | textureIndex, |
| bool | fromLateUpdate = false ) |
Sets the material's texture based on the currently-active phoneme.
| textureIndex | The index number of the phoneme |
| fromLateUpdate | If True, then this function is called from LateUpdate |
| bool AC.LipSyncTexture.affectInLateUpdate |
If True, then changes to the material will be applied in LateUpdate, as opposed to Update calls
| int AC.LipSyncTexture.materialIndex |
The index of the material to affect
| string AC.LipSyncTexture.propertyName = "_MainTex" |
The material's property name that will be replaced
| Renderer AC.LipSyncTexture.skinnedMeshRenderer |
The Renderer to affect
| List<Texture2D> AC.LipSyncTexture.textures = new List<Texture2D>() |
A List of Texture2Ds that correspond to the phoneme defined in the Phonemes Editor