Link error updating original material via code
My plugin button creates material expression nodes and connects them. All i've left to do is update my original material with FMaterialEditor::UpdateOriginalMaterial() method. But i getting link 2019 error. However, if i call CloseWindow(), it prompts to save edits, whitch calls the same FMaterialEditor::UpdateOriginalMaterial() and it works. I guess something wrong with my build.cs or includes? What did i forgot to do?
p.s. I did not edit build.cs at all. Please, help
I've found the solution how can i save assets via code. Using FAssetEditorToolkit::SaveAsset_Execute(). This is how i access protected members:
Follow this question
Once you sign in you will be able to subscribe for any updates here