@@ -28,20 +28,13 @@ public class TapToPlaceInspector : UnityEditor.Editor
28
28
private SerializedProperty onPlacingStopped ;
29
29
30
30
// Advanced properties
31
- private SerializedProperty updateLinkedTransformProperty ;
32
- private SerializedProperty moveLerpTimeProperty ;
33
- private SerializedProperty rotateLerpTimeProperty ;
34
- private SerializedProperty scaleLerpTimeProperty ;
35
- private SerializedProperty maintainScaleProperty ;
36
- private SerializedProperty smoothingProperty ;
37
- private SerializedProperty lifetimeProperty ;
38
31
private SerializedProperty magneticSurfaces ;
39
32
40
33
private const string AdvancedPropertiesFoldoutKey = "TapToPlaceAdvancedProperties" ;
41
34
42
35
protected virtual void OnEnable ( )
43
36
{
44
- instance = ( TapToPlace ) target ;
37
+ instance = ( TapToPlace ) target ;
45
38
46
39
// Main Tap to Place Properties
47
40
autoStart = serializedObject . FindProperty ( "autoStart" ) ;
@@ -56,13 +49,6 @@ protected virtual void OnEnable()
56
49
onPlacingStarted = serializedObject . FindProperty ( "onPlacingStarted" ) ;
57
50
58
51
// Advanced Properties
59
- updateLinkedTransformProperty = serializedObject . FindProperty ( "updateLinkedTransform" ) ;
60
- moveLerpTimeProperty = serializedObject . FindProperty ( "moveLerpTime" ) ;
61
- rotateLerpTimeProperty = serializedObject . FindProperty ( "rotateLerpTime" ) ;
62
- scaleLerpTimeProperty = serializedObject . FindProperty ( "scaleLerpTime" ) ;
63
- maintainScaleProperty = serializedObject . FindProperty ( "maintainScale" ) ;
64
- smoothingProperty = serializedObject . FindProperty ( "smoothing" ) ;
65
- lifetimeProperty = serializedObject . FindProperty ( "lifetime" ) ;
66
52
magneticSurfaces = serializedObject . FindProperty ( "magneticSurfaces" ) ;
67
53
}
68
54
@@ -104,22 +90,15 @@ private void RenderCustomInspector()
104
90
private void RenderAdvancedProperties ( )
105
91
{
106
92
// Render Advanced Settings
107
- if ( InspectorUIUtility . DrawSectionFoldoutWithKey ( "Advanced Properties" , AdvancedPropertiesFoldoutKey , MixedRealityStylesUtility . TitleFoldoutStyle , false ) )
93
+ if ( InspectorUIUtility . DrawSectionFoldoutWithKey ( "Advanced Properties" , AdvancedPropertiesFoldoutKey ,
94
+ MixedRealityStylesUtility . TitleFoldoutStyle , false ) )
108
95
{
109
96
using ( new EditorGUI . IndentLevelScope ( ) )
110
97
{
111
98
EditorGUILayout . Space ( ) ;
112
-
113
- EditorGUILayout . PropertyField ( updateLinkedTransformProperty ) ;
114
- EditorGUILayout . PropertyField ( moveLerpTimeProperty ) ;
115
- EditorGUILayout . PropertyField ( rotateLerpTimeProperty ) ;
116
- EditorGUILayout . PropertyField ( scaleLerpTimeProperty ) ;
117
- EditorGUILayout . PropertyField ( maintainScaleProperty ) ;
118
- EditorGUILayout . PropertyField ( smoothingProperty ) ;
119
- EditorGUILayout . PropertyField ( lifetimeProperty ) ;
120
99
EditorGUILayout . PropertyField ( magneticSurfaces , true ) ;
121
100
}
122
101
}
123
102
}
124
103
}
125
- }
104
+ }
0 commit comments