- Home /
Importing image from photoshop to unity?
I have imported an image from Google to photoshop. When Iam trying to cut the background of that picture export it as png to Unity it stil shows the background/ white background (or something else thats not right). So how do u import an edited image that has those black and white squares (see random image) to Unity. Thank in advance!
Answer by Casiell · Mar 22, 2019 at 03:38 PM
I assume you want those squares to be transparent, not squares? Try changing import settings in Unity, there is a texture type you can change (probably to Sprite (2D and UI) or you can play around with other settings like Alpha Source or Alpha Is Transprency
Do u maybe now how I can add these images as independent objects in my scene. So without attaching them to an object so I can rotate the image on the wall without having to move the wall or frame, Or attaching it to an object that is transparent and what is only showing my image. @Casiell
As @JonPQ said, create a 2d->Sprite object and assign your image in the "Sprite" field in the inspector. If you drag your image to your scene Unity should do that for you, just be careful not to drag your image to another gameobject
create a 2d->Image object or for something in 3d... make empty game object, then add component SpriteRenderer, and drag your sprite or material onto that. You can move / rotate / scale sprite renderer objects around as you please in 3d space.
Sounds like you could benfit from going through the unity tutorials. https://unity3d.com/learn/tutorials