My Learning
Pathways
Guided learning journeys
Embark on a guided experience where you unlock free assets, prepare to get Unity Certified, and earn shareable badges to demonstrate your learning to future employers.
Unity Essentials
Pathway
Foundational
+600 XP
2 Weeks
Designed for anyone new to Unity, this guided learning journey is your first step toward gaining the background, context, and skills you need to confidently create in the Unity Editor and bring your vision to life. Experience hands-on learning as you discover what’s possible with Unity and unlock free assets to support you in creating your best projects. Completing this Pathway will equip you with the foundation you need to further your learning and specialize in your area of interest.  
Junior Programmer
Pathway
Beginner
+3000 XP
12 Weeks
Welcome to Junior Programmer! Designed for anyone interested in learning to code or obtaining an entry-level Unity role, this pathway assumes a basic knowledge of Unity and has no math prerequisites. Junior Programmer prepares you to get Unity Certified so that you can demonstrate your job-readiness to employers.
Browse
TOPICS
Editor EssentialsScriptingGraphics & Visual Effects2DMobile & TouchXRPhysicsUser InterfaceFor EducatorsAI & NavigationMore
Pathway
Mission
Course
Project
Tutorial
Guided learning experiences
Gain the Unity skills you need to advance your goals and bring your vision to life.
Unity Essentials
Pathway
Foundational
+600 XP
2 Weeks
Designed for anyone new to Unity, this guided learning journey is your first step toward gaining the background, context, and skills you need to confidently create in the Unity Editor and bring your vision to life. Experience hands-on learning as you discover what’s possible with Unity and unlock free assets to support you in creating your best projects. Completing this Pathway will equip you with the foundation you need to further your learning and specialize in your area of interest.  
Junior Programmer
Pathway
Beginner
+3000 XP
12 Weeks
Welcome to Junior Programmer! Designed for anyone interested in learning to code or obtaining an entry-level Unity role, this pathway assumes a basic knowledge of Unity and has no math prerequisites. Junior Programmer prepares you to get Unity Certified so that you can demonstrate your job-readiness to employers.
Live
TOPICS
Browse All Topics
ALL
TUTORIALS
PROJECTS
COURSES
MISSIONS
PATHWAYS
See all 0 Results
FAQ
Create a Unity ID
Sign in
Charo López Soler
Dec 3, 2019
Hola,
Sobre el problema de ayer, ahora consigo que mi personaje salte sin que vuelva a la posición inicial. En el objeto "Jugador" (primera imagen) he arrastrado "gatear-derecha"(segundo imagen) en el campo Animator del script Player Controller. Con esto me funciona bien el salto.

Lo que me ocurre ahora es, por un lado, que no detecta animator.SetBool("gatear", true) ni animator.SetBool("gatear", false) cuando antes sí lo hacía (imagen 3). El Animator_Jugador (imagen 4) sí lo reconoce porque el personaje hace el idle bien y he probado poniendo el gateo como movimiento por defecto y lo hace.

Por otro lado, ¿de qué manera puedo acceder a GetComponent<SpriteRenderer>().flipX = false;? El Sprite Renderer lo tenía antes en Jugador, pero ahora está dentro del campo Animator del script (segunda imagen). ¿Dónde estoy fallando?

Comments
Charo López Soler
a year ago
Juan Mayor¡Hola Charo! El Animator que tienes que vincular al script es el que tiene las animaciones de la 4a imagen. Y para hacer el flipX, puedes probar a guardar la referencia al SpriteRenderer en una variable por ejemplo así: SpriteRenderer my_sprite = animator.transform.GetComponent<SpriteRenderer>(); luego podrías acceder al método así: my_sprite.flipX(); Otra cosilla, declara la variable junto a las demás e inicializala en el Start() asegurándote de que el animator tiene valor. ¡Un saludo y suerte!
¡Hola Juan! Este fin de semana me pondré a ello. A ver si consigo arreglarlo de una vez ¡¡Muchísimas gracias!!! saludos
0
JM
Juan Mayor
a year ago
¡Hola Charo! El Animator que tienes que vincular al script es el que tiene las animaciones de la 4a imagen. Y para hacer el flipX, puedes probar a guardar la referencia al SpriteRenderer en una variable por ejemplo así: SpriteRenderer my_sprite = animator.transform.GetComponent<SpriteRenderer>(); luego podrías acceder al método así: my_sprite.flipX(); Otra cosilla, declara la variable junto a las demás e inicializala en el Start() asegurándote de que el animator tiene valor. ¡Un saludo y suerte!
0
Copyright © 2021 Unity Technologies
Legal
Privacy Policy
Cookies
Cookies Settings
Language:
English
简体中文
한국어
日本語
Русский
Español
Français
Deutsch
Português