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 28, 2015 at 08:59 PM · workflow

How to work with Unity?!

Hey guys, i have started working with Unity several weeks ago. I have some knowledge about OOP and have worked with some languages and platforms before. This is the first time I am working with scripts. I started to watch several tutorials and most of them deliver quite nice and sophisticated informations, but what I'm missing is how to manage my project, which led me to the following problem:

I'm working on a puzzle game. Each level is basicly structured the same way. The only difference is the number of GameObjects and some level-dependend informations, like how many moves the player already made. So beside a GameManager object, that manages comprehensive data and that i wouldn't allow to get destroyed, i have a LevelManager script. So every level has basicly the same LevelManager script. On top they have a LevelData# which contains the level-dependend informations and adds every GameObject of the current Level(Scene) to a list (which is a field of LevelManager) in the OnAwake method. The thing is, that I'm accessing this list from yet another script in its Update method. Unity throws plenty NullReferenceExceptions, telling me, that the list has no elements in it.

Besides the fact, that i would like to know, why this problem occurs, i moreover want to know, if this approach is ok (since it seems pretty cluttered to me)?! I read articles about Inheritance vs Composition referred to this problem, but this whole workflow with scripts and the unity editor seems not to apply fully to that.

I would really appreciate any kind of help. Maybe you guys have some references for me, that would enlighten me.

Regards

Comment
Add comment · Show 1
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 Beennn · Sep 30, 2015 at 12:30 AM 0
Share

Can you post the scripts so we can see what you're doing?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by IbrahimK · Sep 30, 2015 at 07:44 PM

Hey Beennn,

first of all, thank you for your reply. Seems like nobody wanted to read the long text.

I actually solved the problem. It was a stupid mistake, that i made. One of my GameObjects was missing the Script i was trying to access in a loop. So yeah...

Besides of that, I have like 3784583495 Questions regarding how to work with Unity. And I sadly don't know anyone who works with Unity. I was wondering, if I should post the questions here, though not expecting them to get answered. What would you suggest?

The Questions would be like:

  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?

  2. 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).

  3. 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. 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.

etc.

I will try to start a new Question. Maybe you have the knowledge and the time to answer some of these? Or maybe a reference, where I could find answers to those questions?

Best regards,

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

29 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

Related Questions

Roguelike: workflow working with many map generators and tile sets 0 Answers

Workflow ideas needed 0 Answers

Dedicated audio person workflow 0 Answers

LoadAssetAtPath doesn't seem to work for ScriptableObject asset in AssetPostProcessor 1 Answer

How to define a function seperate from the class in which it must called? 1 Answer


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