UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IGameLayer Class Referenceabstract

#include <SGameLayerManager.h>

+ Inheritance diagram for IGameLayer:

Public Member Functions

virtual TSharedRef< SWidgetAsWidget ()=0
 
virtual ~IGameLayer ()
 
- Public Member Functions inherited from TSharedFromThis< IGameLayer >
TSharedRef< IGameLayer, Mode > AsShared ()
 
TSharedRef< IGameLayer const, Mode > AsShared () const
 
TSharedRef< SubobjectType, Mode > AsSharedSubobject (SubobjectType *SubobjectPtr) const
 
TWeakPtr< IGameLayer, Mode > AsWeak ()
 
TWeakPtr< IGameLayer const, Mode > AsWeak () const
 
TWeakPtr< SubobjectType, Mode > AsWeakSubobject (SubobjectType *SubobjectPtr) const
 
void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const
 
void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const
 
UE_FORCEINLINE_HINT bool DoesSharedInstanceExist () const
 

Additional Inherited Members

- Protected Member Functions inherited from TSharedFromThis< IGameLayer >
 TSharedFromThis ()
 
 TSharedFromThis (TSharedFromThis const &)
 
UE_FORCEINLINE_HINT TSharedFromThisoperator= (TSharedFromThis const &)
 
 ~TSharedFromThis ()
 
- Static Protected Member Functions inherited from TSharedFromThis< IGameLayer >
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 
static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 

Detailed Description

Allows you to provide a custom layer that multiple sources can contribute to. Unlike adding widgets directly to the layer manager. First registering a layer with a name allows multiple widgets to be added.

Constructor & Destructor Documentation

◆ ~IGameLayer()

virtual IGameLayer::~IGameLayer ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ AsWidget()

virtual TSharedRef< SWidget > IGameLayer::AsWidget ( )
pure virtual

Get the layer as a widget.

Implemented in FWorldWidgetScreenLayer.


The documentation for this class was generated from the following file: