Navigation
API > API/Editor > API/Editor/UnrealEd
Editor subsystem that owns the flyweight UMaterialShaderValueTypeObject instances. Lifetime tied to GEditor — flyweights are GC-traced via UPROPERTY and collected naturally when the subsystem is destroyed during GEditor teardown.
| Name | UMaterialShaderValueTypeSubsystem |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/MaterialShaderValueTypeSubsystem.h |
| Include Path | #include "Subsystems/MaterialShaderValueTypeSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UMaterialShaderValueTypeSubsystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → UMaterialShaderValueTypeSubsystem
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Flyweights | TMap< uint8, TObjectPtr< UMaterialShaderValueTypeObject > > | Subsystems/MaterialShaderValueTypeSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialShaderValueTypeObject * GetOrCreate
(
UE::Shader::EValueType InType |
Get or create the flyweight for a given EValueType. | Subsystems/MaterialShaderValueTypeSubsystem.h |