Custom Asset types commonly have special functions you wish to be able to perform on them. For example, converting images into sprites is an option you wouldn't want to add to any other Asset type. You can create custom context menu entries for specific Asset types to make those functions accessible to users.
Creating custom context menu entries for Assets
How to do it...
- From the Chapter_10Editor folder, create two new files called MyCustomAssetActions.h and MyCustomAssetActions.cpp.
- Return to your project file and update your Visual Studio project. Once finished, open up the project in Visual Studio.
- Open MyCustomAssetActions.h and use the following code:
#pragma once
#include "AssetTypeActions_Base.h"
#include...