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

466
Vistas
how to use parameter to change scrollbar value in unity?

As u already know , The unity scrollbar value is between 0 to 1 I need a formula to change the value by the parameter I change in the inspector menu, like when I write 5 , the value changes to -5 to +5 , or when I write 10 the 0 to 1 changes to -10 to +10. I created one but its not using parameter Left_Eng = 2.0f * (2.0f * ScrollbarL.value - 1.0f) the formula changes 0 1 to -2 , +2 If anyone have an idea please tell me thanks a lot.

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

0

So you want to map the range [0; 1] to [-x; x], right?

I think you basically already have it

  • [0;1]
  • * 2 => [0;2]
  • - 1 => [-1;1]
  • * x => [-x;x]

So together

var y = x * (2 * scrollValue - 1);
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