Potential fix for LayerMask issue where the last layer (id 31) cannot be set.

NodeCanvas Forums Support Potential fix for LayerMask issue where the last layer (id 31) cannot be set.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13578
    lam
    Participant

    I’ve noticed an issue where the last layer mask id does not seem to be set or update the last layermask entry.

    If a fix could be added to the next version that would be great.

    Currently using:
    NodeCanvas version: 2.8.2
    Unity 2018.2.7f1

    A potential workaround that I’m currently using is to replace the function in EditorUtils_GUIEditors.cs:

    This uses a newly exposed UnityEditorInternal layermask api to handle the layer masking logic. Note that I haven’t fully tested this new approach for bugs and because it’s a unity internal function, it would be hard to fix if there are bugs in Unity’s implementation.

    Hope this helps anyone that noticed this issue with layer masks!

    #13586
    Gavalakis
    Keymaster

    Hello,

    Thanks for the report. I haven’t notice this problem before until now.
    Your fix is also great as well 🙂

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.