@@ -37,14 +37,14 @@ public override void OnInspectorGUI()
37
37
{
38
38
EditorGUI . indentLevel ++ ;
39
39
40
- targ . highlightOnTouch = EditorGUILayout . Toggle ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "highlightOnTouch" ) , targ . highlightOnTouch ) ;
40
+ targ . highlightOnTouch = EditorGUILayout . Toggle ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "highlightOnTouch" ) , targ . highlightOnTouch ) ;
41
41
if ( targ . highlightOnTouch )
42
42
{
43
43
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "touchHighlightColor" ) ) ;
44
44
}
45
45
46
46
GUILayout . BeginHorizontal ( ) ;
47
- EditorGUILayout . PrefixLabel ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "rumbleOnTouch" ) ) ;
47
+ EditorGUILayout . PrefixLabel ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "rumbleOnTouch" ) ) ;
48
48
EditorGUI . indentLevel -- ;
49
49
GUILayout . Label ( "Strength" , GUILayout . MinWidth ( 49f ) ) ;
50
50
float y = EditorGUILayout . FloatField ( targ . rumbleOnTouch . y , GUILayout . MinWidth ( 10f ) ) ;
@@ -62,7 +62,7 @@ public override void OnInspectorGUI()
62
62
63
63
//Grab Layout
64
64
GUILayout . Space ( 10 ) ;
65
- targ . isGrabbable = EditorGUILayout . Toggle ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "isGrabbable" ) , targ . isGrabbable ) ;
65
+ targ . isGrabbable = EditorGUILayout . Toggle ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "isGrabbable" ) , targ . isGrabbable ) ;
66
66
if ( targ . isGrabbable != isGrabbableLastState && targ . isGrabbable )
67
67
{
68
68
viewGrab = true ;
@@ -86,7 +86,7 @@ public override void OnInspectorGUI()
86
86
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "grabOverrideButton" ) ) ;
87
87
88
88
GUILayout . BeginHorizontal ( ) ;
89
- EditorGUILayout . PrefixLabel ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "rumbleOnGrab" ) ) ;
89
+ EditorGUILayout . PrefixLabel ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "rumbleOnGrab" ) ) ;
90
90
EditorGUI . indentLevel -- ;
91
91
GUILayout . Label ( "Strength" , GUILayout . MinWidth ( 49f ) ) ;
92
92
float y = EditorGUILayout . FloatField ( targ . rumbleOnGrab . y , GUILayout . MinWidth ( 10f ) ) ;
@@ -97,7 +97,7 @@ public override void OnInspectorGUI()
97
97
GUILayout . EndHorizontal ( ) ;
98
98
99
99
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "allowedGrabControllers" ) ) ;
100
- targ . precisionSnap = EditorGUILayout . Toggle ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "precisionSnap" , "Precision Grab(Snap)" ) , targ . precisionSnap ) ;
100
+ targ . precisionSnap = EditorGUILayout . Toggle ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "precisionSnap" , "Precision Grab(Snap)" ) , targ . precisionSnap ) ;
101
101
if ( ! targ . precisionSnap )
102
102
{
103
103
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "rightSnapHandle" ) ) ;
@@ -107,7 +107,7 @@ public override void OnInspectorGUI()
107
107
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "hideControllerOnGrab" ) ) ;
108
108
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "stayGrabbedOnTeleport" ) ) ;
109
109
110
- targ . grabAttachMechanic = ( VRTK_InteractableObject . GrabAttachType ) EditorGUILayout . EnumPopup ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "grabAttachMechanic" ) , targ . grabAttachMechanic ) ;
110
+ targ . grabAttachMechanic = ( VRTK_InteractableObject . GrabAttachType ) EditorGUILayout . EnumPopup ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "grabAttachMechanic" ) , targ . grabAttachMechanic ) ;
111
111
if ( Array . IndexOf ( hasDetachThreshold , targ . grabAttachMechanic ) >= 0 )
112
112
{
113
113
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "detachThreshold" ) ) ;
@@ -125,7 +125,7 @@ public override void OnInspectorGUI()
125
125
}
126
126
127
127
GUILayout . Space ( 10 ) ;
128
- targ . isUsable = EditorGUILayout . Toggle ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "isUsable" ) , targ . isUsable ) ;
128
+ targ . isUsable = EditorGUILayout . Toggle ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "isUsable" ) , targ . isUsable ) ;
129
129
if ( targ . isUsable != isUsableLastState && targ . isUsable )
130
130
{
131
131
viewUse = true ;
@@ -149,7 +149,7 @@ public override void OnInspectorGUI()
149
149
EditorGUILayout . PropertyField ( serializedObject . FindProperty ( "pointerActivatesUseAction" ) ) ;
150
150
151
151
GUILayout . BeginHorizontal ( ) ;
152
- EditorGUILayout . PrefixLabel ( Utilities . BuildGUIContent < VRTK_InteractableObject > ( "rumbleOnUse" ) ) ;
152
+ EditorGUILayout . PrefixLabel ( VRTK_EditorUtilities . BuildGUIContent < VRTK_InteractableObject > ( "rumbleOnUse" ) ) ;
153
153
EditorGUI . indentLevel -- ;
154
154
GUILayout . Label ( "Strength" , GUILayout . MinWidth ( 49f ) ) ;
155
155
float y = EditorGUILayout . FloatField ( targ . rumbleOnUse . y , GUILayout . MinWidth ( 10f ) ) ;
0 commit comments