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 move VisualElement all over the screen with DoTween

Discussion in 'UI Toolkit' started by wphd, Dec 20, 2022.

  1. wphd

    wphd

    Joined:
    Aug 4, 2022
    Posts:
    9
    Hello,

    I want to move a visualElement with doTween but the element's transform.position is null relative to the parent and one can only move within the parent element. How to move it all over the screen?

    Thanks
     
  2. ElevenArt

    ElevenArt

    Joined:
    Dec 12, 2012
    Posts:
    16
    Hi, you can try to change children visualElement position setting from relative to absolute in the USS style.