Using blueprint utilities its super simple to create common workflow actions.
Transactions
It is important to use the
Begin Transaction
,Transact Object
andEnd Transaction
nodes when modifying an object (such as an asset) to allow the user to undo their actions.
Examples
Content Browser Actions
Bulk edit selected static meshes with given material(s)
Final result
How to make it
- Create a new
Editor Utility Blueprint
in the content browser (InEditor Utilities
) - Pick the
Asset Action Utility
parent class - Open the blueprint and in the
Class Defaults
add a new entry in theSupported Classes
array and set it to theStatic Mesh
type. - Add a new function, name it correctly as it will be displayed in the asset actions (you can also write a description in the function details, it will be showed on hover)
- Copy this code inside the function (here named
BulkSetMaterial
) - The function input is named
Materials
and is of typeMaterial Interface (Array)
(We useMaterial Interface
type so we can accept any type of material, such asMaterial Instance
).