HI. I need to access the points of location of leaves and their normal vectors programmatically. I intend to animate my camera from leaf to leaf on the fly. I don't want the tree to be game object. I just need the runtime position and normals of nearest leaf(s) to the camera. I couldn't find any API endpoints for Leaves inside the tree. Can someone point me in a direction to work it out.
Thank you very much.
↧