IsEditorOnlyObject

Returns if true if the object is editor-only:

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