Navigation
API > API/Plugins > API/Plugins/AvalancheCore
References
| Module | AvalancheCore |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheCore/Public/AvaWorldSubsystemUtils.h |
| Include | #include "AvaWorldSubsystemUtils.h" |
Syntax
struct CAvaWorldProvider
Remarks
Class to add some boilerplate functionality to world subsystems. Supports UObject and non-UObject world contexts. If bInGenerateErrors is true, it will generate ensures.
Example usage:
Given a class that inherits from TAvaWorldUtility: class UMySubsystem : public UWorldSubsystem, public TAvaWorldSubsystemInterface
Then you can call Get using the subsystem class: UMySubsystem* Subsystem = UMySubsystem::Get(WorldContext);
Without an inheriting class, you can use the utility struct directly: UMySubsystem* Subsystem = FAvaWorldSubsystemUtils::GetWorldSubstem
Functions
| Type | Name | Description | |
|---|---|---|---|
| decltype(OutWorld=InObject.GetWorld()) | Requires
(
UWorld*& OutWorld, |