string ResourceName { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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.

Example

// 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}");