- Creator 版本:3.6.2
目前想要實現點擊畫面中的3D物件使其消失
試過網路上提供的透過touch event以及
screenToWorld(UICamera)搭配screenPointToRay(3DCamera)的方式
但好像都會有些微差異
因為我使用RenderTexure來顯示3D畫面
RenderTexture的spriteFrame大小為2048X2048
但在場景中顯示用的Sprite的UITransform設定成width = 2520 height = 2520
所以可能比例上有差距還是甚麼的
還請有經驗的大大提供思路
下面是我的coding
RenderTexture.zip (2.9 KB)