@@ -25,15 +25,15 @@ private void Reset()
2525 hideFlags = HideFlags . DontSaveInBuild ;
2626 }
2727
28- static Dictionary < UIStyleMarkup . StyleClass , FieldInfo > GetStyleFieldMap ( )
28+ private static Dictionary < UIStyleMarkup . StyleClass , FieldInfo > GetStyleFieldMap ( )
2929 {
3030 Dictionary < UIStyleMarkup . StyleClass , FieldInfo > fieldLookup = new Dictionary < UIStyleMarkup . StyleClass , FieldInfo > ( ) ;
3131
3232 foreach ( FieldInfo field in typeof ( UIStyle ) . GetFields ( BindingFlags . Public | BindingFlags . Instance ) )
3333 {
3434 if ( field . FieldType == typeof ( Color ) )
3535 {
36- var markupAttr = field . GetCustomAttribute < StyleMarkupLinkAttribute > ( ) ;
36+ StyleMarkupLinkAttribute markupAttr = field . GetCustomAttribute < StyleMarkupLinkAttribute > ( ) ;
3737
3838 if ( markupAttr != null )
3939 {
@@ -46,7 +46,7 @@ private void Reset()
4646 }
4747
4848#if UNITY_EDITOR
49- Color GetColor ( FieldInfo field )
49+ private Color GetColor ( FieldInfo field )
5050 {
5151 return ( Color ) field . GetValue ( uiStyle ) ;
5252 }
@@ -76,7 +76,7 @@ public void ApplyStyle()
7676 }
7777 else
7878 {
79- var vrcInput = markup . GetComponent < VRCUrlInputField > ( ) ;
79+ VRCUrlInputField vrcInput = markup . GetComponent < VRCUrlInputField > ( ) ;
8080 Undo . RecordObject ( vrcInput , "Apply UI Style" ) ;
8181 vrcInput . selectionColor = graphicColor ;
8282 RecordObject ( vrcInput ) ;
@@ -95,7 +95,7 @@ public void ApplyStyle()
9595 }
9696 else
9797 {
98- var vrcInput = markup . GetComponent < VRCUrlInputField > ( ) ;
98+ VRCUrlInputField vrcInput = markup . GetComponent < VRCUrlInputField > ( ) ;
9999 Undo . RecordObject ( vrcInput , "Apply UI Style" ) ;
100100 vrcInput . caretColor = graphicColor ;
101101 RecordObject ( vrcInput ) ;
@@ -126,7 +126,7 @@ public void ApplyStyle()
126126 }
127127 }
128128
129- void RecordObject ( Component comp )
129+ private static void RecordObject ( Object comp )
130130 {
131131 if ( PrefabUtility . IsPartOfPrefabInstance ( comp ) )
132132 PrefabUtility . RecordPrefabInstancePropertyModifications ( comp ) ;
@@ -138,7 +138,7 @@ void RecordObject(Component comp)
138138 [ CustomEditor ( typeof ( UIStyler ) ) ]
139139 internal class UIStylerEditor : Editor
140140 {
141- SerializedProperty colorStyleProperty ;
141+ private SerializedProperty colorStyleProperty ;
142142
143143 private void OnEnable ( )
144144 {
0 commit comments