duality icon indicating copy to clipboard operation
duality copied to clipboard

Add an Object Drawing Brush to the Scene Editor

Open ilexp opened this issue 6 years ago • 1 comments

Summary

The Scene Editor is currently focused on focused per-object editing patterns. Some level editing scenarios could benefit from additional "drawing" functionality where object placement is simplified to a similar level as the current Tilemap Editor.

Analysis

  • This would be dependent on (and great opportunity for) refactoring the Scene Editor to adopt a multi tool concept similar to the Tilemap Editor and RigidBody Editor.
  • Initially, this feature would be a single new "brush" tool in the Scene Editor, in addition to the already existing "cursor" selection / editing tool.
  • When selecting the "brush" tool, an "Object Palette" (similar to the Tile Palette) would pop up and allow selecting any number of prefabs from a (preview) list.
  • Clicking and holding the brush tool would then "draw" new instances of the selected prefabs into the scene according to the current brush parameters. Right-clicking would erase the previously painted or already existing objects of matching type.
  • Could be a good opportunity to stress-test Prefabs, editor UI and serialization for large object counts, especially GameObject counts.
  • More specific concept to be defined.

ilexp avatar Jul 14 '19 12:07 ilexp

Some more Ideas:

  • Selecting a "Brush-Pattern":
    • Random Position in a circle or rectangle (custom shapes and sizes ?)
    • Define distance between prefabs
    • Random Position can be locked to X, Y or Z (or X and Y... etc.)
    • Random rotation (definable Angle between e.g. 90° and 180°)
  • Programmable brush pattern

ChristianGreiner avatar Oct 01 '19 12:10 ChristianGreiner