Layer picker in Area Clocks

Giovanni Sales 1 month ago • updated by Lazlo Bonin (Lead Developer) 4 weeks ago 1

Make it possible to choose the layers that Area Clocks will affect in the Area Clock itself instead of having to add new layers and change the Physics settings every time different things need to be affected by a different Area Clock.

Currently, having the following area clocks:
Area Clock A: affects players, enemies, NPCs, projectiles, everything
Area Clock B: affects enemies
Area Clock C: affects players
Area Clock D: affects players and enemies
Area Clock E: affects player projectiles and enemies projectiles

I'd have to create 5 different layers, one for each of these clocks (not to mention the layers for players, enemies, etc) so I can customize the Physics settings accordingly.

Using the default layer picker from Unity Inspector I could make the Area Clock layer able to interact with all the other layers in the Physics settings and then pick the specific layers I want to be affected in the Layer Picker in the editor. This way I would only need one Area Clock layer.

In my current project I can't spare any Layer to use on Area Clocks so I'm trying to work on a custom editor just for this, but I have no experience in custom editors.

Chronos Version:
Unity Version:

Hi Giovanni,

Thanks for the suggestion. Unfortunately this would be a major, breaking change, so it will not be implemented. The Area Clocks rely on Unity physics detection, which is why they require proper layer setup. I do apologize for the inconvenience.