Navigation
API > API/Plugins > API/Plugins/UVEditor
The subsystem is meant to hold any UV editor operations that are not UI related (those are handled by the toolkit); however, in our case, most of our operations are wrapped up inside tools and the UV mode. Instead, the subsystem deals with some global UV asset editor things- it manages existing instances (we can't rely on the asset editor subsystem for this because the UV editor is not the primary editor for meshes), and figures out what we can launch the editor on.
| Name | UUVEditorSubsystem |
| Type | class |
| Header File | /Engine/Plugins/Editor/UVEditor/Source/UVEditor/Public/UVEditorSubsystem.h |
| Include Path | #include "UVEditorSubsystem.h" |
Syntax
UCLASS ()
class UUVEditorSubsystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → UUVEditorSubsystem
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AreAssetsValidTargets
(
const TArray< FAssetData >& InAssets |
Checks that all of the assets are valid targets for an editor session. | UVEditorSubsystem.h | |
| Checks that all of the objects are valid targets for a UV editor session. | UVEditorSubsystem.h | ||
virtual void BuildTargets
(
const TArray< TObjectPtr< UObject > >& ObjectsIn, |
Tries to build the core targets that provide meshes for UV tools to work on. | UVEditorSubsystem.h | |
virtual void Deinitialize() |
UVEditorSubsystem.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
UVEditorSubsystem.h | ||
virtual void NotifyThatUVEditorClosed
(
TArray< TObjectPtr< UObject > > ObjectsItWasEditing |
Needs to be called when a UV editor instance is closed so that the subsystem knows to create a new one for these objects if they are opened again. | UVEditorSubsystem.h | |
virtual void StartUVEditor
(
TArray< TObjectPtr< UObject > > ObjectsToEdit |
Either brings to the front an existing UV editor instance that is editing one of these objects, if one exists, or starts up a new instance editing all of these objects. | UVEditorSubsystem.h |