New editor features: change class of any component, shortcuts to tools, multi-selection of transforms

Multiple selection of lights

We continue to improve the editor to make it easier to design large 3D and 2D games.

  1. Context menu of each component (available if you click with right mouse button on a component in the hierarchy panel, on the left) contains now a menu “Change Class…”. This allows to change:

    • any TCastleUserInterface class to another TCastleUserInterface class (for example change empty group to a color rectangle),
    • any TCastleTransform class to another (for example change light type between point / spot / directional),
    • any TCastleBehavior class to another (for example, change collider between sphere / box / mesh etc. in the upcoming physics work),
    • any non-visual class to another (for example, change font class to a family of fonts with different bold / italic etc. versions).
  2. You can now select multiple TCastleTransform instances by clicking on them with Ctrl key held down in the design (middle) panel (which shows 3D view in case of 3D viewports).

    Multiple selected transformations are also better shown now.

    This is great to select e.g. a number of light sources or scenes and change their properties (e.g. intensity or color of the lights).

    Note: For now, you cannot transform (move/rotate/scale) a multi-selection using a gizmo. But we have made now a first step to enable this too in the future:)

  3. You can now add TCastleBehavior from right-click menu when another TCastleBehavior is selected. Esp. useful when adding collider alongside rigid body — this is great for upcoming physics.

  4. Use Alt+1, Alt+2 etc. key shortcuts to quickly switch between interact / select / move / rotate / scale tools.

  5. Use Escape key shortcut to reliably focus the design (middle) panel. This is great if you want to use e.g. F (focus) or 1 / 3 / 7 key shortcuts. In case you stand on an edit box, the Escape key will reliably switch focus to the design.

1 Like