New answers tagged c#
2
votes
Accepted
How to program era-switching in an endless runner?
A simple way you could approach this is to make each prefab contain both "versions" of itself: era 1 and era 2 as separate child objects - one enabled, one disabled. When changing eras, tell ...
2
votes
Unity HDRP custom pass stencil buffer not working in build mode
I figured it out for anyone who stumbles across this post:
In my mask buffer allocation, I have to add a depth buffer size, like so:
...
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
...
Top 50 recent answers are included
Related Tags
c# × 8485unity × 5730
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