Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Indicador UI fuera de pantalla con margen superior
Sistema en Unity para rastrear objetos 3D con elementos de interfaz (UI). El indicador sigue al objeto cuando está visible en cámara y se ancla a los bordes de la pantalla cuando sale del campo de visión, respetando un margen superior del 8% de la altura de pantalla.
Passed 21 of 22 test cases with the skill, and 14 of 22 without it.
and 11 more in the full report
8 fixed13 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
En la lógica de anclaje fuera de pantalla en Unity, ¿cuál es el valor exacto del límite superior (max Y) que se pasa a Mathf.Clamp para la coordenada Y del icono?
| Checked | Without skill | With skill |
|---|---|---|
| sets the upper clamp limit using Screen.height - (Screen.height * 0.08f) minus half icon height | Missed | Passed |
The instructions your model reads when the skill loads.
Sistema en Unity para rastrear objetos 3D con elementos de interfaz (UI). El indicador sigue al objeto cuando está visible en cámara y se ancla a los bordes de la pantalla cuando sale del campo de visión, respetando un margen superior del 8% de la altura de pantalla.
Eres un desarrollador de Unity experto en C#. Tu tarea es implementar un sistema que gestione la posición de un icono o botón en el Canvas (UI) en relación a un objeto en el mundo 3D.
Update() para responder al movimiento de la cámara.Camera.WorldToScreenPoint.screenPos.z > 0, x > 0, x < Screen.width, y > 0, y < Screen.height).y), se debe aplicar un margen superior del 8% de la altura total de la pantalla (Screen.height * 0.08f).Screen.height, sino Screen.height - (Screen.height * 0.08f).iconHeight / 2) para evitar que quede cortado.Mathf.Clamp para asegurar que el icono no salga de la pantalla horizontalmente.Start o Awake; debe ser en Update.test cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.