# Can't get or set Edit Property from Editor Utility Widget?

**URL:** <https://forums.unrealengine.com/t/cant-get-or-set-edit-property-from-editor-utility-widget/1159567>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, question\
**Created:** [May 9, 2023, 12:30am UTC](https://forums.unrealengine.com/t/cant-get-or-set-edit-property-from-editor-utility-widget/1159567 "2023-05-09T00:30:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slim\_sheady19](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slim_sheady19/32/1092065_2.png) [@slim\_sheady19](https://forums.unrealengine.com/u/slim_sheady19)\
**Post date:** [May 9, 2023, 12:30am UTC](https://forums.unrealengine.com/t/cant-get-or-set-edit-property-from-editor-utility-widget/1159567/1 "2023-05-09T00:30:31Z")

</div>

I have an EUW that I want to use to edit class defaults of a GameMode (and some other classes). Here is my BP code:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/b/b7b382435076301171aa6dab4d77bdddf9dd392b.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/8/a08c13591f00d96487a6edf3553d3b5ab743e2b8.png)  
I’ve done this [exactly like this here](https://forums.unrealengine.com/t/course-utilizing-python-for-editor-scripting-in-unreal-engine/575772/3) but it doesn’t work this time around for whatever reason. Anyone know what I am doing wrong? Also tried with a python script:

```auto
import unreal

EUL = unreal.EditorUtilityLibrary
EAL = unreal.EditorAssetLibrary
AR = unreal.AssetRegistry

def set_gamemodemain_properties():
    gm = EAL.find_asset_data('/Game/Blueprints/Core/GameModes/GM_MainMenu')
    print(gm.asset_name)

    gamemode = gm.get_asset()
    shea = gamemode.get_editor_property('Shea?')
    print(shea)

Output:
LogPython: GM_MainMenu
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: File "C:\Unreal/Kaleidoscope/Sunset/PythonScripts\EUW_QuickSettingsTool.py", line 12, in set_gamemodemain_properties
LogPython: Error: shea = gamemode.get_editor_property('Shea?')
LogPython: Error: Exception: Blueprint: Failed to find property 'Shea?' for attribute 'Shea?' on 'Blueprint'

```

---

<div class="post-metadata">

**Author:** ![slim\_sheady19](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slim_sheady19/32/1092065_2.png) [@slim\_sheady19](https://forums.unrealengine.com/u/slim_sheady19)\
**Post date:** [May 9, 2023, 11:36pm UTC](https://forums.unrealengine.com/t/cant-get-or-set-edit-property-from-editor-utility-widget/1159567/2 "2023-05-09T23:36:12Z")

</div>

I managed to figure this out in Python thanks to [this snippet here](https://dev.epicgames.com/community/snippets/zMK/unreal-engine-change-blueprint-defaults-from-python) but this isn’t ideal because it’s just passing strings into python. If this could be done in BP it would be way better.

---

<div class="post-metadata">

**Author:** ![GatoDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gatodev/32/719915_2.png) [@GatoDev](https://forums.unrealengine.com/u/GatoDev)\
**Post date:** [April 12, 2025, 12:31pm UTC](https://forums.unrealengine.com/t/cant-get-or-set-edit-property-from-editor-utility-widget/1159567/3 "2025-04-12T12:31:09Z")

</div>

I made a blueprint function based on the script.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/b/fab23055a5fe6739e1ce7b56e604e2ff50d40a7b.png)

Here you can copy the function.

> **[Modify Class Defaults posted by anonymous | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/render/460u99_k/)**
>
> No description provided

Hope it helps.
