Right-clicking an Entity selects it for either observing or editing
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Scenes.EntityDebugger EntitySelector
Namespace: DeltaEngine.Scenes.EntityDebugger
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The EntitySelector type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | EntitySelector | Initializes a new instance of the EntitySelector class |
Methods
Name | Description | |
---|---|---|
![]() | Add |
Properties
Name | Description | |
---|---|---|
![]() | EditorMode |
Remarks
Examples
[Test] public void BouncingLogosThatCanBeObservedByRightClicking() { selector.Add(ellipse); for (int i = 0; i < NumberOfLogos; i++) selector.Add(new BouncingLogo()); }
[Test] public void BouncingLogosThatCanBeEditedByRightClicking() { selector.EditorMode = EditorMode.Write; selector.Add(ellipse); for (int i = 0; i < NumberOfLogos; i++) selector.Add(new BouncingLogo()); }
[Test, CloseAfterFirstFrame] public void AddEntity() { selector.Add(ellipse); Assert.AreEqual(1, selector.entities.Count); Assert.AreEqual(ellipse, selector.entities[0]); }
See Also