I want to create a map pin. Sort of like a google map pin that will stay static to my 3d object as I rotate around my object.
right now, I am using a sprite but when I rotate around my 3d object, the sprite doesn't show on the other site, I only shows when I rotate my 3d object on the side that the sprite is on.
so what can I do to have my sprite stay static and see through the model when I rotate around it?
Think of a google map pin functionality (but on a 3d object, not on a flat surface)
PS. I also want to point out that I am viewing it in a 3D world, not 2D.
Try a textured quad which faces the camera. In your scene add a 3d-Object>Quad and position it above your 3d object. Make a new material and assign the albedo your Map Pin texture, set rendering mode to transparent, fade, or cutout if you have alpha values less than 1 (i recommend fade). Assign this material to your quad by dragging the material onto the quad gameobject in the inspector. Add a script to your quad called
FaceCamera(or whatever you like), this script will update the forward of the quad's transform to always face the camera. You should now be able to rotate around your 3d object and have the map pin appear above it while facing the camera.edit: To have the map pin always appear through your 3d object you should create a shader using
create>shader>unlit shaderand edit it so that for tags you haveTags { "RenderType"="Transparent" "Queue"="Transparent" }and afterPassbut beforeCGPROGRAMyou addZTest AlwaysandBlend SrcAlpha OneMinusSrcAlpha. You can also rename the shader something likeMapPinShader. Assign this shader to your map pin material by going into the shader drop downunlit>'name of shader'.