diff --git a/Source/Editor/Viewport/Previews/PrefabPreview.cs b/Source/Editor/Viewport/Previews/PrefabPreview.cs index 16ec8f132..1673c1723 100644 --- a/Source/Editor/Viewport/Previews/PrefabPreview.cs +++ b/Source/Editor/Viewport/Previews/PrefabPreview.cs @@ -115,7 +115,12 @@ namespace FlaxEditor.Viewport.Previews _hasUILinked = true; } else if (_uiControlLinked != null) + { + if (_uiControlLinked.Control != null && + _uiControlLinked.Control.Parent == null) + _uiControlLinked.Control.Parent = _uiParentLink; _hasUILinked = true; + } } private void LinkCanvas(Actor actor)