UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CProvidesDefaultUObject Struct Reference

#include <MemoryLayout.h>

Public Member Functions

template<typename T >
auto Requires (const T &) -> decltype(T::StaticClass() ->GetDefaultObject())
 

Detailed Description

Access to a global default object is required in order to patch vtables Normally this can be provided by a default-constructed object. For objects without default constructors, a default object must be provided through the global function GetDefault<T>() THasCustomDefaultObject<T>::Value must be specialized to true for these types. This is done by default for any UObject-derived types, which already provide GetDefault<T>()

Member Function Documentation

◆ Requires()

template<typename T >
auto CProvidesDefaultUObject::Requires ( const T &  ) -> decltype(T::StaticClass() ->GetDefaultObject())

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