Quantcast
Channel: Answers for "GUITexture with Sphere Collider"
Viewing all articles
Browse latest Browse all 4

Answer by Wolfram

0
0
You could compute it directly according to your mouse position, instead of using some pseudo-3D collider functionality of Unity. I don't know the actual syntax, though, although I *do* know the functionality to accomplish the following is provided by Unity. Meaning, this is very raw pseudo-code, which nevertheless should point you in the right direction: if(UnityFunctionThatDetectsWhetherTheGUITextureHasBeenPushed()){ touchDistanceVector=MousePositionXY()-CenterOfGuiTexture(); if(touchDistanceVector.sqrMagnitude

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images