Created
August 10, 2020 06:36
-
-
Save jimu/fb85aa15c458934a9e79faf40857cef3 to your computer and use it in GitHub Desktop.
Debugging for kayra yorulmaz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void OnDrop(PointerEventData Block) | |
{ | |
Debug("Block.pointerDrag=" + (Block.pointerDrag == null ? "NULL" : "NOT-NULL") + | |
", Block.pointerDrag.tag='" + Block.pointerDrag.tag + | |
"', gameObject.tag='" + gameObject.tag + "'"); | |
if (Block.pointerDrag != null && Block.pointerDrag.tag == gameObject.tag) | |
{ | |
Block.pointerDrag.GetComponent<RectTransform>().anchoredPosition = GetComponent<RectTransform>().anchoredPosition; | |
DragDrop.isInSpace = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
REF: https://gamedev.stackexchange.com/questions/185002/why-wont-my-block-spaces-holders-hold-my-blocks-when-i-drag-onto-them-in-unity