# Crash when editing UGameUIPolicy::LayoutClass in Lyra / CommonGame 

**URL:** <https://forums.unrealengine.com/t/crash-when-editing-ugameuipolicy-layoutclass-in-lyra-commongame/2742283>\
**Category:** UI\
**Tags:** unreal-engine, crash, LyraStarterGame, UI\
**Created:** [August 9, 2026, 1:09pm UTC](https://forums.unrealengine.com/t/crash-when-editing-ugameuipolicy-layoutclass-in-lyra-commongame/2742283 "2026-08-09T13:09:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lupopou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lupopou](https://forums.unrealengine.com/u/lupopou)\
**Post date:** [August 9, 2026, 1:09pm UTC](https://forums.unrealengine.com/t/crash-when-editing-ugameuipolicy-layoutclass-in-lyra-commongame/2742283/1 "2026-08-09T13:09:32Z")

</div>

I found a crash in Unreal Engine when editing the `LayoutClass` property of `B_LyraUIPolicy`.

The property is defined in `UGameUIPolicy` as:

```cpp
UPROPERTY(EditAnywhere)
TSoftClassPtr<UPrimaryGameLayout> LayoutClass;

```

In Lyra, `B_LyraUIPolicy` uses this property to reference `W_OverallUILayout`, which appears to be the intended/default setup.

However, when I try to set or change `LayoutClass` in the Blueprint editor, the Unreal Editor crashes with the following error:

```auto
Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 10]
Cast of Package /LAbilitySystem/Widget/Frontend/BP_DefaultUIPolicy to GameUIManagerSubsystem failed

UnrealEditor_CoreUObject
UnrealEditor_CommonGame!UGameUIPolicy::GetOwningUIManager() [C:\Unreal Projects\GameAnimationSample\Plugins\CommonGame\Source\Private\GameUIPolicy.cpp:33]
UnrealEditor_CommonGame!UGameUIPolicy::GetWorld() [C:\Unreal Projects\GameAnimationSample\Plugins\CommonGame\Source\Private\GameUIPolicy.cpp:38]
UnrealEditor_UnrealEd

```

im trying on other project using Common Game plugin and get same crash
