string GetCurveInfo(NcCurveAnimation.NcInfoCurve curveInfo, string subDir) { if (curveInfo != null) { if (m_bOnlyCurve) { return string.Format("- SavePrefab: {0}", subDir); } else { string option1 = ""; string option2 = ""; for (int n=0; n < curveInfo.GetValueCount(); n++) option1 += string.Format("{0}({1}) ", curveInfo.GetValueName(n), (curveInfo.m_bApplyOption[n] ? "O" : " ")); if (curveInfo.m_ApplyType == NcCurveAnimation.NcInfoCurve.APPLY_TYPE.MATERIAL_COLOR) option2 = "To Color: " + curveInfo.m_ToColor.ToString() + "\n- Recursively: " + curveInfo.m_bRecursively.ToString(); else if (curveInfo.m_ApplyType == NcCurveAnimation.NcInfoCurve.APPLY_TYPE.MESH_COLOR) option2 = "From Color: " + curveInfo.m_FromColor.ToString() + "To Color: " + curveInfo.m_ToColor.ToString() + "\n- Recursively: " + curveInfo.m_bRecursively.ToString(); else option2 = "Value Scale: "+curveInfo.m_fValueScale.ToString(); return string.Format("- {0} {1}\n- {2}\n- SavePrefab: {3}", curveInfo.m_ApplyType.ToString(), option1, option2, subDir); } } return ""; }