Swift SKCropNode可以解释一下这种行为吗?

时间:2016-05-17 18:43:15

标签: swift skcropnode

我有一个包含16个SKCropNode对象的网格。每个包含一个用作掩码的SKShapeNode和一个SKSpriteNoe。在未设置遮罩的此图像中,您可以看到所有16个对象都出现在网格中。

https://github.com/soggybag/Grid

Without mask all items appear

When the mask is set some of the items disappear? Seems there is a pattern here: 1, 4, 6, 9, 11, and 14. My guess is 17 would be gone.

互动也很奇怪。点击使图像精灵向下移动并消失,从掩模中移出。您可以点击橙色下方的区域,隐藏精灵,并识别点击事件。

更奇怪的是你没有点击右上方的精灵?

0 个答案:

没有答案