Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Can I use an object colliders without enabling mesh renderer?

Discussion in 'Physics' started by LazyGhost15, Feb 27, 2024.

  1. LazyGhost15


    Feb 12, 2022
    To reduce the lag in my project I want to disable the mesh renderer in some objects but I still need their collider so other objects can detect them and interact with them, can I simply disable the mesh renderer so Unity won't render them but they would still be there so other objects can detect them with physics.raycast?
  2. yant


    Unity Technologies

    Jul 24, 2013
    Yes, absolutely. As long as the mesh that your MeshCollider components are using is available, physics should be fine. It doesn't need anything to be drawn on the screen by renderers in order to function.