Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 bobmoff · Sep 23, 2014 at 09:24 AM · 2duicanvaspixel

A game entirely made with the new UI ?

HI, I have been doing games in SpriteKit, Cocos2D, UIKit, Flash before but am new to Unity. I want to to create a 2D game with large (perhaps x3 or x4) pixels. It is a strategy game with a scrollable hex tile map (about 150x150 tiles). The game doesnt have any physics involved, but I would like to have some small effects when the units are battling maybe. The game is for mobile, and maybe web, osx and win also later. I am using 4.6.0beta18. The camera will probably be orthographic ?

I am now a little confused as if to use UI-GameObjects (Rect Transform) or regular GameObjects (Transform) . What are the PRO's and CON's of using the different types ? Is there some things that CANT be done on a rect transform, like some kind of effects or something ?

Is there any implications of using one or the other when considering that would effect the enlarged pixel art style ? Maybe some enlargment stuff with the camera ?

I would like to be able to do:

  • Slide in/out menus

  • Particles (tiny sparks here and there)

  • Effects with shaders (tinting, blur)

  • Tap objects to triggers events (game logic)

  • Scroll a map with tiles larger than the screen size (ScrollRect looks nice)

  • Pixel perfect (if possible)

Comment
Add comment · Show 4
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 bobmoff · Sep 23, 2014 at 11:02 AM 0
Share

so you would recommend going all in on the UI system ?

avatar image Carlos Correia · Oct 17, 2014 at 02:30 PM 0
Share

Hi, did you come to any conclusions about this? Can you share your thoughts?

avatar image bobmoff · Oct 17, 2014 at 10:21 PM 0
Share

Hi Carlos! I tried stuffing a bunch of tiles inside a ScrollRect and got a lot of issues with lag which I could not really figure out so I witched to regular 2d sprites and moved the camera ins$$anonymous$$d, and now the movement is smooth. $$anonymous$$ore info on the subject here http://answers.unity3d.com/questions/801417/translating-a-game-object-with-many-child-objects.html and also here: http://forum.unity3d.com/threads/is-scrollrect-insufficient.263833/

avatar image Kiwasi · Oct 17, 2014 at 10:29 PM 0
Share

I have seen lots of complaints around related to the speed of moving rectTransforms as opposed to regular Transforms. It may be possible to build a full game with later updates. But at this stage I would not suggest doing it.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Slev · Sep 23, 2014 at 12:54 PM

All of these things can be done using solely the new UI system. However, a lot of the actual game backend would need real code. But every UI feature you described can be handled almost entirely without any code. (The scroll rect stuff would probably require a little bit of code to manage.)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

UI Elements Not Rendering Properly on Android 1 Answer

Choosing between canvas and normal 2D gameobjects 0 Answers

Antialiasing As Post Effect Blurring UI Text 0 Answers

LineRender width not consistent across resolutions 1 Answer

Unity 4.6: Position jumps when switching Canvas render mode from Overlay to camera in code 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