LayerMask in blackboard

Hello, working on a custom action I found myself in need of a LayerMask variable.

public BlackboardVariable<LayerMask> Mask;

Doesn’t work - I get an error:

NullReferenceException: Object reference not set to an instance of an object
Unity.Muse.Behavior.LinkFieldUtility.CreateNodeLinkField (System.String label, System.Type type) (at ./Library/PackageCache/com.unity.muse.behavior/Runtime/UI/LinkFieldUtility.cs:25)
Unity.Muse.Behavior.BehaviorGraphNodeInspectorUI.CreateField (System.String fieldName, System.Type fieldType) (at ./Library/PackageCache/com.unity.muse.behavior/Runtime/Execution/NodeInspector/BehaviorGraphNodeInspectorUI.cs:160)
Unity.Muse.Behavior.BehaviorGraphNodeInspectorUI.FindAndCreateField (System.String fieldName, Unity.Muse.Behavior.NodeInfo nodeInfo) (at ./Library/PackageCache/com.unity.muse.behavior/Runtime/Execution/NodeInspector/BehaviorGraphNodeInspectorUI.cs:150)
Unity.Muse.Behavior.BehaviorGraphNodeInspectorUI.CreateFields () (at ./Library/PackageCache/com.unity.muse.behavior/Runtime/Execution/NodeInspector/BehaviorGraphNodeInspectorUI.cs:135)
Unity.Muse.Behavior.BehaviorGraphNodeInspectorUI.Refresh () (at ./Library/PackageCache/com.unity.muse.behavior/Runtime/Execution/NodeInspector/BehaviorGraphNodeInspectorUI.cs:92)
Unity.Muse.Behavior.BehaviorGraphNodeInspectorUI..ctor (Graph.NodeModel nodeModel) (at ./Library/PackageCache/com.unity.muse.behavior/Runtime/Execution/NodeInspector/BehaviorGraphNodeInspectorUI.cs:81)

Presumably this type isn’t supported yet, the question is will it be and can I extend it myself somehow?

Thanks.

Hi @mishakozlov74 , you’re right, this isn’t supported yet. I’m working on adding support for custom types and this should hopefully be out in July :slight_smile:

At the moment there is no easy way for you to extend it, sorry.

3 Likes

Great, appreciate it!

Did this happen? I dont seem to be able to select a layer mask in the UI.

Hi @niuage

Unfortunately, this is not supported yet.

Sorry for the inconvenience.