Is there a way for "Editor only" Actors
I was wondering if there is currently a way for me to have "editor only" actors. Basically I want to be able to place some custom actors and then from them bake some custom data. I know how to do the ""baking my own custom data" part but I can;t see a way to have "TOOL ONLY" actors and objects.
If there is nothing of the like maybe there is a way I can add a UCLASS property parameter to my class definition that will exclude the actor from being cooked ?
asked Feb 06 '15 at 05:38 PM in C++ Programming
From one of our team members:
There's a virtual that any object can override, called IsEditorOnly, and actors can flag themselves from blueprints as bIsEditorOnlyActor in the advanced section of Cooking category
answered Apr 04 '18 at 03:28 PM
Possibly, the best solution is to put your editor-only actors in a sublevel (one that's streamed in and exists in the same space as your main level). Then, when packaging, you'd have to exclude that level (either remove it from disk for packagin or only load it on WITH_EDITOR).
I'm not sure two levels is a great workflow. Using Layers would be better, but I don't know how you'd turn it off for packaging (aside from deleting that layer).
I think the Epic approach is to find an alternative to many actors. The navmesh bounds is a single large actor that aggregates the navigable area within the volume. If you want designers to place your actors and adjust properties on them, then you might have to do a lot of custom work (so actors is a much easier approach).
answered Aug 25 '16 at 05:24 PM
Just to make sure I understand your question, you are looking for a way to have the actor usable in the editor but not show up in game, is that correct? If you need to see the actor when working with it in the editor but not see it when the game is ran you can use the "Set Visibility" option to hide the mesh during gameplay. If it's meant just for data storage you can not give it any mesh at all. Then any blueprint you create with the class will be able to be placed in the level and used to hold data/make calls but it won't be rendered since there is nothing to render. I hope this information helps and best of luck in your project.
answered Feb 06 '15 at 07:26 PM
This is just a partial answer to your question but: I actually discovered something today. Components have a boolean "Is Editor Only" property. If it is set to true, it will be excluded from cooked builds. This does exactly what we want (at least for components).
I hope we will get the same for actors and objects as well
answered Mar 19 '17 at 09:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here