#include "OperatingSystemWorldSubsystem.h"
UOperatingSystemWorldSubsystem class is a subsystem of the game world that manages the operating system functionality.
◆ UOperatingSystemWorldSubsystem()
UOperatingSystemWorldSubsystem::UOperatingSystemWorldSubsystem |
( |
| ) |
|
◆ Deinitialize()
void UOperatingSystemWorldSubsystem::Deinitialize |
( |
| ) |
|
|
overridevirtual |
◆ DrawWidget()
FORCEINLINE bool UOperatingSystemWorldSubsystem::DrawWidget |
( |
UUserWidget * | Widget, |
|
|
const bool | bDeferUpdate, |
|
|
const float | DeltaTime ) const |
|
inline |
Draws the specified widget using the operating system widget drawer.
- Parameters
-
Widget | The UUserWidget instance to be drawn. |
bDeferUpdate | Whether to defer the widget update. |
DeltaTime | The time since the last frame. |
- Returns
- true if the widget was successfully drawn, false otherwise.
◆ FindDeviceActorByTag()
Searches for a device actor in the registered device actors based on the provided tag. If a matching device actor is found, it is returned. If the provided tag is not valid, an error message is logged and null is returned. If no device actor is found with the provided tag, a warning message is logged and null is returned.
- Parameters
-
TestTag | The tag used to identify the device actor. |
- Returns
- The device actor with the provided tag, or null if not found or if the tag is not valid.
◆ FindDeviceActorsByTag()
void UOperatingSystemWorldSubsystem::FindDeviceActorsByTag |
( |
const FGameplayTag | TestTag, |
|
|
TArray< AOperatingSystemDeviceActor * > & | OutDeviceActors ) |
Searches for device actors in the registered device actors based on the provided tag. If matching device actors are found, they are added to the OutDeviceActors array. If the provided tag is not valid, an error message is logged and the array remains empty. If no device actors are found with the provided tag, a warning message is logged and the array remains empty.
- Parameters
-
TestTag | The tag used to identify the device actors. |
OutDeviceActors | The array to which the found device actors should be added. |
◆ Get()
Retrieves the instance of the UOperatingSystemWorldSubsystem class that is associated with the specified WorldContextObject.
- Parameters
-
WorldContextObject | The UObject instance representing the context of the world. |
- Returns
- The UOperatingSystemWorldSubsystem instance associated with the WorldContextObject.
◆ GetUserManager()
Get the user manager instance.
- Returns
- The user manager instance.
◆ Initialize()
void UOperatingSystemWorldSubsystem::Initialize |
( |
FSubsystemCollectionBase & | Collection | ) |
|
|
overridevirtual |
◆ RegisterDeviceActor()
This method adds the specified device actor to the RegisteredDeviceActors array of the operating system world subsystem.
- Parameters
-
◆ SetTargetTexture()
FORCEINLINE void UOperatingSystemWorldSubsystem::SetTargetTexture |
( |
UTextureRenderTarget2D * | TargetTexture | ) |
const |
|
inline |
Sets the target texture for the operating system widget drawer.
- Parameters
-
TargetTexture | The UTextureRenderTarget2D instance representing the target texture. |
◆ UnregisterDeviceActor()
This method removes the specified device actor from the RegisteredDeviceActors array of the operating system world subsystem. The array consists of weak pointers to AOperatingSystemDeviceActor instances that are registered with the subsystem.
- Parameters
-
The documentation for this class was generated from the following files: