hello buys,
this might be really a silly question, but I have a geometry uploaded at Runtime and I would like to change its rendering. it’s a 3D model of the room and I would like to set the edge of the models with colour black and the face white. Like a wireframe rendering with filled faces.
Thanks
Giancarlo :razz:
I don’t believe Unity has a wireframe-rendered mode you can turn on through scripting (assuming that’s what you were looking for, since you posted this in the Scripting forum). You’ll need to set up your UVs and/or material textures to create the border outlines on the models.
If the question is how to switch those textures/materials in at runtime (in order to provide both wireframe and non-wireframe render modes), you can do that in script by assigning either the materials or the textures in the materials. You would do that through the model’s MeshRenderer component.
you can try looking into Vectrosity which is used to draw lines either in 2d or 3d and i think it does what you want.