private static GetExtension ( CurveLibraryType curveLibraryType ) : string | ||
curveLibraryType | CurveLibraryType | |
Résultat | string |
private static string GetExtension(CurveLibraryType curveLibraryType)
{
if (curveLibraryType != CurveLibraryType.NormalizedZeroToOne)
{
if (curveLibraryType == CurveLibraryType.Unbounded)
{
return PresetLibraryLocations.GetCurveLibraryExtension(false);
}
}
else
{
return PresetLibraryLocations.GetCurveLibraryExtension(true);
}
Debug.LogError("Enum not handled!");
return "curves";
}
public static string GetBasePrefText(CurveLibraryType curveLibraryType) { return(CurvePresetsContentsForPopupWindow.GetExtension(curveLibraryType)); }