2
votes
Accepted
Applying localScale to elements in a verticalLayoutGroup with a gridLayout subgroup
Set the pivot X of DecLineUISetup to 0, so that the object is scaled from its left edge instead of its center.
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:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unity × 16744c# × 5730
2d × 1156
shaders × 708
physics × 698
animation × 667
collision-detection × 532
android × 475
camera × 471
rotation × 471
gui × 431
3d × 417
movement × 351
sprites × 344
textures × 309
optimization × 297
unityscript × 294
rigidbody × 264
lighting × 253
mathematics × 250
raycasting × 238
input × 235
blender × 235
rendering × 233
unity-ui × 210