Navigation
API > API/Plugins > API/Plugins/MassLOD
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UWorldSubsystem
- UTickableWorldSubsystem
- UMassLODSubsystem
References
| Module | MassLOD |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODSubsystem.h |
| Include | #include "MassLODSubsystem.h" |
Syntax
UCLASS&40;&41;
class UMassLODSubsystem : public UTickableWorldSubsystem
Remarks
Manager responsible to manage and synchronized available viewers
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddEditorViewer
(
const int32 HashValue, |
Adds the editor viewport client (identified via an index) as a viewer to the list and sends notification about addition | |
| void | AddPlayerViewer
(
APlayerController& PlayerController |
Adds the given player as a viewer to the list and sends notification about addition | |
| void | AddStreamingSourceViewer
(
const FName StreamingSourceName |
Adds the given streaming source as a viewer to the list and sends notification about addition | |
| uint32 | Returns the next new viewer serial number | ||
| FOnViewerAdded & | Returns the delegate called when new viewer are added to the list | ||
| FOnViewerRemoved & | Returns the delegate called when viewer are removed from the list | ||
| APlayerController * | GetPlayerControllerFromViewerHandle
(
const FMassViewerHandle& ViewerHandle |
Returns PlayerController pointer from the viewer handle | |
| const TArray< FViewerInfo > & | Synchronize the viewers if not done this frame and returns the updated array | ||
| int32 | GetValidViewerIdx
(
const FMassViewerHandle& ViewerHandle |
Returns the index of the viewer if valid, otherwise INDEX_NONE is return | |
| FMassViewerHandle | GetViewerHandleFromPlayerController
(
const APlayerController* PlayerController |
Returns viewer handle from the PlayerController pointer | |
| FMassViewerHandle | GetViewerHandleFromStreamingSource
(
const FName StreamingSourceName |
Returns viewer handle from the streaming source name | |
| const TArray< FViewerInfo > & | GetViewers () |
Returns the array of viewers | |
| bool | IsValidViewer
(
const FMassViewerHandle& ViewerHandle |
Checks the validity of a viewer handle | |
| void | OnPlayerControllerEndPlay
(
AActor* Actor, |
Player controller EndPlay callback, removing viewers from the list | |
| void | OnPrePhysicsPhaseStarted
(
float DeltaTime |
Called at the start of the PrePhysics mass processing phase and calls SynchronizeViewers | |
| void | RemoveViewer
(
const FMassViewerHandle& ViewerHandle |
Removes a viewer to the list and send notification about removal | |
| void | Synchronizes the viewers from the engine PlayerController list |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
USubsystem implementation Begin. |
Overridden from FTickableObjectBase
Typedefs
| Name | Description |
|---|---|
| FOnViewerAdded | |
| FOnViewerRemoved |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddViewer
(
APlayerController* PlayerController, |
AddViewer has been deprecated. Use AddPlayerViewer or AddStreamingSourceViewer instead |