public CurveData(string name, GUIContent displayName, SerializedProperty min, SerializedProperty max, Color color, bool signedRange, CurveWrapper.GetAxisScalarsCallback getAxisScalars, CurveWrapper.SetAxisScalarsCallback setAxisScalars, bool visible)
{
this.m_UniqueName = name;
this.m_DisplayName = displayName;
this.m_SignedRange = signedRange;
this.m_Min = min;
this.m_Max = max;
if (this.m_Min != null)
{
this.m_MinId = ++s_IdCounter;
}
if (this.m_Max != null)
{
this.m_MaxId = ++s_IdCounter;
}
this.m_Color = color;
this.m_GetAxisScalarsCallback = getAxisScalars;
this.m_SetAxisScalarsCallback = setAxisScalars;
this.m_Visible = visible;
if ((this.m_Max == null) || (this.m_MaxId == 0))
{
Debug.LogError("Max curve should always be valid! (Min curve can be null)");
}
}