Class FlexSceneFile.FlexSetting
Namespace: ValveResourceFormat.FlexSceneFile
Assembly: ValveResourceFormat.dll
Represents a flex setting for a phoneme.
csharp
public class FlexSceneFile.FlexSettingInheritance
object ← FlexSceneFile.FlexSetting
Constructors
FlexSetting(string)
Initializes a new instance of the class.
csharp
public FlexSetting(string name)Parameters
name string
Properties
Name
Gets the name of the flex setting.
csharp
public string Name { get; init; }Property Value
Phoneme
Gets the phoneme code.
csharp
public int Phoneme { get; init; }Property Value
Settings
Maps flex controllers to expression settings. Use to find the flex controller's key.
csharp
public Dictionary<int, FlexSceneFile.FlexWeight> Settings { get; }Property Value
Dictionary<int, FlexSceneFile.FlexWeight>
Methods
AddWeight(int, FlexWeight)
Adds a flex weight for the specified key.
csharp
public void AddWeight(int key, FlexSceneFile.FlexWeight data)Parameters
key int
data FlexSceneFile.FlexWeight
GetWeight(int)
Returns expression settings for a flex controller. Use to find the flex controller's key.
csharp
public FlexSceneFile.FlexWeight GetWeight(int key)Parameters
key int
Returns
Remarks
Returns the default value when no weight is stored for the supplied key.

