GetMutableDefault

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss