Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw images on Terrain in unity

Tags:

unity3d

I am working on game in unity in which i need some images to be placed on terrain as in the attached image yellow arrows and "P in blue circle" are rendered on surface in unity.

Any idea or method will be appreciated.

Arrows in Unity

like image 656
Muhammad Bilal Avatar asked Apr 18 '13 10:04

Muhammad Bilal


People also ask

How do you create terrain data in Unity?

To begin using the Terrain Editor in Unity, you need to first create a Terrain GameObject. 1. From the top menu dropdown, select: GameObject > 3D Object > Terrain. This will add a new Terrain GameObject into your Scene.

How do I apply textures to existing terrain in Unity?

If you click the Edit Textures button and select Add Texture from the menu, you will see the Add Terrain Texture window. Here you can set a texture and its properties. Depending on the material type you set in Terrain Settings, the color channels of the main texture map may have different uses.


2 Answers

There's no built-in support for decals in Unity. You could just create separate gameObjects with transparent texture and place them above the terrain here, or use one of several packages for decals in Unity Asset Store, like this one. (I have only briefly tried it and can't say anything about it's quality).

like image 198
Max Yankov Avatar answered Oct 02 '22 19:10

Max Yankov


I know it's an old topic - but for those who are still not satisfied:

I would recommend using Easy Decal.

It's a very powerful decal projector. It's easy to use and you can stick decals also on uneven surfaces like bumpy terrains.

like image 39
J.W. Avatar answered Oct 02 '22 20:10

J.W.