Navigation
API > API/Plugins > API/Plugins/GeometryScriptingEditor
UEditorGeometryGenerationSubsystem manages recomputation of "generated" mesh actors, eg to provide procedural mesh generation in-Editor. Generally such procedural mesh generation is expensive, and if many objects need to be generated, the regeneration needs to be managed at a higher level to ensure that the Editor remains responsive/interactive.
AGeneratedDynamicMeshActors register themselves with this Subsystem, and allow the Subsystem to tell them when they should regenerate themselves (if necessary). The current behavior is to run all pending generations on a Tick, however in future this regeneration will be more carefully managed via throttling / timeslicing / etc.
| Name | UEditorGeometryGenerationSubsystem |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingEditor/Public/GeometryActors/EditorGeometryGenerationSubsystem.h |
| Include Path | #include "GeometryActors/EditorGeometryGenerationSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UEditorGeometryGenerationSubsystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → UEditorGeometryGenerationSubsystem
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bIsShuttingDown | bool | GeometryActors/EditorGeometryGenerationSubsystem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GenerationManager | TObjectPtr< UEditorGeometryGenerationManager > | GeometryActors/EditorGeometryGenerationSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
GeometryActors/EditorGeometryGenerationSubsystem.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
GeometryActors/EditorGeometryGenerationSubsystem.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnShutdown() |
Callback connected to engine/editor shutdown events to set bIsShuttingDown, which disables the subsystem static functions above | GeometryActors/EditorGeometryGenerationSubsystem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool RegisterGeneratedMeshActor
(
AGeneratedDynamicMeshActor* Actor |
Static functions that simplify registration of an Actor w/ the Subsystem | GeometryActors/EditorGeometryGenerationSubsystem.h | |
static void UnregisterGeneratedMeshActor
(
AGeneratedDynamicMeshActor* Actor |
GeometryActors/EditorGeometryGenerationSubsystem.h |