@@ -28,20 +28,13 @@ public class TapToPlaceInspector : UnityEditor.Editor
2828 private SerializedProperty onPlacingStopped ;
2929
3030 // 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 ;
3831 private SerializedProperty magneticSurfaces ;
3932
4033 private const string AdvancedPropertiesFoldoutKey = "TapToPlaceAdvancedProperties" ;
4134
4235 protected virtual void OnEnable ( )
4336 {
44- instance = ( TapToPlace ) target ;
37+ instance = ( TapToPlace ) target ;
4538
4639 // Main Tap to Place Properties
4740 autoStart = serializedObject . FindProperty ( "autoStart" ) ;
@@ -56,13 +49,6 @@ protected virtual void OnEnable()
5649 onPlacingStarted = serializedObject . FindProperty ( "onPlacingStarted" ) ;
5750
5851 // 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" ) ;
6652 magneticSurfaces = serializedObject . FindProperty ( "magneticSurfaces" ) ;
6753 }
6854
@@ -104,22 +90,15 @@ private void RenderCustomInspector()
10490 private void RenderAdvancedProperties ( )
10591 {
10692 // Render Advanced Settings
107- if ( InspectorUIUtility . DrawSectionFoldoutWithKey ( "Advanced Properties" , AdvancedPropertiesFoldoutKey , MixedRealityStylesUtility . TitleFoldoutStyle , false ) )
93+ if ( InspectorUIUtility . DrawSectionFoldoutWithKey ( "Advanced Properties" , AdvancedPropertiesFoldoutKey ,
94+ MixedRealityStylesUtility . TitleFoldoutStyle , false ) )
10895 {
10996 using ( new EditorGUI . IndentLevelScope ( ) )
11097 {
11198 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 ) ;
12099 EditorGUILayout . PropertyField ( magneticSurfaces , true ) ;
121100 }
122101 }
123102 }
124103 }
125- }
104+ }
0 commit comments