The ResourceName
property represents the file name of the resource without its file extension. This property is part of the Resource
class, which is used to manage resources loaded in the engine, such as models or materials.
The ResourceName
property represents the file name of the resource without its file extension. This property is part of the Resource
class, which is used to manage resources loaded in the engine, such as models or materials.
Use the ResourceName
property to retrieve or set the name of a resource file without its extension. This can be useful for display purposes or when you need to reference the resource by name in your code.
// Example of accessing the ResourceName property Resource myResource = new Resource(); string resourceName = myResource.ResourceName; // Set a new resource name myResource.ResourceName = "NewResourceName";