Is there a way to disable the drag and drop behavior on an object from within a script?
Develop games in your browser. Powerful, performant & highly capable.
The IDragDropBehaviorInstance documentation includes the isEnabled property which can be used for that.
isEnabled
that works!
here is the code for others meet the same question:
const instance = runtime.getInstanceByUid(uid);
instance.behaviors.DragDrop.isEnabled = false;