After some time into Unity XR project, I started noticing how unnecessarily cluttered Inspector became in some cases. For example, I have Script A and Script B. Script A changes cubes colors to red and script B changes cubes sizes. The way I had it before, both scripts had serialized GameObject List to which I dragged the same cube objects. That’s a simplistic example but clearly represents the issue.
Script A Component
Cubes List
Cube 1
Cube 2
Cube 3
Script B Component
Cubes List
Cube 1
Cube 2
Cube 3
I have been thinking of ways to reduce that clatter. So far, the solution that seems to work fine is to create a placeholder script and then just find its instance with FindObjectOfType. So whatever I had above became
Script ObjectPlaceholder
Cubes List
Cube 1
Cube 2
Cube 3
I am just wondering about other common practices or better ways to solve that problem.