Scripting API
Scripting API
EditorOnlyAttribute
Class in Abyss.Core, from Abyss.Core.
Marks a plugin that is the editor's alone: built and run by the editor, and never by the game on its own.
public sealed class EditorOnlyAttribute : AttributeRemarks
For what helps whoever edits the game and is no part of it, above all what is drawn over the Scene panel with SystemContext.Gizmos: how far something reaches, where it is headed, more for what is picked (SystemContext.Selection). Its systems are ordinary systems over the game's components, so a component stays what it is, data, and what is drawn for it is a system of its own that reads it.
Always running, in the editor. The editor builds it as it opens the game, again at every Play from the game's C# loaded afresh, and again as a rebuilt game is loaded, and runs its systems on every frame it draws, after the game's own: while the game is edited, while it plays, and while it is paused, so what it draws follows what is picked even then. Schedule.AddPlugins, which is how a game's Program builds its plugins, passes it over, so a game on its own does none of its work.
Marked ExecuteAlwaysAttribute as well, it is still the editor's alone. Not inherited, as that mark is not.
