Search Unity

Texture2D.PackTextures() With Padding=1 Blows Up Unity (2018.2.18f1)!!?

Discussion in 'Editor & General Support' started by Deleted User, Dec 10, 2018.

  1. Deleted User

    Deleted User

    Guest

    If you call the Texture2D.PackTextures() method and pass in a value of 1 for the padding parameter, Unity starts eating massive amounts of ram and finally crashes. If you pass in zero for padding, it works fine. If you pass in 2 or 3 for the padding parameter, it works fine. If you pass in a value of 1 for the padding parameter, Unity goes completely insane and self destructs like I said! lol

    I changed nothing in the code except the value of the padding parameter, so my code is not doing that. What the heck is going on!? It appears to be a serious bug? I probably won't use padding, but I was messing with it trying to solve another issue with seams appearing in my scene where quads meet. Each quad has one texture from my texture atlas fit on its surface because its voxel geometry. For example, if you have two wood plank blocks next to each other, there's a very thin black seam where they touch.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,279
    Could you file a bug report, please?
     
  3. Deleted User

    Deleted User

    Guest

    Yea no problem, bug report is filed now :)
     
    karl_jones likes this.