The ResourceName
property represents the file name of the resource without its file extension. It is a part of the Sandbox.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. It is a part of the Sandbox.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 property is useful when you need to identify or manipulate resources based on their file names.
// Assuming 'resource' is an instance of Sandbox.Resource string name = resource.ResourceName; // Use the name for display or logic purposes Console.WriteLine($"Resource Name: {name}");