Fix spawned ui canvas scaller to use the same transform as CanvasScaler

#1819
This commit is contained in:
Wojtek Figat
2023-11-06 13:54:01 +01:00
parent ad290d0140
commit e57e86cde1

View File

@@ -34,6 +34,7 @@ namespace FlaxEditor.SceneGraph.Actors
var uiControl = new UIControl
{
Name = "Canvas Scalar",
Transform = Actor.Transform,
Control = new CanvasScaler()
};
Root.Spawn(uiControl, Actor);