Search Unity

The Typr UnityEngine.Rect does not contain 3 arguments

Discussion in 'Unity Certification' started by Phanthom_King, Nov 9, 2018.

  1. Phanthom_King

    Phanthom_King

    Joined:
    Nov 23, 2016
    Posts:
    1
    Hi, i am working on an drag and drop system and i can't understand the problem.

    My script:
    Rect dragIconpos = new Rect(Event.Current.mousePosition.x - BoxWidth / 2, Event.current.mousePosition.y - BoxHeight / 2, BoxHeight) :


    On an referencescript its work why not by me.