Red rectangle - 2d selection (HUD).
Blue rectangle - 3d selection area.
Download Example
Left Mouse Button - 2d.
Right Mouse Button - 3d.
For 3d, I prepared only the selection area.
You should think about implementing a selection of actors in 3d mode.