Description
The Name
property of the Achievement
class represents the unique identifier for an achievement within the Sandbox environment. This property is a string that typically contains a short, descriptive name used to reference the achievement programmatically.
Usage
Use the Name
property to get or set the unique identifier for an achievement. This identifier is used internally to distinguish between different achievements and should be unique across all achievements in the application.
Example
// Example of accessing the Name property of an Achievement instance
// Create a new instance of Achievement
Achievement myAchievement = new Achievement();
// Set the Name property
myAchievement.Name = "FirstBlood";
// Get the Name property
string achievementName = myAchievement.Name;
// Output the achievement name
// Note: Avoid using Console.WriteLine in Sandbox environment
// Instead, use appropriate logging or UI display methods
// Log.Info($"Achievement Name: {achievementName}");