Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to get my finger or mouse position to drag IMGUIContainer ?

Discussion in 'UI Toolkit' started by MrZzzero, Aug 24, 2022.

  1. MrZzzero

    MrZzzero

    Joined:
    Dec 9, 2016
    Posts:
    67
    I found that its better to use RagisterCallback function to detect touches and clicks in uiTool kit

    myIMGUIContainer.RegisterCallback<PointerDownEvent>(ev => SelectStatement(ev));

    but how i can detect my finger or mouse position while it moves throught my game screen so that myIMGUIContainer element will follow it? i think there is no function in event to get that . any help ?
     
  2. MrZzzero

    MrZzzero

    Joined:
    Dec 9, 2016
    Posts:
    67
    No answer ? So uitool kit isnt ready ? No clear complete documentation ?