Hot answers tagged

4 votes

How to clean up list entries when objects are destroyed in Unity?

The best way that I came up with is, according to the observer pattern, to notify all classes where the object was stored about its destruction and remove references to it from there. That's what I ...
Kevin's user avatar
  • 4,961
2 votes

Why is my enemy in unity 2d not moving?

Use formatted text instead of an image. In the OnEnable() and OnDisable() functions, you used ...
sammyiscuul's user avatar
1 vote

Getting smallest possible build filesize on Win build (other than optimizing assets)

Without changing any build settings and fully empty projects, a minor increase in the game engine can result already in a bigger build size due to new features, bugfixes or other automatically ...
Zibelas's user avatar
  • 3,373

Only top scored, non community-wiki answers of a minimum length are eligible