Search Unity

Mesh disappears when I apply PNG with transparency cutout

Discussion in 'Editor & General Support' started by ridethefader, Feb 17, 2020.

  1. ridethefader

    ridethefader

    Joined:
    Jun 17, 2019
    Posts:
    44
    Im working on a tree leaf material, and the material looks correct in Inspector with the Cutout option selected on the material. But when I apply this material to the leaf geometry cards, they just disappear completely. I find this strange since the material looks totally fine in Inspector, but once applied to the mesh, the geometry goes away. I've tried an Albedo PNG file with transparent background. I've also tried an Albedo TGA file with alpha and also tried Metallic TGA file with alpha. Nothing is working. The mesh just completely disappears when I apply the material to it.

    Any idea whats going on?
     
  2. ridethefader

    ridethefader

    Joined:
    Jun 17, 2019
    Posts:
    44
    Figured it out - the mesh that the Cutout material is going to be applied to, needs to be separated. I had the mesh combined as one mesh. Separating out the section that has the leaf material on it, fixed it.