Tag Info

New answers tagged

0

Actually the 2D-Vector solved the problem, I don't know why, because I think it should do the same but this is my code now and it's working Vector2 target = Camera.main.ScreenToWorldPoint (new Vector2 (Input.mousePosition.x, Input.mousePosition.y)); Vector2 myPos = new Vector2 (transform.position.x, transform.position.y); Vector2 ...


1

I figured out how to fix this myself. This took me days just to find an answer to this question. I hope other people who find this question can use this answer. //My Codes I needs help on. using UnityEngine; using UnityEngine.UI; using System.Collections; using UnityEngine.EventSystems; public class Mouse_Detector_Temp : MonoBehaviour, ...


0

I am not quite sure what this does: if (EventSystem.current.IsPointerOverGameObject ()) But for me it seems as if this method just checks, if the pointer hovers over any gameobject. And as you are checking this, for each card, in each frame, I think it is obvious, why you get that effect. Again: this only holds if the method does what I think. You can ...



Top 50 recent answers are included