Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Conversation

@jeffcampbellmakesgames
Copy link
Contributor

Summary

This PR adds a LayerMaskVariable and LayerMaskReference type. A LayerMask is a native Unity type used to filter objects for collision detection to specific layers specified in the Flag value. It's useful to be able to encapsulate this value as an asset and share it between multiple things to that they can detect collisions against the same layers and be able to change that value in one place.

image

I did not create an icon for this type, but if you could that would be great!

Testing

Create a LayerMaskVariable asset and make sure that it serializes the value. Other than that, testing should be pretty minimal.

* Created LayerMaskVariable and LayerMaskReference. This type is often used to filter objects for collision detection to specific layers specified in the Flag value.
@DanielEverland DanielEverland merged commit bf68f39 into DanielEverland:master Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants