fix SettingsProvider

#if
This commit is contained in:
ousttrue 2021-05-28 16:55:27 +09:00
parent 258e3c52f1
commit 72fe88deb4
2 changed files with 8 additions and 3 deletions

View File

@ -2,8 +2,10 @@ using UnityEngine;
using UnityEditor;
using System.Linq;
using System;
using System.IO;
using System.Collections.Generic;
#if UNITY_2019_1_OR_NEWER
using UnityEditor.Graphs;
#endif
namespace UniGLTF
{
@ -40,7 +42,7 @@ namespace UniGLTF
{
var provider = new SettingsProvider("Preferences/UniGLTF",
SettingsScope.User, SettingsProvider.GetSearchKeywordsFromGUIContentProperties<Styles>());
provider.guiHandler = (sarchContext) => OnGUI();
provider.guiHandler = (sarchContext) => OnPreferenceGUI();
return provider;
}
#else

View File

@ -1,4 +1,7 @@
using UnityEditor;
#if UNITY_2019_1_OR_NEWER
using UnityEditor.Graphs;
#endif
namespace VRM
{
@ -13,7 +16,7 @@ namespace VRM
{
var provider = new SettingsProvider("Preferences/VRM0",
SettingsScope.User, SettingsProvider.GetSearchKeywordsFromGUIContentProperties<Styles>());
provider.guiHandler = (sarchContext) => OnGUI();
provider.guiHandler = (sarchContext) => OnPreferenceGUI();
return provider;
}
#else