Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by jedster1111 · Apr 07, 2010 at 08:24 PM · 2dobjectimportlevel

Importing 2D objects into Unity

Hi everybody, first post here. I started using Unity recently and purchased "Unity Game Development Essentials" which got me from no knowledge in coding to a decent amount in two days. After completing the book, I wanted to start my own simple project, a simple 2D game, the kind where you have to balance a motorbike or some other vehicle up jumps (you know the kind). I immediatly opened up paint.net, hoping that I'd be able to import images into the game world and then give them colliders. I could get them in my assets but not actually into the scene itself. Is it possible to do this? And also, If I can't and I need to make them in an alternate program, which one would be best? (Would wings 3d work?)

Thanks in advance and I'm looking forward to posting here in the future, hopefully I might even be able to help someone else one day.

[edit] Basically, I want the character to be able to roll up and down these hills. I was hoping I could just add the picture to unity and then add colliders to it and then ake a skateboard which would then be able to roll along with it. What's the easiest way to do this because I don't think that you can do this with .png.

alt text

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by wbarrier · Mar 10, 2015 at 03:44 PM

First add the picture. when you add it make sure its set as a Sprite under texture type. Then add a sprite to your scene. Once add go over to the inspector and click the tiny circle beside the blank box beside Sprite. Find your picture and done. You added a picture without the background on it. (Note: Picture must be on that can be viewed without white background)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image OWEN047FTW · Mar 15, 2015 at 08:15 AM 0
Share

Yes, that is exactly how do you it. Worked fine for me. Thanks.

avatar image
1

Answer by Eric5h5 · Apr 07, 2010 at 08:31 PM

You need something to put your images on; Unity is a 3D engine and everything, even 2D, is done in 3D. Make a simple quad in a 3D app and import that into Unity, then drag it into the scene. Then attach a material that has an image to the quad.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jedster1111 · Apr 07, 2010 at 08:34 PM 0
Share

Thank you for you help but the image is an irregular shape and I want to use it as the level floor ins$$anonymous$$d of just an image on a rectangle if you see what I mean.

avatar image Eric5h5 · Apr 07, 2010 at 08:39 PM 0
Share

@jedset1111: I guess I don't see what you mean, since you can still put an irregularly shaped image on a quad. $$anonymous$$aybe you could post some illustrations.

avatar image jedster1111 · Apr 07, 2010 at 09:21 PM 0
Share

I want the quod to match the shape of the picture. Sorry if I'm not making much sense, I'll edit my post above to include picture.

avatar image
0

Answer by e-bonneville · Apr 07, 2010 at 08:32 PM

Well, one of the best programs you can find, and more so because it's free, is Blender, which you can download here.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jedster1111 · Apr 07, 2010 at 09:29 PM 0
Share

Thanks for the comment, I will give this a try.

avatar image
0

Answer by dhendrix · Apr 07, 2010 at 08:46 PM

You may also want to look into the SpriteManager:

http://forum.unity3d.com/viewtopic.php?t=17864

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jedster1111 · Apr 07, 2010 at 09:33 PM 0
Share

Thanks fo the comment but I have to admit, I don't quite understand what he's talking about lol. Would I need this though in order to make a 2D game?

avatar image e-bonneville · Apr 08, 2010 at 02:19 AM 0
Share

I've got no idea either... huh.

avatar image
0

Answer by lblaz7 · Jun 04, 2012 at 07:24 AM

add the image as a .png then make a material with it. Then attach it to a sphere or if you don't want the image to be distorted add it to a cube and attach a sphere collider.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

kite game should be 2D or3d?? 0 Answers

2 colliders on 1 opbject is that possible?? 1 Answer

Duplication Problem. Please help. 2 Answers

Object Colliders 2 Answers

Disable automatic material creation when importing models 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges