I have a qustion about the EditorOnly tag, I know its purpose to prevent gameobjects under that tag to be included in the scene on build. What I would like to know if the content of said objects is still allocated. I have a script that retain just simple text, I use it as a memo system for editor only usage. I wanted to be sure that when I build the game the serialized text won't be allocated in memory at build time even if the gameobject isn't included in the scene, does EditorOnly tag prevent this too? Thanks.
The EditorOnly flag should mean that any game objects that are flagged with it are not built into the player. So that means that the scripts on those game objects also won't be built. You can verify that by printing out a list of all MonoBehaviours in the scene using GameObject.FindObjectsOfType(typeof(MonoBehaviour)).
Well thank you for the reply anyway, necro or not, was still wondering the answer even to this day lol.