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 /
  • Help Room /
avatar image
0
Question by IbrahimK · Sep 30, 2015 at 07:50 PM · unity 5workflowbest practices

Unity - Best practices

Hey guys,

in another question of mine, i kinda asked the same, but barely someone answered (maybe I didn't wait enough?). I'm trying to be more specific this time.

I started to work with Unity and am really not sure, what the best practices are. So i have like 99834983 questions.

  1. Should I use the inbuilt UI-System(if so, should i import UI graphics as sprites? Is it the right approach?), use external libraries or create a GUI trough script? Regarding the GUI I have like plenty other questions. I'm not sure if i should use a Texture/Sprite or the built in Text GameObject....stuff like that.

    1. I made a simple circular movement for a GameObject in script, why is it causing spikes(i have read several things about this already, but none of those answers were satisfying).

    2. How to import UI Graphics? Get a regular size and rescale them, or is it a better approach to create graphics the size I'm gonna use them on my maint arget device. If so, there are two problems. I would be forced to customize every texture everytime i want to make minor changes and since I'm developing for mobile devices, it will be rescaled anyway. The worst thing is, that all this rescaling causes fragments, which is really annoying and I'm not sure what to do about.

Best regards,

Ibrahim

Comment
Add comment · Show 2
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 getyour411 · Oct 01, 2015 at 05:40 AM 0
Share

You should post one question per, as outlined in the User Guide for good questions. For your circular movement issue, you should post the code otherwise it's all just guess work.

avatar image hexagonius · Oct 01, 2015 at 08:07 AM 0
Share

there's also the forum for general discussion

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by IbrahimK · Oct 01, 2015 at 09:22 AM

hexagonius, since it said "This is NOT a support forum...", i thought i shouldn't ask a question there. But you are actually right. Since some of the questions don't refer to a individual problem. I will make a post there regarding common best practices.

getyour411, I'm sorry. I'm a beginner with Unity and actually worked with some platforms before, like the Android SDK. This is also the first time for me to use a Graphics-Engine(Library)intensively. I have some knowledge about OpenGL(learned it in Uni). Since the things that I'm trying to achieve and that cause problems basicly refer to 2D and/or GUI. Those are pretty simple things and I was really suprised by all the problems that I faced. So I actually thought, that there is some general knowledge that I was missing and that I would get a reference or a simple explanation that would help me out. Regarding the CircularMovement probem:

     public Vector3 center;
     public float degrees = -65.0f;
     private Rigidbody2D myRigidbody2D;
 
     private Vector3 v;
 
     void Start()
     {
         myRigidbody2D = this.GetComponent<Rigidbody2D>();
         center = Vector3.down;
         v = transform.position - center;
     }
 
     void FixedUpdate()
     {
 
         v = Quaternion.AngleAxis(degrees * (Time.deltaTime * 2.5f), Vector3.forward) * v;
 
         myRigidbody2D.position = center + v;
         transform.position = myRigidbody2D.position + myRigidbody2D.velocity * (Time.time - Time.fixedTime);
     }

It is a 2D game and this causes some minor spikes. Actually, you won't see it, if you don't pay attention, but once seen, it is really annoying. It is every here and then, that it happens.

Thanks in advance, Ibrahim

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

33 People are following this question.

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

Related Questions

Unity MVC animation coroutine 0 Answers

[Newby] Need help with navigating between a previous and next position 1 Answer

Is it possible to use Unity without Unity installed on device? 2 Answers

Global Variables for Scripts in untiy c# 1 Answer

Can I export soft bodies from blender into unity. 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