Scripting API
Scripting API
EditorSelection
Class in Abyss.Core, from Abyss.Core.
The entities the editor has picked, for a game's systems to draw more for; empty in a game on its own.
public sealed class EditorSelectionRemarks
The C# half of abyss_core::game_gizmos::EditorSelection, which a game's Rust reads as a resource: Select sets both at once, every frame the editor's Scene panel is drawn, so the two halves of a game are told the same. A system reads it as SystemContext.Selection. It is set between frames and only read while systems run, so a system reading it on another thread needs no lock.
Properties
Selected
public ReadOnlySpan<ulong> Selected { get; }What is picked, packed as the engine packs an entity, in the order it was picked.
Count
public int Count { get; }How many entities are picked.
IsEmpty
public bool IsEmpty { get; }Whether nothing is picked.
Methods
IsSelected
public bool IsSelected(ulong entity)Whether entity is picked.
Parameters
entity
