Does anyone know how to let the Depth of field Scatter script focus on multiple objects? I tried some things like copying and pasting everything involved with the focalTransform variable, but it didn’t seem to work.
Calculate the focal point. This could be the average position of every object you want “in focus.”
Calculate the size of the focused region. This could be based on the furthest object’s distance from the focal point.
It gets more complex if your camera is not confined to be a limited distance from the focal point, but that would still involve the two concepts above, so they’re a good place to start.