UnityEditor.PresetLibraryLocations.GetCurveLibraryExtension C# (CSharp) Method

GetCurveLibraryExtension() public static method

public static GetCurveLibraryExtension ( bool normalized ) : string
normalized bool
return string
        public static string GetCurveLibraryExtension(bool normalized)
        {
            if (normalized)
            {
                return "curvesNormalized";
            }
            return "curves";
        }

Usage Example

        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");
        }
All Usage Examples Of UnityEditor.PresetLibraryLocations::GetCurveLibraryExtension