Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Changing template dynamically on Physics Shape?

Discussion in 'Physics for ECS' started by hippocoder, May 19, 2022.

  1. hippocoder


    Digital Ape Moderator

    Apr 11, 2010
    I'm poking around PhysicsCollider but haven't seen any way I can dynamically set the template in use. What is the expected way to go about doing that?

    Why am I doing this?

    I have thousands of level colliders and I'd like to be able to set them up ahead of time. On some of them, I'd like to change their values at runtime as well. I don't need to change colliders, just their filters or templates.

    Please advise.