-
Notifications
You must be signed in to change notification settings - Fork 0
MinMaxCurve Extensions
Andrzej Kebab edited this page Feb 4, 2024
·
2 revisions
Gets the maximum value of the MinMaxCurve.
// Example usage
ParticleSystem.MinMaxCurve myCurve = /* Instantiate or reference a MinMaxCurve */;
float maxValue = myCurve.GetMaxValue();
Debug.Log($"Maximum value of the MinMaxCurve: {maxValue}");Parameters:
-
minMaxCurve(ParticleSystem.MinMaxCurve): The MinMaxCurve to get the maximum value from.
Returns:
- float: The maximum value of the MinMaxCurve.
Gets the minimum value of the MinMaxCurve.
// Example usage
ParticleSystem.MinMaxCurve myCurve = /* Instantiate or reference a MinMaxCurve */;
float minValue = myCurve.GetMinValue();
Debug.Log($"Minimum value of the MinMaxCurve: {minValue}");Parameters:
-
minMaxCurve(ParticleSystem.MinMaxCurve): The MinMaxCurve to get the minimum value from.
Returns:
- float: The minimum value of the MinMaxCurve.