protected override void InitializeControl() { AddRenderModeSelectionControl(); worldLayersComboBox = ViewerControl.AddMultiSelection("World Layers", (worldLayers) => { SetEnabledLayers(new HashSet <string>(worldLayers)); }); savedCameraPositionsControl = new SavedCameraPositionsControl(); savedCameraPositionsControl.SaveCameraRequest += OnSaveCameraRequest; savedCameraPositionsControl.RestoreCameraRequest += OnRestoreCameraRequest; ViewerControl.AddControl(savedCameraPositionsControl); ViewerControl.AddCheckBox("Show triggers", false, v => { foreach (var n in triggerNodes) { n.Enabled = v; } }); ViewerControl.AddCheckBox("Show entity colliders", false, v => { foreach (var n in colliderNodes) { n.Enabled = v; } }); }
protected override void InitializeControl() { AddRenderModeSelectionControl(); worldLayersComboBox = ViewerControl.AddMultiSelection("World Layers", (worldLayers) => { SetEnabledLayers(new HashSet <string>(worldLayers)); }); savedCameraPositionsControl = new SavedCameraPositionsControl(); savedCameraPositionsControl.SaveCameraRequest += OnSaveCameraRequest; savedCameraPositionsControl.RestoreCameraRequest += OnRestoreCameraRequest; ViewerControl.AddControl(savedCameraPositionsControl); }