Skip to content

Commit 3d49f0a

Browse files
author
AJubrey
committed
[CHANGED] using local rotation and local position instead of the position and rotation
1 parent db3eb64 commit 3d49f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,8 @@ public HashSet<GameObject> ImplementUpdates(FbxPrefab prefabInstance)
10071007
UnityEditor.EditorJsonUtility.FromJsonOverwrite(fbxComponent.jsonValue, tempTransform);
10081008

10091009
var rectTransform = prefabComponent as RectTransform;
1010-
rectTransform.rotation = tempTransform.rotation;
1011-
rectTransform.position = tempTransform.position;
1010+
rectTransform.localRotation = tempTransform.rotation;
1011+
rectTransform.localPosition = tempTransform.position;
10121012
rectTransform.localScale = tempTransform.localScale;
10131013
}
10141014
finally

0 commit comments

Comments
 (0)