Description
The Range
property of the Achievement
class represents the minimum and maximum values that define the range of a particular achievement's progress. It is a Vector2
type, where the X
component typically represents the minimum value and the Y
component represents the maximum value.
Usage
Use the Range
property to determine the bounds within which the achievement's progress is measured. This can be useful for displaying progress bars or calculating the percentage completion of an achievement.
Example
// Example of accessing the Range property
Achievement achievement = new Achievement();
Vector2 range = achievement.Range;
// Display the range
float minValue = range.x;
float maxValue = range.y;
// Output the range values
// Note: Replace with appropriate display logic in your application
// e.g., UI elements, logging, etc.
// DisplayRange(minValue, maxValue);