How create Drag and Drop in Editor Utility Widget interaction with Material Assignment like Drag and Drop in Content Browser ?

I create a Editor Utility Widget ,Its Item using Drag and Drop Event
I want make a Item like Material Data Assets in Content Browser .
But It can’t interactive with Original property Slot .

Can any one Help ?

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Hopefully, this category change will help to get an answer. In the meantime, good luck and happy developing! :slight_smile:

I’m also trying to figure this out. So far I can only find information about how to drag objects from one widget to another inside a game. But as OP is also asking: How can we setup an Editor Utility Widget to accept Drag and Drop Operations initiated from the Content Browser? Thanks!

You could use SinglePropertyView to create your Material Slot:

MaterialDragging

  1. Create a new widget and add SinglePropertyView.

  1. Create a Blueprint object that will keep the property.

  1. Create an instance of the object to initialize the SinglePropertyView.

  1. Set Property and Override name.

  1. Bind to OnPropertyChanged.

  1. Add getter and setter.


image

  1. Insert the new control into your Editor Utility Widget.

I hope it’ll be helpful to you.

MaterialSlotControl.uasset (80.5 KB)

My Products

4 Likes

hello, thanks your reply。it is useful for me,but i want to use tile view in editor uitility py blueprint。is there any suggestions?

You could use an invisible SinglePropertyView to catch the drop:

EditorTileView

4 Likes

thank you so much, i did it ,i am a newbie for widget.