Skip to content

Commit 5ab4d26

Browse files
author
Christian Glessner
committed
Restore advanced properties and fix maintainScaleOnInitialization name
1 parent e500a79 commit 5ab4d26

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Assets/MRTK/SDK/Editor/Inspectors/Utilities/Solvers/TapToPlaceInspector.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)