VisemeTrackclass

A sound's lipsync track - visemes over time, authored in the sound editor and stored in the sound's .meta file. Sample it at the sound's playback time to get viseme weights to drive a face's morphs.

object→VisemeTrack
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.VisemeTrack

Methods1

Showing 1 methods

public bool Sample(float time, System.Span`1<float> weights)PUBLIC

ParameterTypeDescription
timefloat—
weightsSpan<float>—
Returns:bool—

Properties2

Showing 2 properties

public float Sandbox.VisemeTrack.Duration { get; set; }PUBLICGETSET

End time of the last frame, in seconds.

Returns:float—

public System.Collections.Generic.IReadOnlyList`1<Sandbox.VisemeFrame> Sandbox.VisemeTrack.Frames { get; set; }PUBLICGETSET

The viseme frames, sorted by start time.

Returns:IReadOnlyList<VisemeFrame>—

On this page