Search Unity

How to make an LCD Screen - Advice

Discussion in 'General Graphics' started by nicolaszaatar, Sep 18, 2021.

  1. nicolaszaatar

    nicolaszaatar

    Joined:
    Aug 23, 2021
    Posts:
    3
    Hello there,

    I'm still new to Unity and would like to make an LCD screen that displays some texts that change, a timer, and some animations on it. I thought of 2 ways of solving this but not sure which is the best one:

    1. Either create the text and timer as prefabs and place them on a box (screen)
    2. I don't know if this is doable but create a box and assign a dynamic material to it?

    Thank you!
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,118
  3. nicolaszaatar

    nicolaszaatar

    Joined:
    Aug 23, 2021
    Posts:
    3
    Thank you for the prompt reply! Is there a way to change the text dynamically though if I end up using 1 material for the entire screen? I'm aiming for something like this:

    upload_2021-9-18_16-20-46.png

    The timer should be activated with a C# script and the text should be able to change as well.

    My main question is should I create each element alone (Text and timer) or can I have a dynamic material that I assign to a box where the texts get updated through a script?
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,118
    separate timer and text, yes easier,
    if you want them to appear at some 3D object, can make the canvas world space.

    or if you want to make that whole view as a texture,
    could use RenderTextures, then that texture could be assigned to 3d objects.
    https://docs.unity3d.com/Manual/class-RenderTexture.html
     
  5. nicolaszaatar

    nicolaszaatar

    Joined:
    Aug 23, 2021
    Posts:
    3
    Thank you so much! I will try it out
     
unityunity