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