From b3aeab777f5629d8d852a5e99bc160da77d0ad1b Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 30 Mar 2026 00:13:49 +0200 Subject: [PATCH] Fix invalid `CanRenderer` when canvas actor is gone #3945 --- Source/Engine/UI/UICanvas.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Engine/UI/UICanvas.cs b/Source/Engine/UI/UICanvas.cs index df542aacf..4a6bb7ce1 100644 --- a/Source/Engine/UI/UICanvas.cs +++ b/Source/Engine/UI/UICanvas.cs @@ -61,6 +61,9 @@ namespace FlaxEngine /// public override bool CanRender() { + if (!Canvas) + return false; + // Sync with canvas options Location = Canvas.RenderLocation; Order = Canvas.Order;