- Home /
'Ghost Graphic' for Buildings
In games like Starcraft 2, there are green outlines of objects marking where the object would be built. How can this be accomplished in a performance friendly way? Are there any guides or resources that could help me make this?
Answer by tanoshimi · Jan 18, 2015 at 09:47 PM
Just change the material on the object to use a semi-transparent monochrome shader. Perhaps http://wiki.unity3d.com/index.php?title=AlphaVertexLitZ ?
Ah, ty. I guess I just disable all script and have only the renderer working?
I would just temporarily instantiate a new gameobject that only has a renderer and meshfilter, and assign the original building's sharedmesh to it. You could set up a prefab for that purpose which already has both components, and the right material with the transparent shader, so you only need to assign the right mesh.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Drawing an overlay grid? 2 Answers
Android build not displaying correctly? (answered) 1 Answer
Why are flight controls speeds changing depending on graphics quality -1 Answers