Skip to content

MinMaxCurve Extensions

Andrzej Kebab edited this page Feb 4, 2024 · 2 revisions

UtilityLibrary.Unity.Runtime

GetMaxValue

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.

GetMinValue

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.

Clone this wiki locally