You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
It's needlessly confusing that collision layers are 1-indexed, but the underlying bits are 0-indexed. They should be consistent.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Start counting layer names at 0 instead of 1, that way it will match the bits, so you don't have to worry about off-by-one errors every time you want to set layer 9 and have to mentally correct your set_collision_mask_bit to hit bit 8 instead.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Just change how the UI counts things, I'm pretty sure that the layer numbers are purely editor-space and don't get reflected in the underlying engine
If this enhancement will not be used often, can it be worked around with a few lines of script?
Core engine functionality, can't be worked around.
Is there a reason why this should be core and not an add-on in the asset library?
This is pretty core to how the editor displays layers.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
A game using collisions layers and masks
Describe the problem or limitation you are having in your project
It's needlessly confusing that collision layers are 1-indexed, but the underlying bits are 0-indexed. They should be consistent.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Start counting layer names at 0 instead of 1, that way it will match the bits, so you don't have to worry about off-by-one errors every time you want to set layer 9 and have to mentally correct your set_collision_mask_bit to hit bit 8 instead.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Just change how the UI counts things, I'm pretty sure that the layer numbers are purely editor-space and don't get reflected in the underlying engine
If this enhancement will not be used often, can it be worked around with a few lines of script?
Core engine functionality, can't be worked around.
Is there a reason why this should be core and not an add-on in the asset library?
This is pretty core to how the editor displays layers.
The text was updated successfully, but these errors were encountered: