@@ -29,6 +29,13 @@ public class TapToPlaceInspector : UnityEditor.Editor
29
29
30
30
// Advanced properties
31
31
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 ;
32
39
33
40
private const string AdvancedPropertiesFoldoutKey = "TapToPlaceAdvancedProperties" ;
34
41
@@ -49,6 +56,13 @@ protected virtual void OnEnable()
49
56
onPlacingStarted = serializedObject . FindProperty ( "onPlacingStarted" ) ;
50
57
51
58
// 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" ) ;
52
66
magneticSurfaces = serializedObject . FindProperty ( "magneticSurfaces" ) ;
53
67
}
54
68
@@ -96,6 +110,13 @@ private void RenderAdvancedProperties()
96
110
using ( new EditorGUI . IndentLevelScope ( ) )
97
111
{
98
112
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 ) ;
99
120
EditorGUILayout . PropertyField ( magneticSurfaces , true ) ;
100
121
}
101
122
}
0 commit comments