We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e047a commit acaabf2Copy full SHA for acaabf2
UnityMapper/Builtin/Transform.cs
@@ -18,6 +18,8 @@ public List<IBoundProperty> ExtractProperties(Transform component)
18
19
internal class BoundPosition(Transform transform) : IBoundProperty
20
{
21
+ private Vector3 originalPos = transform.position;
22
+
23
public void SetObject(object val)
24
25
var value = (Single[])val;
@@ -45,6 +47,11 @@ public string GetName()
45
47
46
48
public string? Units => "m";
49
public (float min, float max)? Bounds => null;
50
51
+ public void Reset()
52
+ {
53
+ transform.position = originalPos;
54
+ }
55
}
56
internal class BoundScale(Transform transform) : IBoundProperty
57
0 commit comments