Here is how to create your own editor mode inside Unreal Engine.
Extend the editor with custom tools like the Landscape mode tailor to your own project.
A thread ๐งต๐๐ผ
1/4 Create the EdMode subclass
The EdMode subclass is responsible for registering and initializing the mode. It provides access to crucial virtual functions such as UEdMode::Enter & UEdMode::Exit which are triggered selecting and leaving the edit mode.
2/4 Create the ModeToolkit subclass
The Toolkit is responsible for creating the UI panel. It allows you to fully customize the panel with custom widgets are leverage the built-in DetailsView panels.
3/4 Implementing the EdMode
In this example we will keep it simple and focus on 2 things:
- registering the editor mode inside the constructor: enables our custom mode to show up in the dropdown
- overriding the toolkit: gives up complete control over the mode's editor tab
4/4 Implementing the widget
In our custom toolkit, we will override the GetInlineContent. This enables use to override the default behavior (showing details about the mode + a details view) by creating a custom text widget.
That's all for today!
If you learned something new:
1. Follow me @OutoftheboxP for more of these
2. Retweet the tweet below to share it with your fellow developer friends.
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.
