Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Objects transform is getting a reset on start with my shader. Only on Android.

Discussion in 'General Graphics' started by jnnte, May 21, 2022.

  1. jnnte

    jnnte

    Joined:
    Sep 21, 2018
    Posts:
    1
    I have a shader that working fine on my PC, but as soon as I build the game on an android phone ( I havent tried any other mobile systems).
    The object that has the shader, its transform is getting reset to zero.
    Im using URP.
    Its like the SRP batcher is getting broken, because its the same behaviour if I would disable SRP batcher in the editor.
    The shader is working as indended otherwise, its just the transform that is bye bye.

    So what am I missing? What should I look at, Am I using the wrong render pipeline? Or is it something in my shader thats not ok on a mobile.