Getting back into it

I’ve been away from Unity for a while, and now am coming back to get a fresh start. It’s amazing how simultaneously hard it is to get my brain back into it, but also – how much clearer some of the solutions are.

Yesterday I started cleaning up one of my apps to delete all scenes, prefabs, scripts, and assets in general that aren’t necessary for it. I had made the horrible mistake of merging ALL OF MY STUFF EVER in an attempt to make ONE BIG APP for the kiddos I work with. This may have been a good idea for that summer program last year, but it certainly isn’t the right way to make an app.

Today I’m continuing to clean it out, and considering ways to redo the whole thing.

This website I came across in the past (but honestly didn’t use much of bc I didn’t understand everything) is very helpful, and this time I’m trying to go through and understand the advice:

50 Tips for Working with Unity (Best Practices)

The point I’m working on now is – how to make scenes. Since you can’t have nested prefabs in Unity, how can I make my prefabs arranged in the same way in each scene? There’s some stuff about prefabs being linked that I don’t quite get, so I need to keep working on this.  [this is a start to explaining it, but honestly I’m still not there in terms of understanding: http://answers.unity3d.com/questions/761454/what-does-it-mean-to-link-prefabs.html]

The internet seems to strongly advise against using a 3rd party thing to force Unity to have nested prefabs.

A lot of the advice around this says something along the lines of “use your scenes as a second-level prefab”. Not quite sure how to do this, since each of my scenes uses the same template, but has some key differences.

One way:

  • have it load the same scene, but depending on the Game Manager’s count of “level”, apply scripts to add or take away components that it needs
    • this honestly feels pretty complicated for me right now, particularly because I would need it to input text from a spreadsheet. I’ve done this in the past, but given that I’m trying to get this in the app store quickly, and reluctant to introduce features that will add complications.

Another way:

  • Make a scene exactly how I want it, then duplicate it and adjust it for all the other scenes.
    • This requires having my prefabs linked up well so that when I change a prefab, it changes across scenes (which I need to do anyhow).
    • This won’t help with prefab placement, since it doesn’t keep transform locations.
    • This feels frustrating because I want a template that when I change it will affect all scenes. I so badly want a scene prefab! There must be a way to do this better than I’m doing it.

Also oh god I forgot what a class was. Maybe this time when I learn it it’ll stick better and I’ll understand it more.

Another set of things I don’t fully get, to come back to later:

http://answers.unity3d.com/questions/663650/levels-scenes-or-gameobjects.html

Okay, this one is encouraging someone to just make a scene each for each level. As a beginner, this feels right. I’m going to go back to this and see if I can hack around the problems I’m having with it: [http://answers.unity3d.com/questions/1089267/multiple-levels-best-practise.html]