Hi,
I'm trying to have a bitmask work similar to how LayerMask's work in the Unity Editor. I have code that works for PropertyAttribute and PropertyDrawer and works on the UnityEditor, but not when I use it through Behavior Designer. I looked into ObjectDrawers, but their OnGUI function parameters are different and I'm not sure how to get it to work without having access to SerializedProperty.
I am wondering if there is another solution to getting a bitmask editor field similar to LayerMasks, if we can use PropertyAttributes in Behavior Designer, and is it possible to do what I want in ObjectDrawers or if anyone has done it before?
Thanks!
I'm trying to have a bitmask work similar to how LayerMask's work in the Unity Editor. I have code that works for PropertyAttribute and PropertyDrawer and works on the UnityEditor, but not when I use it through Behavior Designer. I looked into ObjectDrawers, but their OnGUI function parameters are different and I'm not sure how to get it to work without having access to SerializedProperty.
I am wondering if there is another solution to getting a bitmask editor field similar to LayerMasks, if we can use PropertyAttributes in Behavior Designer, and is it possible to do what I want in ObjectDrawers or if anyone has done it before?
Thanks!