Scene Tree View

Explanation

 In Unit3D Pinball, the table elements are organised in a hierarchical way. As an example, Flippers are children of the Playfield, which is a child of the table root:

 

Each element can be spatially transformed, thus, if you click on an element, there will always be a Transform Editor available. If the element is renderable, a child is created in the tree to give access to the Material editor.

Other children items are added for each other editing capabilities if available to this element (physics, etc...). More to come...

 

Selecting and nagivate

 As soon as the table editor is activated, the Scene tree view widget is displayed. To select an element or an editable feature, you can click on the item. The object is then selected and highlighted in the background 3D view (here LeftFlipper):

 

The  button allows you to explore the element as it means that there is children append to it. Click on the  button to close it for more clarity. The behaviour is like a regular tree view on any file explorer.

 

Picking

 You can also pick the object directly in the 3D scene. You probably noticed at this point that mouse overing background 3D view highlighted objects with a red halo. If you then left mouse click on it, the object is picked, the halo turns to green, and the corresponding item is selected in the tree view:

 

Filtering

To select an element even faster, you can filter them according to their names. Enter the name of the object and the tree view is updated in realtime to show only items containing the string you entrered (along with their ancestors).

Furthermore, while there is a string in the filter textfield, only the corresponding objects can be picked in the 3D view. Thus, if you enter "flip", you will be able to over/pick only the objects containing "flip" in their names, a.k.a often flippers only.
 

Todo

  • Other filtering types
  • Fix Mouse overing/picking bug when the object is covering the already selected one
  • Picking/highlighting working on cab view
  • Icons for item types (trafo, material, physics)
  • Leave the green halo when children items (like material or physics) are modified