How to use editor classes from within an actor class

Can’t use editor code outside editor builds. Best not to rely on that code during runtime. You can use

#if WITH_EDITOR

#endif // WITH_EDITOR

to wrap your editor only code so it doesn’t try to compile, but if you gotta have it for your concept/feature/game to work, then best to move on to your own solution or to a different concept/feature/game.

1 Like