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

118
Vistas
Does On Value Change based on framerate?

If I use an event OnValueChanged for an UI element, for example a slider. Is it better (for performance) to listen the slider values change in an Update() or does the event is already based on the same framerate than Update()?

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

0

From the performance point of view, it is better for you to use the event rather than checking the value of the slider everything. Because in Update() your script is requesting the value of the slider and also checking the value of the slider because you want to check whether the value of the slider is changed or not, and an event will only be triggered when the value of the slider is changed.

And by a change in value I mean if you change the value of the slider either from a script or from the user sliding the sliding_head of the slider.

And this is true for all other Unity's UI elements that have OnValueChange() event for us to subscribe to.

I hope that this helps you sort out your confusion.

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