Hi, i need help making a script that draws a white line araound an object. any suggestions will help.
1 Answer
1I presume by “line” you mean “ring”?
Just draw a white ring in a utility like GIMP, paint .net, photoshop, etc., make the background and center transparent, import it into your project and set it as the texture of a transparent/diffuse or a transparent/cutout material, and then create a prefab that has that material on a plane. In your script, instantiate the prefab at the object’s position and scale it to the size that you want, and then rotate it to face the camera on update (which is called billboarding).
If you want an outline, there are many posts out there on the subject: