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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Create a 2-sided Sprite/Image ?

Discussion in 'General Graphics' started by Althos, Dec 6, 2019.

  1. Althos

    Althos

    Joined:
    Sep 23, 2019
    Posts:
    17
    Hi, I'm trying to create a simple 2-sided card for a game, but using sprite doesn't work properly, is there a (relatively simple) way to create a 2-sided sprite or should I use something else ? If so, what should I use ?

    Thanks a lot for your help!
     
  2. APSchmidtOfOld

    APSchmidtOfOld

    Joined:
    Aug 8, 2016
    Posts:
    4,473
    You want the two sides of a sprite to have a different image, is that it? It's been a long day and I'm tired but I would:
    1. add one of the images to the sprite,
    2. use "SpriteRenderer.flipX" and apply another image by script to the other side when the sprite is flipped.
    Maybe you could also put two sprites back to back, each with an image and make a prefab; I'm not sure about that though.
     
  3. jake100

    jake100

    Joined:
    Jun 14, 2020
    Posts:
    1
    I couldn't get 2 images to not interfere with each other so I put them in a prefab moved them apart, then I placed a cube inside with an invisible material attached, turn down the alpha to make the material invisible and I don't know how but that worked for me.