@@ -28,20 +28,20 @@ public class TapToPlaceInspector : UnityEditor.Editor
28
28
private SerializedProperty onPlacingStopped ;
29
29
30
30
// Advanced properties
31
+ private SerializedProperty magneticSurfaces ;
31
32
private SerializedProperty updateLinkedTransformProperty ;
32
33
private SerializedProperty moveLerpTimeProperty ;
33
34
private SerializedProperty rotateLerpTimeProperty ;
34
35
private SerializedProperty scaleLerpTimeProperty ;
35
- private SerializedProperty maintainScaleProperty ;
36
+ private SerializedProperty maintainScaleOnInitializationProperty ;
36
37
private SerializedProperty smoothingProperty ;
37
38
private SerializedProperty lifetimeProperty ;
38
- private SerializedProperty magneticSurfaces ;
39
39
40
40
private const string AdvancedPropertiesFoldoutKey = "TapToPlaceAdvancedProperties" ;
41
41
42
42
protected virtual void OnEnable ( )
43
43
{
44
- instance = ( TapToPlace ) target ;
44
+ instance = ( TapToPlace ) target ;
45
45
46
46
// Main Tap to Place Properties
47
47
autoStart = serializedObject . FindProperty ( "autoStart" ) ;
@@ -60,7 +60,7 @@ protected virtual void OnEnable()
60
60
moveLerpTimeProperty = serializedObject . FindProperty ( "moveLerpTime" ) ;
61
61
rotateLerpTimeProperty = serializedObject . FindProperty ( "rotateLerpTime" ) ;
62
62
scaleLerpTimeProperty = serializedObject . FindProperty ( "scaleLerpTime" ) ;
63
- maintainScaleProperty = serializedObject . FindProperty ( "maintainScale " ) ;
63
+ maintainScaleOnInitializationProperty = serializedObject . FindProperty ( "maintainScaleOnInitialization " ) ;
64
64
smoothingProperty = serializedObject . FindProperty ( "smoothing" ) ;
65
65
lifetimeProperty = serializedObject . FindProperty ( "lifetime" ) ;
66
66
magneticSurfaces = serializedObject . FindProperty ( "magneticSurfaces" ) ;
@@ -104,22 +104,22 @@ private void RenderCustomInspector()
104
104
private void RenderAdvancedProperties ( )
105
105
{
106
106
// Render Advanced Settings
107
- if ( InspectorUIUtility . DrawSectionFoldoutWithKey ( "Advanced Properties" , AdvancedPropertiesFoldoutKey , MixedRealityStylesUtility . TitleFoldoutStyle , false ) )
107
+ if ( InspectorUIUtility . DrawSectionFoldoutWithKey ( "Advanced Properties" , AdvancedPropertiesFoldoutKey ,
108
+ MixedRealityStylesUtility . TitleFoldoutStyle , false ) )
108
109
{
109
110
using ( new EditorGUI . IndentLevelScope ( ) )
110
111
{
111
112
EditorGUILayout . Space ( ) ;
112
-
113
113
EditorGUILayout . PropertyField ( updateLinkedTransformProperty ) ;
114
114
EditorGUILayout . PropertyField ( moveLerpTimeProperty ) ;
115
115
EditorGUILayout . PropertyField ( rotateLerpTimeProperty ) ;
116
116
EditorGUILayout . PropertyField ( scaleLerpTimeProperty ) ;
117
- EditorGUILayout . PropertyField ( maintainScaleProperty ) ;
117
+ EditorGUILayout . PropertyField ( maintainScaleOnInitializationProperty ) ;
118
118
EditorGUILayout . PropertyField ( smoothingProperty ) ;
119
119
EditorGUILayout . PropertyField ( lifetimeProperty ) ;
120
120
EditorGUILayout . PropertyField ( magneticSurfaces , true ) ;
121
121
}
122
122
}
123
123
}
124
124
}
125
- }
125
+ }
0 commit comments