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. Dismiss Notice

Bug Instancing material and scaling the transform, visual no scale change

Discussion in 'Universal Render Pipeline' started by Hazzel, Nov 3, 2022.

  1. Hazzel

    Hazzel

    Joined:
    Feb 26, 2022
    Posts:
    14
    Hello,

    when i instance my render material like :Instantiate(GetComponent<Renderer>().material)
    and then try to change Transform scale, the change shows in the transform component but not visually, when i comment out the Instantiate, it works again!
    I am using URP and 2021.3.11f1
     
  2. Hazzel

    Hazzel

    Joined:
    Feb 26, 2022
    Posts:
    14
    nevermind i think it was because it was marked as static, my bad