GetMutableDefault

Version of [GetDefault()](API\Runtime\CoreUObject\UObject\GetDefault\2) that allows modification

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Syntax

template<class T>
T * GetMutableDefault
(
    UClass * Class
)

Remarks

Version of GetDefault() that allows modification

Gets the mutable default object of a class.

Returns

Class default object (CDO).

Parameters

Parameter

Description

Class

The class to get the CDO for.

See Also