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 identify or manipulate resources based on their file names.

Example

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