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 display or log the resource name without the file type information.
// Assuming 'resource' is an instance of Sandbox.Resource string name = resource.ResourceName; // Use the resource name for display or logging purposes Console.WriteLine($"Resource Name: {name}");