AActor::IsEditorOnlyLoadedInPIE
#include "GameFramework/Actor.h"
Access: public
Specifiers: virtual
Description
Returns whether this actor, despite being editor-only, should still be loaded and present during Play-In-Editor sessions. The base class returns false; override to opt in for specific actor types that are needed during PIE testing.
Caveats & Gotchas
- • Returning true here only affects PIE — the actor is still stripped from standalone cooked builds. Do not use this as a substitute for IsRuntimeOnly logic.
- • Actors that return true from this function will be included in PIE world duplication, which may affect level streaming and duplication performance for large levels.
Signature
virtual bool IsEditorOnlyLoadedInPIE() const { return false; } Return Type
bool Example
Allow an editor actor to persist into PIE C++
bool AMyPIEDebugActor::IsEditorOnlyLoadedInPIE() const
{
// This actor is editor-only but we need it during PIE for debug visualization
return true;
} See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?