Struct BodyGroupChoice ​
Namespace: ValveResourceFormat.Renderer.SceneNodes
Assembly: Renderer.dll
A choice of a body group of a model, which the model holds as one of its mesh groups.
public readonly record struct BodyGroupChoice : IEquatable<BodyGroupChoice>Implements ​
Constructors ​
BodyGroupChoice(string, string, int, string?) ​
A choice of a body group of a model, which the model holds as one of its mesh groups.
public BodyGroupChoice(string MeshGroup, string BodyGroup, int Index, string? Name)Parameters ​
MeshGroup string
The mesh group of the choice.
BodyGroup string
The body group the choice is of.
Index int
The number of the choice in its body group.
Name string?
The name of the choice, where the model gives it one.
Properties ​
BodyGroup ​
The body group the choice is of.
public string BodyGroup { get; init; }Property Value ​
string
Index ​
The number of the choice in its body group.
public int Index { get; init; }Property Value ​
int
MeshGroup ​
The mesh group of the choice.
public string MeshGroup { get; init; }Property Value ​
string
Name ​
The name of the choice, where the model gives it one.
public string? Name { get; init; }Property Value ​
string?
Methods ​
Parse(string) ​
Reads the choice a mesh group holds from its name.
public static BodyGroupChoice? Parse(string meshGroup)Parameters ​
meshGroup string
The name of the mesh group.
Returns ​
The choice, or null when the mesh group is not one.

