Table of Contents

Class FlexSceneFile.FlexSetting

Namespace
ValveResourceFormat.FlexSceneFile
Assembly
ValveResourceFormat.dll

Represents a flex setting for a phoneme.

public class FlexSceneFile.FlexSetting

Inheritance

Inherited Members

Constructors

FlexSetting(string)

Initializes a new instance of the ValveResourceFormat.FlexSceneFile.FlexSceneFile.FlexSetting class.

public FlexSetting(string name)

Parameters

name string

Properties

Name

Gets the name of the flex setting.

public string Name { get; init; }

Property Value

string

Phoneme

Gets the phoneme code.

public int Phoneme { get; init; }

Property Value

int

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

Dictionary<int, FlexSceneFile.FlexWeight>

Methods

AddWeight(int, FlexWeight)

Adds a flex weight for the specified key.

public void AddWeight(int key, FlexSceneFile.FlexWeight data)

Parameters

key int
data FlexSceneFile.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

key int

Returns

FlexSceneFile.FlexWeight

Remarks

Returns the default value when no weight is stored for the supplied key.