public ICubemapConverter Select(OutputImageType fileType) { switch (fileType) { case OutputImageType.HorizontalPng: return(_horizontalPngConverter); default: return(_verticalPngConverter); } }
private void SetExportLayout() { SetStandardSpace(); GUILayout.Label("Export", EditorStyles.boldLabel); _imageType = (OutputImageType)EditorGUILayout.EnumPopup("Image Type", _imageType); bool lastEnabled = GUI.enabled; GUI.enabled = CheckExportable(); if (GUILayout.Button("Export Cubemap to File")) { ExportCubemap(); } GUILayout.Label(text: "Export requires \"Render Cubemap\"", style: EditorStyles.miniBoldLabel); GUI.enabled = lastEnabled; }