Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Getting skinnedmeshes screen rect cheaply

Discussion in 'Scripting' started by zedz, Oct 18, 2021.

  1. zedz


    Aug 31, 2013
    Sorry to link to another thread but it has diagrams

    Since this thread is a couple of years old, has this changed in the meantime?
    Am I able to get this info from unity? As I assume it needs to know if an gameobjects skinned mesh can be seen by a camera, if not then unity doesn't spend time uipdating its meshes etc

    At the moment I have to do a lot of calculations myself for a single skinned mesh to work out its bounding rectangle, and theres often lots of skinned meshes on screen, thus I'ld prefer not to spend the time unnecessarily

    Cheers zed