Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import 2d Objects to scene 3d in unity3d

I am beginner in Unity3d, I have a game is creating with Scene 3d. I wanna import 2d objects (picture cartoon with *.jpg or *.png) to the Scene 3d in order to save performance. How to do this ?

More detail: My game is 3d but i don't wanna use all objects in game with 3d Objects to save performance. For some objects, I like to create 2d object (pictures) such as money, paper, leaf...Which best way help me to do this???

Thanks.

like image 253
user3421905 Avatar asked Dec 08 '25 19:12

user3421905


1 Answers

The first thing you need to do is the make the image a sprite, you do this by selecting it in the project explorer and changing from texture to sprite then press apply.

Next create a empty gameobject (GameObject -> Create empty)

Next add a sprite renderer to the empty gameobject (Component -> Rendering -> Sprite Renderer)

Next add the sprite to the sprite renderer.

Not sure how well it will work to mix 2d and 3d objects like this, if it doesnt work you can always just create a quad (GameObject -> Create Other -> Quad) and add the image as a texture like if its a 3d object.

like image 186
Imapler Avatar answered Dec 12 '25 05:12

Imapler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!