Struct ToolsMaterials.TextureLabel ​
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Describes a generated texture that names what faces were built from: a tools material, the class of an entity volume, or the layers of collision.
public readonly record struct ToolsMaterials.TextureLabel : IEquatable<ToolsMaterials.TextureLabel>Implements ​
IEquatable<ToolsMaterials.TextureLabel>
Constructors ​
TextureLabel(string, string, Color32) ​
Describes a generated texture that names what faces were built from: a tools material, the class of an entity volume, or the layers of collision.
public TextureLabel(string Key, string Name, Color32 Background)Parameters ​
Key string
Name of the texture, unique to what it names. The texture is cached and exported under it.
Name string
The name written on the texture, with underscores between its words.
Background Color32
The color the texture is filled with.
Properties ​
Background ​
The color the texture is filled with.
public Color32 Background { get; init; }Property Value ​
Key ​
Name of the texture, unique to what it names. The texture is cached and exported under it.
public string Key { get; init; }Property Value ​
string
Name ​
The name written on the texture, with underscores between its words.
public string Name { get; init; }Property Value ​
string
Text ​
Gets the color of the name: black on light backgrounds, and white on dark ones.
public Color32 Text { get; }
