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
0
Question by Jake 7 · Aug 18, 2011 at 04:44 PM · 2dgraphicsobjectseasy

2d graphics

Hi, I'm creating a 2d game and I was originally making my levels and objects out of 3d objects made from blender. Is there an easier way to make 2d graphics and put them in your game instead of hassling with 3d objects?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Anxo · Aug 18, 2011 at 05:38 PM

Hi Jake,

Well Unity is a 3D Engin and all your your objects will always be 3D and in 3D space. But, you can put all your graphics on planes, they are still 3D Objects as they can be rotated in XY and Z but they only have 2 triangles, which minimizes the amount of mesh you have and gives you a 2D Effects.

Note that the planes from the engine have a lot of triangles, if you are planing on using this method, it is a good idea to import a Mesh plane from a 3rd party software like 3ds max or blender with only 1 polygon or 4 vertexes or 2 triangles =) to Unity and apply your textures to it.

I was told that it is best to scale it in the 3rd party software or in the import settings instead of using the In game scale tool. It is one of these things that I have been told, and I dont know why its done but I do it lol.

Comment
Add comment · Show 4 · 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 cookies · Aug 18, 2011 at 06:17 PM 0
Share

I scale in 3rd party as well, I remember knowing the reason somewhere (something to do with performance, obviously). What do yhou mean wiht this line "with only 1 polygon or 4 vertexes or 2 triangles" I usually use a 2d image editor and use that as my texture

avatar image Anxo · Aug 18, 2011 at 07:16 PM 0
Share

"with only 1 polygon or 4 vertexes or 2 triangles" What I meant by that was when you make a plane in a 3D application, you should not teselate it or mesh smooth it. It should only have 2 faces which is equal to 1 polygon with 4 vertexes and would have 2 triangles. The unity provided plane has many triangles.

avatar image Jake 7 · Aug 19, 2011 at 02:12 AM 0
Share

Thanks for your answer.

avatar image Jake 7 · Aug 20, 2011 at 12:26 AM 0
Share

I'm still a little confused. So I made this cactus in photoshop, all it is is a cactus with a transparent background. How would I make it so that 2d cactus is my game. I tried to put it on a plane but for some reason it did not display the whole cactus texture, only a zoomed in part of it. Then I tried putting it on a cube, but I still get the white background of the cube. What am I doing wrong?

avatar image
0

Answer by cfbevan · Aug 18, 2011 at 09:00 PM

Draw texture is your best bet.

http://unity3d.com/support/documentation/ScriptReference/Graphics.DrawTexture.html

Also this may be of interest to you: http://www.youtube.com/watch?v=HXREh5hacV0

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
avatar image
0

Answer by Auzette · Aug 20, 2011 at 01:11 AM

Nod. If it's absolutely 2D only, there's no reason you couldn't bypass the 3D entirely and just use GUI.DrawTexture() calls...

Seems like a lot of extra power doing nothing, though. If you do a 2D game as 3D planes with textures on them, you can do some cool effects and particles that you couldn't easily replicate in the 2D GUI layer.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Importing animations and objects from Blender to Unity. 2 Answers

Small line appearing under my 2D pixel sprite - 2D Graphics not rendering properly 2 Answers

Draw only what is seen in camera 2D? 1 Answer

How can I unfocus and fade my background in a 2D game? 0 Answers

How to create an object from 3D points in a text file?! 2 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