Jump to content
  • Advertisement
Sign in to follow this  
Taylor Ringo

Unity 2D in Unity

This topic is 2298 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey. what are the best learning resources for 2D development in Unity? i Mean Completely 2D not no 2D angled camera with 3D models crap. I need a tutorial for a 2D side scroller platformer type, and it could either C# or UnityScript, because I am really getting both languages down pact.

Share this post


Link to post
Share on other sites
Advertisement
Google is your friend. Just searching "Unity3d 2d tutorial" yields some usable results.
At least you will need some kind of sprite manager because unity3d itself doesn't offer one. There are a few in the asset store.

Share this post


Link to post
Share on other sites

Hey. what are the best learning resources for 2D development in Unity? i Mean Completely 2D not no 2D angled camera with 3D models crap. I need a tutorial for a 2D side scroller platformer type, and it could either C# or UnityScript, because I am really getting both languages down pact.


Asset store as mentioned above. Only free examples included with Unity use 3d models as 2d.

Basic way to set up sprites in Unity is using a GUITexture and offset the background based on input to slide the frames. Have to google it, but they happen inside GUITextures which should give you some direction.

Here's a thread on doing it http://forum.unity3d.com/threads/19072-Hint-Sharing-clean-2D-sprites-using-GUITexture

Share this post


Link to post
Share on other sites

Basic way to set up sprites in Unity is using a GUITexture and offset the background based on input to slide the frames. Have to google it, but they happen inside GUITextures which should give you some direction.


Which is a simple way to kill performance. Unity GUI Issues one draw call per GUI element which is highly inefficient. That's the reason there are so many sprite managers and GUI systems out there for Unity.

e.g:

http://www.anbsoft.com/middleware/sm2/
http://www.tasharen.com/?page_id=140

Share this post


Link to post
Share on other sites

[quote name='lmbarns' timestamp='1333298097' post='4927204']
Basic way to set up sprites in Unity is using a GUITexture and offset the background based on input to slide the frames. Have to google it, but they happen inside GUITextures which should give you some direction.


Which is a simple way to kill performance. Unity GUI Issues one draw call per GUI element which is highly inefficient. That's the reason there are so many sprite managers and GUI systems out there for Unity.

e.g:

http://www.anbsoft.com/middleware/sm2/
http://www.tasharen.com/?page_id=140
[/quote]

The link I posted shows all GUITextures being drawn in a single call. GUITexture is far more efficient than any other gui elements in Unity as it's not drawn every frame.

edit:: Actually drawing all texture2d into 1 single GUITexture call.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!