mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-18 21:17:17 -05:00
fix SettingsProvider
#if
This commit is contained in:
parent
258e3c52f1
commit
72fe88deb4
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user