Description
The Flags
property of the Material
class provides access to the flags associated with a material. These flags typically provide hints about the material's contents and are often added procedurally by the shader. However, developers can also add or modify these flags using the material editor.
Usage
To access the flags of a material, you can use the Flags
property. This property returns a FlagsAccessor
object, which allows you to interact with the material's flags.
Example usage:
Material myMaterial = Material.Load("path/to/material");
var flags = myMaterial.Flags;
// Use flags to check or modify material properties
Example
Material myMaterial = Material.Load("path/to/material");
var flags = myMaterial.Flags;
// Use flags to check or modify material properties