Search Unity

Image on cubes

Discussion in 'Scripting' started by keepthachange, Jun 12, 2015.

  1. keepthachange

    keepthachange

    Joined:
    Oct 15, 2014
    Posts:
    87
    Im trying to put a image like a picture on 2 sides of a cube front and back
    is there a way to do it? im guessing it would be a script but im am not sure how it would b done can someone point me in the right way?
     
  2. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    You need to make your own cube and add the pictures to the quads on each side.
     
    Last edited: Jun 12, 2015
  3. HiddenMonk

    HiddenMonk

    Joined:
    Dec 19, 2014
    Posts:
    987
    I think the unity default cubes have all their uv's as one square, so what you put on one side will go on all sides. You can either create a new cube via scripting, as well as the uv's, or you can go into a 3d program such as blender, create a cube, uv unwrap it, and set up your textures.
     
    keepthachange likes this.
  4. keepthachange

    keepthachange

    Joined:
    Oct 15, 2014
    Posts:
    87
    Thank you for the video and feedback on this guys (y)
     
    HiddenMonk likes this.
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,744
    Id recommend the Blender route, as @HiddenMonk suggeste dabove: it is a steep learning curve but there are a bazillion tutorial videos, and Unity plays very nicely with Blender, imho.