UE4 User-Defined Asset Introduction

UE4 User-Defined Asset Introduction

This series will describe how to develop an custom asset editor step by step. This article will introduce knowledge about user-defined asset.


1 User-Defined Data Asset


Just creating a class derived from UDataAsset.

DataAsset

For this type of asset, asset editor is not need to be developed. Developer can use build-in editor directly.


2 User-Defined Asset with Asset Editor


For complex user-defined asset, asset editor should be developed to edit this type of asset conveniently.

Such as BehaviorTree asset:

BTTree


3 Module Definition


For developing user-defined asset, you’ll need a runtime module and editor module. I recommend to create a plugin to do this. It will be convenient to maintain your modules and apply to other UE4 project.

//Plugin module folder structure:
  -XXX_Module
	- Resource
	- Source
	  - XXX_Module   //Runtime module
	    - Private
	    - Public
	    - XXX_Module.Build.cs
	  - XXX_ModuleEidtor  //Editor module
	    - Private
	    - Public
	    - XXX_ModuleEditor.Build.cs
	- XXX_Module.uplugin

I will create such demo plugin to explain how to customize your asset editor step by step in this series. I will use VS Code editor to develop in UE4 and the step to setup VS Code with UE4 can be found in UE4 Using Visual Studio Code.




Tags: UE4 Editor Vistied:
Share: Twitter Facebook LinkedIn