Hi, I want to drag a texture group on touch event but only if I touch one of the textures. So, I created a GUI group. But I can’t check if an inner rectangle contains the touch positions. How can I get world position of a rect in GUI Group? I used GUI.DrawTexture to add textures in group. I want to do gui group draggable when I touch rect2.
private void OnGUI(){
GUI.BeginGroup(outerRect);
GUI.DrawTexture(rect1, texture1);
GUI.DrawTexture(rect2, texture2);
GUI.DrawTexture(rect3, texture3);
GUI.EndGroup();
}