New answers tagged c#
15
votes
Accepted
Destroying the parent when all children are destroyed
After searching for a better way, I came across OnTransformChildrenChanged:
The following changes to direct children of a GameObject invoke
...
1
vote
How do big open worlds handle Object Pooling?
What you need to consider is which objects in your game only differ by data and which differ by components.
For example, when you have a lot of projectiles in your game which only differ by speed, ...
3
votes
How do big open worlds handle Object Pooling?
One important consideration to add is that most open world games are not built in a managed language like the C# used in Unity.
In a managed language with an automatic garbage collector, creating and ...
2
votes
What’s the correct / idiomatic way to pause a game in Unity?
I usually use the system you described first - set Time.timeScale to 0 and provide an easily accessible bool to check if the game is paused.
Note that this can get ...
0
votes
How do big open worlds handle Object Pooling?
many different weapons with many different bullets. Do you have to create one pool for each? Maybe not for all bullets. A small handgun and a weapon that shoots faster will probably have almost the ...
Top 50 recent answers are included
Related Tags
c# × 8483unity × 5728
xna × 1400
2d × 485
monogame × 403
collision-detection × 333
physics × 278
xna-4.0 × 260
rotation × 242
movement × 194
camera × 188
3d × 179
mathematics × 168
animation × 161
gui × 151
input × 132
architecture × 111
vector × 108
shaders × 107
sprites × 106
transformation × 105
optimization × 102
android × 100
raycasting × 95
gameobject × 95