Focus zooms way out on empty objects

Avatar
  • updated
  • Unity's Fault

Create an empty object (we'll call parent). Add a new empty object to parent (we'll call child). Add a disc component to the child object. Select the parent object, hit 'F'. The camera zooms way out.

Reporting a bug? please specify Unity version:
2019.4.2f1
Reporting a bug? please specify Shapes version:
2.0.0
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

I wish I could solve this

Long story short:

  • Unity does F-focusing based on renderer bounds
  • Shapes use quads with very large bounds in order to share it for GPU instancing
  • You can override the F-focus with editor scripts for individual objects (which I have), so this only works when that one object in particular is selected, but it doesn't take that into account when it's part of a hierarchy

so yeah, it's impossible to solve at the moment as far as I know :c

Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

I wish I could solve this

Long story short:

  • Unity does F-focusing based on renderer bounds
  • Shapes use quads with very large bounds in order to share it for GPU instancing
  • You can override the F-focus with editor scripts for individual objects (which I have), so this only works when that one object in particular is selected, but it doesn't take that into account when it's part of a hierarchy

so yeah, it's impossible to solve at the moment as far as I know :c