UKismetSystemLibrary::ObjectHasEditorOnlyData
#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 See Also
Tags
Version History
Introduced in: 4.24
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?