summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
commit3af4c218c0e70167db23a6303d2af30aff37d2fe (patch)
tree927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs
parentb6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff)
downloadProject-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs')
-rw-r--r--Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs b/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs
deleted file mode 100644
index db42bb4..0000000
--- a/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_StyleAssetMenu.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.IO;
-using System.Collections;
-
-
-namespace TMPro.EditorUtilities
-{
-
- public static class TMP_StyleAssetMenu
- {
-
- [MenuItem("Assets/Create/TextMeshPro/Style Sheet", false, 120)]
- public static void CreateTextMeshProObjectPerform()
- {
- string filePath;
- if (Selection.assetGUIDs.Length == 0)
- {
- // No asset selected.
- filePath = "Assets";
- }
- else
- {
- // Get the path of the selected folder or asset.
- filePath = AssetDatabase.GUIDToAssetPath(Selection.assetGUIDs[0]);
-
- // Get the file extension of the selected asset as it might need to be removed.
- string fileExtension = Path.GetExtension(filePath);
- if (fileExtension != "")
- {
- filePath = Path.GetDirectoryName(filePath);
- }
- }
-
-
- string filePathWithName = AssetDatabase.GenerateUniqueAssetPath(filePath + "/TMP StyleSheet.asset");
-
- //// Create new Style Sheet Asset.
- TMP_StyleSheet styleSheet = ScriptableObject.CreateInstance<TMP_StyleSheet>();
-
- AssetDatabase.CreateAsset(styleSheet, filePathWithName);
-
- EditorUtility.SetDirty(styleSheet);
-
- AssetDatabase.SaveAssets();
- }
- }
-
-} \ No newline at end of file