Search Unity

Transform component replaced by Rect Transform component permanently

Discussion in 'UGUI & TextMesh Pro' started by CaptainChristian, Oct 7, 2014.

  1. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    100
    Hello,

    I am using the newest beta (20) for a test run. So far it's been pretty convincing, but I encountered a bug. Somehow in one of my prefabs, transform got replaced by rect transform and I cannot delete it. I got to a point, where it uses transform again for transformation, but now rect transform is attached at the bottom. Not sure how I got there, though.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,458
    Hard to establish what went wrong here. As you may know, beta 20 includes a change such that when you replace a Transform component with a RectTransform component on a prefab instance, it breaks the connection to the prefab but yeah, you absolutely should not be in a situation like you describe.

    Are you indeed referring to a prefab instance or the prefab asset itself?
     
  3. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    100
    Yes, the prefab itself changed. It happened when I added ui components via scripting.

    It is not a big issue, tho.