From 2a2d9f54dee7f0d8c3f012e2cec2879a768eddd0 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 17 Mar 2021 11:55:17 +0100 Subject: [PATCH] Fix UIControl location deserialization when using prefabs and anchors #218 --- Source/Engine/UI/UIControl.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Engine/UI/UIControl.cs b/Source/Engine/UI/UIControl.cs index 8fd4f8f72..2b239f982 100644 --- a/Source/Engine/UI/UIControl.cs +++ b/Source/Engine/UI/UIControl.cs @@ -296,6 +296,9 @@ namespace FlaxEngine if (_control != null) { Json.JsonSerializer.Deserialize(_control, json); + + // Synchronize actor with control location + OnControlLocationChanged(_control); } }