string Name { get; set; }

robot_2Generated
code_blocksInput

Description

The Name property of the Material class represents the name or path of the material. This property is used to identify the material within the Sandbox environment, allowing for easy reference and management of materials in your project.

Usage

To access or modify the name of a material, use the Name property. This property is a string and can be both read and written to. It is useful for setting a descriptive name for the material or for retrieving the current name for display or logging purposes.

Example

// Example of setting and getting the Name property of a Material
Material myMaterial = new Material();

// Set the name of the material
myMaterial.Name = "WoodTexture";

// Get the name of the material
string materialName = myMaterial.Name;

// Output the name of the material
// Note: Use a UI element or logging system to display the name
// e.g., Debug.Log(materialName);