- Create a new Blank project without Starter Content
- In the Content Browser create a New Material named M_Test
- Right click the material in the content browser then create a Material Instance
- Open the Material Instance
- In the Details Panel select the drop down next to parent then select Clear
- Save then close the Material Instance
- In the Content Browser create an Editor Utility Widget(Editor Utilities->Editor Utility Widget)
- Open the Editor Utility Widget
- From the Palette select a Button then drag it onto the Canvas
- Select the Button in the Designer then scroll to the bottom of its Details panel and select the + next to the On Clicked event
- Drag off the Event then Create a Set Editor Property node
- In the Object drop down select the Material Instance
- Change the Property Name from None to Parent
- Create a new Variable named ParentRef then set its type to Object(found under Object Types)
- Compile ParentRef then set its Default Value to M_Test
- Drag in a reference of ParentRef then connect it to the Property Value input pin of the Set Editor Property
- Compile, save, and close the Editor Utility Widget
- Right click the Editor Utility Widget in the Content Browser then select Run Editor Utility Widget
- Click the Button in the new window
Expected Results:
The parent property of the Material Instance is set to M_Test
Actual Results:
The parent property is unchanged and a warning in the output log appears
Warning: Script Msg: Property 'Parent' (ObjectProperty) on '/Game/M_Test_Inst.M_Test_Inst' (MaterialInstanceConstant) tried to set from a property value of the incorrect type (ObjectProperty)