Api Editor MapEditor EditorContext
class

EditorContext

public abstract class EditorContext

Properties

Name Type Description
Target virtual EntityObject The current entity we're rendering gizmos for
IsSelected virtual Boolean If the current entity we're drawing selected
Selection HashSet<EntityObject> All selected entities

Methods

virtual EntityObject FindTarget(String name)

Given a string name return the first found target

virtual EntityObject[] FindTargets(String name)

Given a string name return all found targets

Assembly: Sandbox.Tools Namespace: Editor.MapEditor Full Name: Editor.MapEditor.EditorContext