Navigation
API > API/Plugins > API/Plugins/Avalanche > API/Plugins/Avalanche/Framework
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGameInstance
- UAvaGameInstance
References
| Module | Avalanche |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/Avalanche/Public/Framework/AvaGameInstance.h |
| Include | #include "Framework/AvaGameInstance.h" |
Syntax
UCLASS (DisplayName="Motion Design Game Instance")
class UAvaGameInstance : public UGameInstance
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsRenderTargetReady | ||
| bool | bIsTicking | Tick reentrancy guard. | |
| bool | bRequestEndPlayWorld | ||
| bool | bRequestUnloadWorld | ||
| bool | bWorldCreated | ||
| bool | bWorldPlaying | ||
| FDelegateHandle | EnginePreExitHandle | Handle to delegate for EnginePreExit event. | |
| double | LastDeltaSeconds | ||
| FName | PlayingChannelName | Channel this game instance is playing on. | |
| TObjectPtr< UWorld > | PlayWorld | ||
| TUniquePtr< FRenderCommandFence > | RenderTargetFence | Render command fence to ensure the render target has been rendered. | |
| TSharedPtr< FSceneViewport > | Viewport | ||
| TObjectPtr< UAvaGameViewportClient > | ViewportClient |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | BeginPlayWorld
(
const FAvaInstancePlaySettings& InWorldPlaySettings |
||
| void | Cancel any pending EndPlayWorld or UnloadWorld requests. | ||
| UAvaGameInstance * | Creates a new Motion Design Game instance from the given Motion Design Template Asset. | ||
| bool | CreateWorld () |
Create the game world | |
| void | EndPlayWorld () |
||
| UAvaGameViewportClient * | Get the currently playing game viewport client. | ||
| FOnAvaGameInstanceEvent & | GetOnEndPlay () |
Event called on EndPlayWorld(). | |
| FOnAvaGameInstanceEvent & | Event called when the render target becomes ready. | ||
| UWorld * | GetPlayWorld () |
||
| UTextureRenderTarget2D * | |||
| TSharedPtr< FSceneViewport > | Get the currently playing scene viewport. | ||
| bool | Returns true if the render target has been rendered and is ready to be used for output. | ||
| bool | |||
| bool | |||
| void | |||
| void | |||
| void | RequestEndPlayWorld
(
bool bForceImmediate |
The end play is normally requested to be done on the next Tick(). | |
| void | RequestUnloadWorld
(
bool bForceImmediate |
||
| void | Reset the flag so the OnRenderTargetReady event can be called again on the next render. | ||
| void | Tick
(
float DeltaSeconds |
||
| void | UnloadWorld () |
||
| void | UpdateRenderTarget
(
UTextureRenderTarget2D* InRenderTarget |
||
| void | UpdateSceneViewportSize
(
const FIntPoint& InViewportSize |
The output channels can be resized during playback, if this happens, the scene viewport needs to be updated to reflect the change. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Typedefs
| Name | Description |
|---|---|
| FOnAvaGameInstanceEvent |
Constants
| Name | Description |
|---|---|
| OnEndPlay | |
| OnRenderTargetReady |