IsEditorOnlyObject

Returns if true if the object is editor-only:

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/Private/UObject/SavePackage.cpp

Syntax

bool IsEditorOnlyObject
(
    const UObject * InObject,
    bool bCheckRecursive,
    bool bCheckMarks
)

Remarks

Returns if true if the object is editor-only:

  • it's a package marked as PKG_EditorOnly or inside one or

  • IsEditorOnly returns true or

  • if bCheckMarks is true, if it has the EditorOnly object mark or

  • if bCheckRecursive is true, if it's class, outer, or archetypes are editor only

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