Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Using Decals for letters, written clues, etc

Discussion in 'General Discussion' started by Johane, Jan 26, 2023.

  1. Johane

    Johane

    Joined:
    Jan 30, 2016
    Posts:
    19
    Hi

    So I've been experimenting with using decals to project props like letters for the players to see and use. It seems useful as it's so easy to change the content and I can blend mats. But it's URP so there's no way of (afaik) using layers so the projection reange can't be easily managed.

    Is there another better way of achieving this?

     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,321
    Most games I've seen use physical objects for props. Meaning a document on a table will be a flat plane with a texture.

    I'm not sure why would you use projectors for props, as this is not what they're for.

    In scenario where you'd need a somewhat dynamic content (meaning a book where you can flip pages, but the text is from a file), the usual idea would be to use render to texture. And using RenderTextures allows you to blend things however you want.
     
    Johane likes this.
  3. Johane

    Johane

    Joined:
    Jan 30, 2016
    Posts:
    19
    Excellent, thank you very much! Precisely the type of answer I was looking for.

    Well... still glad for your answer but because using things in ways they were not meant for is an excellent way of finding new interesting ideas!
     
  4. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,875
    Absolutely can be :)

    But in something as complex as a game engine, it can also be a great way to learn bad habbits, misconceptions or even introduce weird issues ;)

    Therefore it is probably best to stick to learning the right way to use things first, before experimenting :)

    Good luck!