Layer mask control

I’m a bit frustrated by the fact that, while there is a LayerField control, allowing the selection of a specific layer, there is no LayerMaskField, allowing the selection of a layer mask.

Is there something I’m missing, or some work-around if I’m needing to integrate this into a custom inspector?

I’m looking for this as well. I found a Unity Answers post where a guy rolled his own, but that seems silly since it exists in the automatic inspector when no custom script exists.

EDIT: I didn’t mean to say the code at the link is silly. I meant the need to create it is silly on Unity’s part. The code works great. No comments, but works. The only edit I made was to add a break in the first loop if it sets the string to “Mixed” since I didn’t see a reason to keep checking (fast enough to ignore this though, I’m sure)