Description
The Icon
property of the Achievement
class represents the visual representation of the achievement. It is a string that typically contains the path or identifier for the icon image associated with the achievement. This property is useful for displaying the achievement's icon in user interfaces, such as achievement lists or notifications.
Usage
To use the Icon
property, you can access it directly from an instance of the Achievement
class. This property is read-write, allowing you to get or set the icon path as needed.
Example
// Example of accessing the Icon property
Achievement achievement = new Achievement();
achievement.Icon = "path/to/icon.png";
string iconPath = achievement.Icon;
// Use the iconPath to display the icon in the UI