Getting the mesh set by camera's setTarget

Hi everyone!

Short question about camera and the setTarget function. As you can pass a mesh to the setTarget -function, is it possible to get the mesh back as well? The camera.getTarget() seems to return only Vector3 as a result…

The reason I am asking this is to find out which mesh the camera is currently following! :sunglasses:

You can access private property _targetHost

Is there an issue with adding an accessor to this property @sebavan @Evgeni_Popov @PolygonalSun ?

1 Like

I can not think of any, would you mind doing a PR ?

1 Like

sure!

2 Likes

PR

2 Likes