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

Resetting transform position after build

Discussion in 'Android' started by Skullek, Jul 3, 2019.

  1. Skullek

    Skullek

    Joined:
    Mar 16, 2018
    Posts:
    22
    So I've got this problem that executable Android .apk resets position of an 3D objects in the game.


    Everything works fine in editor. I've got this balls and other elements on the right positions:


    Every color ball has its own shader so I add standard 3D gameobjects: sphere and capsule and 2d sprite.
    But it doesn't matter. It still reset to 0,0,0 position even without scripts, controllers, rigidbody etc...

    On Android Device:



    Like you see every 3D object is on 0,0,0. Only particle systems and sprites are fine
    What should I do? Please help
     
  2. Skullek

    Skullek

    Joined:
    Mar 16, 2018
    Posts:
    22
    It helped when i use OpenGLES2 instead of OpenGLES3.. Do you know why? Should i stay with es2?
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    I saw reports that enabling SRP batcher can cause this behaviour. Are you using LWRP?
     
  4. Skullek

    Skullek

    Joined:
    Mar 16, 2018
    Posts:
    22
    Yes I am
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    Try disabling SRP batcher in the pipeline settings then (and switch back to GLES3).
     
    Skullek likes this.
  6. Skullek

    Skullek

    Joined:
    Mar 16, 2018
    Posts:
    22
    Thank you very much. It helped.
     
    aleksandrk likes this.