string Description { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Description property of the Achievement class provides a textual description of the achievement. This description is intended to give players insight into what the achievement entails or how it can be unlocked.

Usage

To access or modify the Description property, you can use the following syntax:

Achievement myAchievement = new Achievement();
string achievementDescription = myAchievement.Description;
myAchievement.Description = "Complete the first level without taking damage.";

Ensure that the description is clear and concise to effectively communicate the achievement's requirements or significance to the player.

Example

Achievement myAchievement = new Achievement();
myAchievement.Description = "Defeat the final boss without using any health potions.";

// Output the description to a UI element or log
string description = myAchievement.Description;
// e.g., Display in a UI label or store for later use