private SetNormalizedConstant ( UnityEditor.SerializedProperty curve, float totalValue ) : void | ||
curve | UnityEditor.SerializedProperty | |
totalValue | float | |
리턴 | void |
private void SetNormalizedConstant(SerializedProperty curve, float totalValue)
{
float num = Mathf.Max(this.scalar.floatValue, 0.0001f);
float num2 = totalValue / num;
this.SetCurveConstant(curve, num2);
}