Search Unity

Adding BoxCollider to Transform at runtime causes transparent texture

Discussion in 'Editor & General Support' started by souperdave, Feb 7, 2011.

  1. souperdave

    souperdave

    Joined:
    Jan 7, 2011
    Posts:
    7
    Hey all. I am instantiating multiple meshes (textured asteroids), adding rigidbody and box collider components to each. These gameobjects are given random scales and relative torque. The scene behaves as expected without the addition of box colliders. Once the colliders are added, strangely, when I rotate the camera to point at any of the asteroids, they turn transparent.

    Update: I see a symptom, somehow the shader for the transparent objects has changed to, go figure : Transparent but I don't know how thats happening.
     
    Last edited: Feb 7, 2011
  2. souperdave

    souperdave

    Joined:
    Jan 7, 2011
    Posts:
    7