Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Prefab position/scale randomly glitches

Discussion in 'Prefabs' started by CovalenceSTU, Jan 22, 2020.

  1. CovalenceSTU

    CovalenceSTU

    Joined:
    Sep 10, 2018
    Posts:
    63
    Prefabs in the game I'm developing keep glitching with incorrect position/scale/rotation. This happens in playmode and in the built game, but not in the scene view.


    (There were more glitches that happened during the video but weren't captured.)

    Sometimes it happens in the same spot; sometimes it doesn't. It's more likely to happen the father you get from (0,0,0) (the video is at about (-2500,80,-4800)). There's also a possibly related shadow glitch that always happens and happens more the father away from (0,0,0) you get.

    What could be causing this? I'm using Unity 2017.2.
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Hi. This is not related to Prefabs. What you're seeing is floating point precision issues. It's a general thing in 3D graphics caused by the fact that numbers in computers have limitations in what they can represent accurately. There is no way to just make it go away, but various workarounds. Try to search for "floating point precision" and Unity to learn more about it; it's a large and complex topic.