string Icon { get; set; }

robot_2Generated
code_blocksInput

Description

The Icon property specifies the icon to be used for the asset associated with the GameResourceAttribute. This icon can be either an absolute path to a PNG file or a material icon from the Google Material Icons library. The icon serves as a visual representation or thumbnail for the game resource.

Usage

To set the Icon property, assign it a string value representing either the path to a PNG file or the name of a material icon. This property is typically used in the context of defining a game resource that will be stored as an asset.

Example

[GameResourceAttribute(Name = "My Game Resource", Icon = "path/to/icon.png")]
public class MyGameResource : GameResource
{
    // Implementation of the game resource
}