Search Unity

Texture rotates 90° when extruding Edge

Discussion in 'World Building' started by Chrueschschie, May 29, 2018.

  1. Chrueschschie

    Chrueschschie

    Joined:
    Feb 5, 2018
    Posts:
    4
    Hello everyone,

    I am using a Prism pb_Object to visualise a simple roof. The roof surface is therefore covered with a roof tile texture/material.
    I am further able to edit the roofs width at runtime, using the TranslateVertices() method from the current ProBuilder API (v. 3.0.8, Unity v. 2018.1), and everything is working great.
    But, my problem is:
    While increasing the width of the roof (thus extruding its edges) the roof tile texture will at some point rotate around 90°. Making the roof narrower again lets the texture rotate back again.
    I attached two screenshots to make things more clear:
    OK:
    roof_ok.PNG
    Not OK:
    roof_not_ok.PNG

    Does anyone know how I can prevent this? Looks like some kind of automated alignment thingy...
    The same effect happens also in Editor Mode.

    Thank you very much in advance!
    Christian
     
  2. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    963
    Oooh- that's interesting :) I believe you are correct, AutoUVs must be kicking in, with a strange result. I'll test around with this, looks like I can get a repro easily and create a ticket to fix up the behavior. Thanks for reporting it!
     
    Chrueschschie likes this.
  3. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    963
    Yep, quick and easy repro, ticket made, thanks again! :)
     
    Chrueschschie likes this.
  4. Chrueschschie

    Chrueschschie

    Joined:
    Feb 5, 2018
    Posts:
    4
    Alright, thank you very much for the info! Waiting eagerly for a fix :D
     
    gabrielw_unity likes this.