コード例 #1
0
        void OnGUI()
        {
            GUILayout.Label("Small Importer:", EditorStyles.boldLabel);
            prefixPrefab = EditorGUILayout.TextField("Prefix Identification", prefixPrefab);
            logMask      = (SmallLogger.LogType)EditorGUILayout.MaskField("Log", (int)logMask, Enum.GetNames(typeof(SmallLogger.LogType)));

            if (GUILayout.Button("Refresh SUBlime"))
            {
                SmallLogger.Log(SmallLogger.LogType.Debug, "Sublime refreshed.");
                SmallAssetPostprocessor.Reset();
            }

            // Save in EditorPlayerPrefs
            EditorPrefs.SetString("SBI_prefixPrefab", prefixPrefab);
            EditorPrefs.SetInt("SBI_log", (int)logMask);
        }
コード例 #2
0
 void Awake()
 {
     prefixPrefab = EditorPrefs.GetString("SBI_prefixPrefab", prefixPrefab);
     logMask      = (SmallLogger.LogType)EditorPrefs.GetInt("SBI_log", (int)logMask);
 }