Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created variable, reference for LayerMask #103

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants