Skip to main content

Questions tagged [initialization]

0 votes
1 answer
241 views

Recently, I've been experimenting with different ways of initializing MonoBehaviours (since constructors are not an option), and I reached a solution that I am mostly satisfied with, but there are a ...
DemonicTree's user avatar
0 votes
1 answer
127 views

Example of the situation from the title: I have manager A and B. I subscribe to B's event: <...
hungry91's user avatar
0 votes
2 answers
100 views

I have a world selection scene in which I have GameObjects representing worlds. The GameObjects have default properties when the ...
Bruno's user avatar
  • 111
0 votes
2 answers
127 views

I'm working on a game, where the map is generated, and: The map is generated in an Awake(), so when an object's Start() is called, the map should be fully initialized. But the scene's physics world ...
Tudvari's user avatar
  • 801
2 votes
1 answer
1k views

Most documentation only mentions how to load assets asynchronously, eg with code similar to ...
persson's user avatar
  • 221
0 votes
1 answer
124 views

I know a thing or two about Unity at this point, but I've still lots of subjective, best practice questions, Such as: How do you decide what values are obtained via Start/Awake initialization, and ...
greenland's user avatar
  • 217
0 votes
1 answer
262 views

I made a new class that implements Screen, what I've seen from other people's code is that they create a constructor that takes a parameter of Game game. I did not created a constructor, I think that'...
masterYao09's user avatar
1 vote
2 answers
244 views

I am brand new here, and have been designing a two player card game where from tens of thousands of cards each player selects up to 80 cards DECK, and then fights with those cards. For reference Yu ...
Pratyush Dhanuka's user avatar

15 30 50 per page