Receive touch events at SKScene AND SKSpriteNode in SpriteKit

别等时光非礼了梦想. 提交于 2019-12-11 12:55:06

问题


Building a UI with buttons as SKSpriteNode's. Button sprites receive touch events to handle special effects (elastic scaling effects) But I need the SKScene to handle the touch events at the same time to handle UI navigation logic.

How would be possible to both (sprite AND scene) to handle these touch events?

来源:https://stackoverflow.com/questions/34987142/receive-touch-events-at-skscene-and-skspritenode-in-spritekit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!