Class Morph
- Namespace
- ValveResourceFormat.ResourceTypes
- Assembly
- ValveResourceFormat.dll
Represents a morph (flex) resource containing vertex deformation data.
public class Morph : KeyValuesOrNTRO
Inheritance
Inherited Members
Extension Methods
Constructors
Morph(BlockType)
Initializes a new instance of the ValveResourceFormat.ResourceTypes.Morph class.
public Morph(BlockType type)
Parameters
type
BlockType
Properties
FlexControllers
Gets the flex controllers that drive morph animations.
public FlexController[] FlexControllers { get; }
Property Value
FlexRules
Gets the flex rules that define how controllers affect morphs.
public FlexRule[] FlexRules { get; }
Property Value
- FlexRule[]
Texture
Gets the texture containing encoded morph deltas.
public Texture Texture { get; }
Property Value
TextureResource
Gets the resource containing the morph texture.
public Resource TextureResource { get; }
Property Value
Methods
GetFlexDescriptors()
Gets the list of flex descriptors.
public List<string> GetFlexDescriptors()
Returns
GetFlexVertexData()
Gets the flex vertex data as a dictionary mapping flex names to vertex positions.
public Dictionary<string, Vector3[]> GetFlexVertexData()
Returns
- Dictionary<string, Vector3[]>
GetMorphCount()
Gets the number of morphs.
public int GetMorphCount()
Returns
GetMorphDatas()
Gets the morph data collection.
public KVObject GetMorphDatas()
Returns
LoadFlexData(IFileLoader)
Loads flex data from the file loader.
public void LoadFlexData(IFileLoader fileLoader)
Parameters
fileLoader
IFileLoader