@@ -29,6 +29,13 @@ public class TapToPlaceInspector : UnityEditor.Editor
2929
3030 // Advanced properties
3131 private SerializedProperty magneticSurfaces ;
32+ private SerializedProperty updateLinkedTransformProperty ;
33+ private SerializedProperty moveLerpTimeProperty ;
34+ private SerializedProperty rotateLerpTimeProperty ;
35+ private SerializedProperty scaleLerpTimeProperty ;
36+ private SerializedProperty maintainScaleOnInitializationProperty ;
37+ private SerializedProperty smoothingProperty ;
38+ private SerializedProperty lifetimeProperty ;
3239
3340 private const string AdvancedPropertiesFoldoutKey = "TapToPlaceAdvancedProperties" ;
3441
@@ -49,6 +56,13 @@ protected virtual void OnEnable()
4956 onPlacingStarted = serializedObject . FindProperty ( "onPlacingStarted" ) ;
5057
5158 // Advanced Properties
59+ updateLinkedTransformProperty = serializedObject . FindProperty ( "updateLinkedTransform" ) ;
60+ moveLerpTimeProperty = serializedObject . FindProperty ( "moveLerpTime" ) ;
61+ rotateLerpTimeProperty = serializedObject . FindProperty ( "rotateLerpTime" ) ;
62+ scaleLerpTimeProperty = serializedObject . FindProperty ( "scaleLerpTime" ) ;
63+ maintainScaleOnInitializationProperty = serializedObject . FindProperty ( "maintainScaleOnInitialization" ) ;
64+ smoothingProperty = serializedObject . FindProperty ( "smoothing" ) ;
65+ lifetimeProperty = serializedObject . FindProperty ( "lifetime" ) ;
5266 magneticSurfaces = serializedObject . FindProperty ( "magneticSurfaces" ) ;
5367 }
5468
@@ -96,6 +110,13 @@ private void RenderAdvancedProperties()
96110 using ( new EditorGUI . IndentLevelScope ( ) )
97111 {
98112 EditorGUILayout . Space ( ) ;
113+ EditorGUILayout . PropertyField ( updateLinkedTransformProperty ) ;
114+ EditorGUILayout . PropertyField ( moveLerpTimeProperty ) ;
115+ EditorGUILayout . PropertyField ( rotateLerpTimeProperty ) ;
116+ EditorGUILayout . PropertyField ( scaleLerpTimeProperty ) ;
117+ EditorGUILayout . PropertyField ( maintainScaleOnInitializationProperty ) ;
118+ EditorGUILayout . PropertyField ( smoothingProperty ) ;
119+ EditorGUILayout . PropertyField ( lifetimeProperty ) ;
99120 EditorGUILayout . PropertyField ( magneticSurfaces , true ) ;
100121 }
101122 }
0 commit comments