RealDocs

UKismetSystemLibrary::ObjectHasEditorOnlyData

function Engine Blueprint Since 4.24
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns true if the object still has its editor-only data, as opposed to having had it stripped for a cooked/packaged build.

Caveats & Gotchas

  • Only compiled with WITH_EDITOR — not available in packaged builds; guard calls with #if WITH_EDITOR.
  • Distinct from IsObjectCooked: an object can be cooked yet still retain editor-only data depending on cook settings and platform.
  • Intended for editor tooling and asset validation, not gameplay logic.

Signature

static bool ObjectHasEditorOnlyData(const UObject* Object)

Parameters

Name Type Description Default
Object const UObject* The object to check.

Return Type

bool

Example

Check whether editor-only data survived a cook C++
#if WITH_EDITOR
bool bHasEditorData = UKismetSystemLibrary::ObjectHasEditorOnlyData(MyAsset);
#endif

Version History

Introduced in: 4.24

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.