Search Unity

How to display a texture2D onto a Canvas?

Discussion in 'Scripting' started by robbiehunt, Jun 29, 2015.

  1. robbiehunt

    robbiehunt

    Joined:
    Jun 14, 2015
    Posts:
    5
    I am capturing some pixels from the screen on a click event on an object in the world and want to display them on a GUI canvas I have sitting in the world. What is the best way to do this in scripting?

    I can't seem to figure out which component to access, or add to the canvas in order to stick my texture2D there.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    jamestrue, Oyedoyin1 and Iridescence like this.