UnityEditor.CurvePresetsContentsForPopupWindow.GetExtension C# (CSharp) Method

GetExtension() private static method

private static GetExtension ( CurveLibraryType curveLibraryType ) : string
curveLibraryType CurveLibraryType
return 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";
        }

Usage Example

Ejemplo n.º 1
0
 public static string GetBasePrefText(CurveLibraryType curveLibraryType)
 {
     return(CurvePresetsContentsForPopupWindow.GetExtension(curveLibraryType));
 }
All Usage Examples Of UnityEditor.CurvePresetsContentsForPopupWindow::GetExtension