模型增加touch事件报错,cannot read properties of null (reading 'cameraPriority')

  • Creator 版本:3.6.1

  • 目标平台:H5


    cocos creator 3.6.1 给模型监听touch事件报错 Cannot read property ‘cameraPriority’ of null,小白你刚开始学习cocos :sweat_smile:

https://docs.cocos.com/creator/manual/zh/engine/event/event-input.html?h=射线

1赞