# Editor Utility Widgets Feedback

**URL:** <https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [April 8, 2019, 6:07pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680 "2019-04-08T18:07:00Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![Rosium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rosium](https://forums.unrealengine.com/u/Rosium)\
**Post date:** [September 10, 2019, 5:26pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/109 "2019-09-10T17:26:24Z")

</div>

> [@Shadow.Storm](#):
>
> The viewport toolbar functionality should all be within the editor modules, so anything that is exposed to scripting there should be fine to call from Editor Utility Widgets! 🙂

in that case, i have some issues with the functions that are available. when i call any functions that are being called by the viewport toolbar, it crashes my project and gives me an error regarding the following:

Can not open the new map because the current map can not been garbage collected.  
Conflict with a shared pointer.  
No errors-\> Unhandled Exception.  
Do not use engine flags (this is for internal use only). DO NOT USE.

Also, when the editor widget is left opened, it crashes, when i reopen my project. the window where the widget used to be would be empty, i would click on my button to open a new level, and it would crashed and one of the following errors above.

I would use the one of the following functions  
ToggleGameView()  
ToggleActorCameraView()  
bool bLocked;  
SetGameView()

Is there a certain process that I am missing to have the ability to call editor functions within my editor widget?

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [September 10, 2019, 5:47pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/110 "2019-09-10T17:47:41Z")

</div>

> [@Rosium](#):
>
> in that case, i have some issues with the functions that are available. when i call any functions that are being called by the viewport toolbar, it crashes my project and gives me an error regarding the following:
> 
> Can not open the new map because the current map can not been garbage collected.  
> Conflict with a shared pointer.  
> No errors-\> Unhandled Exception.  
> Do not use engine flags (this is for internal use only). DO NOT USE.
> 
> Also, when the editor widget is left opened, it crashes, when i reopen my project. the window where the widget used to be would be empty, i would click on my button to open a new level, and it would crashed and one of the following errors above.
> 
> I would use the one of the following functions  
> ToggleGameView()  
> ToggleActorCameraView()  
> bool bLocked;  
> SetGameView()
> 
> Is there a certain process that I am missing to have the ability to call editor functions within my editor widget?

For this case, it’s probably best to enter in a bug report and if possible, include your widget with a sample project so that your issue can be reproduced and debugged. Thanks!

---

<div class="post-metadata">

**Author:** ![JoeWintergreen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joewintergreen/32/1194565_2.png) [@JoeWintergreen](https://forums.unrealengine.com/u/JoeWintergreen)\
**Post date:** [September 12, 2019, 2:48am UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/111 "2019-09-12T02:48:31Z")

</div>

Any chance of a node to run an Actor’s ConstructionScript from an Editor Utility? I have a lot of actors with fairly elaborate stuff happening in ConstructionScript, and it’d be great to be able to have an Editor Widget change some settings on those actors and have them regenerate, without having to move the actor/change a setting on it to trigger the ConstructionScript.

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [September 12, 2019, 2:53pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/112 "2019-09-12T14:53:12Z")

</div>

> [@JoeWintergreen](#):
>
> Any chance of a node to run an Actor’s ConstructionScript from an Editor Utility? I have a lot of actors with fairly elaborate stuff happening in ConstructionScript, and it’d be great to be able to have an Editor Widget change some settings on those actors and have them regenerate, without having to move the actor/change a setting on it to trigger the ConstructionScript.

Probably for this case I would make a function to call on those actors, and call that when you construct the actors but also make it available to be called from your Editor Utilities.

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 13, 2019, 1:29pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/113 "2019-09-13T13:29:39Z")

</div>

Hi, quick question.

In the editor widget, I don’t find SetActorSelectionState bp node anymore.

How do you change selection in 4.23 editor utilities?

edit: I found this in the docs, but I don’t see it in autocomplete. I only have GetSelectioSet and GetSelectionBounds.

> **[Set Actor Selection State](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Development/Editor/SetActorSelectionState/)**
>
> Set Actor Selection State

---

<div class="post-metadata">

**Author:** ![JoeWintergreen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joewintergreen/32/1194565_2.png) [@JoeWintergreen](https://forums.unrealengine.com/u/JoeWintergreen)\
**Post date:** [September 14, 2019, 6:17am UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/114 "2019-09-14T06:17:29Z")

</div>

> [@Shadow.Storm](#):
>
> Probably for this case I would make a function to call on those actors, and call that when you construct the actors but also make it available to be called from your Editor Utilities.

This is almost, but not quite, an okay solution for me. I’ve hit a bug:

if your Actor has a Call-In-Editor function ( **MyFunction** ) which spawns a Child Actor using a Child Actor Component, that Child Actor’s ConstructionScript will run \*\*\*only \*\*\*if MyFunction was _ **not** _ called from an Editor Utility Widget. That is, clicking the MyFunction button in the Actor’s details panel works fine, but if you call that same function on the selected actor from an Editor Utility Widget, the newly-created child actor’s ConstructionScript will not run.

EDIT: This also happens for non-Child Actors. Any Actor created by the Actor having the function called on it won’t run its ConstructionScript if the function was called from an EditorUtilityWidget. I was able to work around this by giving every actor a Generate function instead of ConstructionScript, and calling that through an interface. Seems alright!

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 16, 2019, 2:21pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/115 "2019-09-16T14:21:57Z")

</div>

> [@scha](#):
>
> Hi, quick question.
> 
> In the editor widget, I don’t find SetActorSelectionState bp node anymore.
> 
> How do you change selection in 4.23 editor utilities?
> 
> edit: I found this in the docs, but I don’t see it in autocomplete. I only have GetSelectioSet and GetSelectionBounds.  
> [Set Actor Selection State | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/en-US/BlueprintAPI/Development/Editor/SetActorSelectionState/index.html)

Btw, I found it, it’s in the Editor Scripting Utilities plugin now, which is disabled by default.

---

<div class="post-metadata">

**Author:** ![OrsHerrero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OrsHerrero](https://forums.unrealengine.com/u/OrsHerrero)\
**Post date:** [September 17, 2019, 10:28am UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/116 "2019-09-17T10:28:34Z")

</div>

Sorry if this has been said, but, in old blutilitys, when you expose a variable on spam, you could set that variable in the UE widget, but with new Editor Widgets, I don’t know how to set assets as inputs in the widget.

 ![image_173137.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d270920ffddfa152ee532d491529147b3663617e.png)

Do you have any clue?

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 17, 2019, 11:18am UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/118 "2019-09-17T11:18:27Z")

</div>

I just noticed another difference between the old system and the new one: spawning new Actors from an Utility widget will not call the Actor’s construction script. In 4.22 it was called.  
I think the new way is kinda wrong, no?

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 17, 2019, 2:11pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/119 "2019-09-17T14:11:48Z")

</div>

Another problem: If you have a category and a sub-category in actor properties, like “Paint Material” and “Paint Material | Private”, then when you use Details View with some “Categories to Show” specified, the sub-category will always be shown. Like, for example, I have Details View for “Wall”, and it shows “Paint Material | Private” too.

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [September 17, 2019, 2:43pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/120 "2019-09-17T14:43:47Z")

</div>

> [@scha](#):
>
> I just noticed another difference between the old system and the new one: spawning new Actors from an Utility widget will not call the Actor’s construction script. In 4.22 it was called.  
> I think the new way is kinda wrong, no?

I agree that this seems like there is an issue here, and we’ll look into it on our end. Thanks for letting us know!

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [September 17, 2019, 2:45pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/121 "2019-09-17T14:45:05Z")

</div>

> [@OrsHerrero](#):
>
> Sorry if this has been said, but, in old blutilitys, when you expose a variable on spam, you could set that variable in the UE widget, but with new Editor Widgets, I don’t know how to set assets as inputs in the widget.
> 
> ![image_173137.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d270920ffddfa152ee532d491529147b3663617e.png)
> 
> Do you have any clue?

scha’s example with the details view (or single property view) is the intended workflow here - we don’t want you to have to make your own asset dropdowns but all UI is meant to be in Editor Utility Widgets now.

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [September 17, 2019, 2:45pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/122 "2019-09-17T14:45:47Z")

</div>

> [@scha](#):
>
> Another problem: If you have a category and a sub-category in actor properties, like “Paint Material” and “Paint Material | Private”, then when you use Details View with some “Categories to Show” specified, the sub-category will always be shown. Like, for example, I have Details View for “Wall”, and it shows “Paint Material | Private” too.

Thanks for letting us know! We’ll look into this.

---

<div class="post-metadata">

**Author:** ![OrsHerrero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OrsHerrero](https://forums.unrealengine.com/u/OrsHerrero)\
**Post date:** [September 18, 2019, 10:03am UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/123 "2019-09-18T10:03:35Z")

</div>

> [@Shadow.Storm](#):
>
> scha’s example with the details view (or single property view) is the intended workflow here - we don’t want you to have to make your own asset dropdowns but all UI is meant to be in Editor Utility Widgets now.

Thank you, I’ll try following that.

> [@scha](#):
>
> Another problem: If you have a category and a sub-category in actor properties, like “Paint Material” and “Paint Material | Private”, then when you use Details View with some “Categories to Show” specified, the sub-category will always be shown. Like, for example, I have Details View for “Wall”, and it shows “Paint Material | Private” too.

Can you show a little how to use detail view? I’m not finding enough documentation to make it work.

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 18, 2019, 12:11pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/124 "2019-09-18T12:11:47Z")

</div>

> [@OrsHerrero](#):
>
> Can you show a little how to use detail view? I’m not finding enough documentation to make it work.

Okay, so I had my old BP\_Builder blueprint, which was a GlobalEditorUtilityBase, then I created a new BP\_Builder\_Widget, which is a EditorUtilityWidget, copyied all properties and functions from the old one to the new one using [this plugin](https://www.unrealengine.com/marketplace/en-US/slug/property-transfer-tool) (I couldn’t just reparent for some reason). Then in the widget designer I use “Details View” sub-widget, and I initialize it by giving “Self” to the “SetObject” function of the detail view, so it will be able to show the properties of the BP\_Builder\_Widget itself. Also, I specify which categories to show in the “Categories to show” property of the Details View. I actually made a UI with tabs, like you see above, and every tab have one detail view for one category.  
Then for the call-in-editor functions, I just made a button for each, and put them under the Details View, again like you can see in the pic in the post above.

---

<div class="post-metadata">

**Author:** ![OrsHerrero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OrsHerrero](https://forums.unrealengine.com/u/OrsHerrero)\
**Post date:** [September 20, 2019, 8:46am UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/125 "2019-09-20T08:46:25Z")

</div>

> [@scha](#):
>
> Okay, so I had my old BP\_Builder blueprint, which was a GlobalEditorUtilityBase, then I created a new BP\_Builder\_Widget, which is a EditorUtilityWidget, copyied all properties and functions from the old one to the new one using [this plugin](https://www.unrealengine.com/marketplace/en-US/slug/property-transfer-tool) (I couldn’t just reparent for some reason). Then in the widget designer I use “Details View” sub-widget, and I initialize it by giving “Self” to the “SetObject” function of the detail view, so it will be able to show the properties of the BP\_Builder\_Widget itself. Also, I specify which categories to show in the “Categories to show” property of the Details View. I actually made a UI with tabs, like you see above, and every tab have one detail view for one category.  
> Then for the call-in-editor functions, I just made a button for each, and put them under the Details View, again like you can see in the pic in the post above.

Yeah, thank you very much, the SetObject function was the key!

---

<div class="post-metadata">

**Author:** ![fresh.rye.bread](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fresh.rye.bread](https://forums.unrealengine.com/u/fresh.rye.bread)\
**Post date:** [September 24, 2019, 6:17pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/126 "2019-09-24T18:17:04Z")

</div>

Several things that would be nice to have in Editor Utility Widgets:

- PrintString - Currently, using PrintString with the widgets doesn’t do anything.
- SetTimerByFunctionName - Currently, using SetTimerByFunctionName also doesn’t do anything.
- Having an OnSelectedActorChanged event so that blueprints can respond to selection changes in the viewport. Currently, there is no way to respond to a user selecting objects.

---

<div class="post-metadata">

**Author:** ![Swinny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swinny](https://forums.unrealengine.com/u/Swinny)\
**Post date:** [September 24, 2019, 6:18pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/127 "2019-09-24T18:18:02Z")

</div>

Hi, Ive been down the rabbit hole a little on the Blueprint utility widgets and am wondering where (if) I can access the source file location of any assets, I can access the paths inside the engine just fine, no issue. But I wish to be able to import a file, then based on that file - automatically load the correct textures for it.

Also, I was wondering if theres a fileDialog that can also be accessed via widgets, then use the path / filename / etc

---

<div class="post-metadata">

**Author:** ![Swinny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Swinny](https://forums.unrealengine.com/u/Swinny)\
**Post date:** [September 24, 2019, 6:29pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/128 "2019-09-24T18:29:36Z")

</div>

Also, it would be nice to be able to right click on the tab of a Blueprint Editor Widget and find it in the content browser for further editing.

---

<div class="post-metadata">

**Author:** ![CyberAlien](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cyberalien/32/482195_2.png) [@CyberAlien](https://forums.unrealengine.com/u/CyberAlien)\
**Post date:** [September 30, 2019, 10:40pm UTC](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680/129 "2019-09-30T22:40:59Z")

</div>

> [@Shadow.Storm](#):
>
> There is a Spawn and Register Node function that should be able to do this for you. 🙂

Thank you, it works correctly, but the function is not displayed when selecting the target “editor widget blueprint”.

Get mouse Viewport mouse position in editor :  
I have another question, the function to know the local position of the mouse in the viewport does not work in mod editor, however it works with an actor in mod simulation and play.  
A new function could be useful to be able to create an overlay of world edition by the mouse, know the local position of the mouse in the world window, and know the FOV to apply to the edition camera, or otherwise a projection function “Project Vector direction in editor viewport”.

New widget part :  
I saw the new widget tool for details, but it might be better to have all the editor widgets and then combine them with the existing tools, that’s what I wanted to do for my own project.

Blutilities type :  
There are many new types of blutilities available, but we would need some explanation and detail to be able to use them.

[Previous page](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680.md?page=5)

[Next page](https://forums.unrealengine.com/t/editor-utility-widgets-feedback/124680.md?page=7)
