Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

447
Vistas
Unity Set position of GUI element relative to another element that is on a different canvas

I'm attempting to position a tooltip to be directly below an icon. The structure is:

Main Canvas
- Panel
 - UI Element
Tooltip Canvas
- Tooltip Icon

When mousing over an icon, I'm attempting to set the position of the tooltip to be just under the ui element. How does one get the absolute position of the ui element?

So far I've tried both

float absolute_x = icon.position.x;
or
float absolute_x = icon.anchoredPosition.x;

which only wield the relative position to the main canvas, not the absolute position on the UI.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

First get the Rectransform

public RectTransform UIElement;

then get position relative to the parent canvas

UIElement.localPosition.y
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda