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
I implemented this in my LayerMask branch with [Layer(mask=true)] or [SortingLayer(mask=true)]. There is also a [XRILayer(mask=true)] for the XR Interaction Toolkit in the LayerMaskXRI branch.
It should also be easy to add new LayerMask types, you just have to subclass BaseLayerAttribute and provide correct implementations for:
string[] GetLayers();
int NameToLayer(string layerName);
string LayerToName(int layer);
Might make a pull request later, but it doesn't look like the owner is active anymore...
LayerMaskAttribute
would decorateint
fields, with the ability to generate a layer mask. The value could be used for raycasting, for instance.This would look like
EnumFlagsAttribute
, applied to the layers logic.What do you think about it?
Again, I can propose an implementation.
The text was updated successfully, but these errors were encountered: