Skip to main content

New answers tagged

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 ...
DMGregory's user avatar
  • 141k
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: ...
Critical Angle Studios's user avatar
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 ...
Zibelas's user avatar
  • 5,099

Top 50 recent answers are included