@@ -14,6 +14,11 @@ namespace Microsoft.MixedReality.Toolkit.Core.Utilities.Editor.Setup
1414 [ InitializeOnLoad ]
1515 public class MixedRealityEditorSettings : IActiveBuildTargetChanged
1616 {
17+ public MixedRealityEditorSettings ( )
18+ {
19+ callbackOrder = 0 ;
20+ }
21+
1722 private const string SessionKey = "_MixedRealityToolkit_Editor_ShownSettingsPrompts" ;
1823
1924 private static string mixedRealityToolkit_RelativeFolderPath = string . Empty ;
@@ -22,7 +27,7 @@ public static string MixedRealityToolkit_AbsoluteFolderPath
2227 {
2328 get
2429 {
25- if ( string . IsNullOrWhiteSpace ( mixedRealityToolkit_RelativeFolderPath ) )
30+ if ( string . IsNullOrEmpty ( mixedRealityToolkit_RelativeFolderPath ) )
2631 {
2732 if ( ! FindDirectory ( Application . dataPath , "MixedRealityToolkit" , out mixedRealityToolkit_RelativeFolderPath ) )
2833 {
@@ -34,7 +39,10 @@ public static string MixedRealityToolkit_AbsoluteFolderPath
3439 }
3540 }
3641
37- public static string MixedRealityToolkit_RelativeFolderPath => MixedRealityToolkit_AbsoluteFolderPath . Replace ( Application . dataPath + "\\ " , "Assets/" ) ;
42+ public static string MixedRealityToolkit_RelativeFolderPath
43+ {
44+ get { return MixedRealityToolkit_AbsoluteFolderPath . Replace ( Application . dataPath + "\\ " , "Assets/" ) ; }
45+ }
3846
3947 static MixedRealityEditorSettings ( )
4048 {
@@ -138,7 +146,7 @@ private static void SetIconTheme()
138146 return ;
139147 }
140148
141- var icons = Directory . GetFiles ( $ " { MixedRealityToolkit_AbsoluteFolderPath } /_Core/Resources/Icons") ;
149+ var icons = Directory . GetFiles ( MixedRealityToolkit_AbsoluteFolderPath + " /_Core/Resources/Icons") ;
142150 var icon = new Texture2D ( 2 , 2 ) ;
143151
144152 for ( int i = 0 ; i < icons . Length ; i ++ )
@@ -165,8 +173,10 @@ private static void SetIconTheme()
165173 AssetDatabase . Refresh ( ImportAssetOptions . ForceUpdate ) ;
166174 }
167175
168- public int callbackOrder { get ; } = 0 ;
176+ /// <inheritdoc />
177+ public int callbackOrder { get ; private set ; }
169178
179+ /// <inheritdoc />
170180 public void OnActiveBuildTargetChanged ( BuildTarget previousTarget , BuildTarget newTarget )
171181 {
172182 SessionState . SetBool ( SessionKey , false ) ;
0 commit comments