public static GetCurveLibraryExtension ( bool normalized ) : string | ||
normalized | bool | |
Результат | string |
public static string GetCurveLibraryExtension(bool normalized)
{
if (normalized)
{
return "curvesNormalized";
}
return "curves";
}
private static string GetExtension(CurveLibraryType curveLibraryType) { switch (curveLibraryType) { case CurveLibraryType.Unbounded: return(PresetLibraryLocations.GetCurveLibraryExtension(false)); case CurveLibraryType.NormalizedZeroToOne: return(PresetLibraryLocations.GetCurveLibraryExtension(true)); } Debug.LogError("Enum not handled!"); return("curves"); }