The code : using System.Collections; using System.Collections.Generic; using UnityEngine; 0 references public class Door : MonoBehaviour { 2 references public Animator animator; 0 references void Start() { } // Update is called once per frame 0 references void Uptade() { } 0 references private void OnTriggerEnter(Collider other) { animator.SetBool("isOpen", true); } 0 references private void OnTriggerExit(Collider other) { animator.SetBool("isOpen", false); } }
@userdexter
2 жыл бұрын
Ohh man, this is wonderful! Thanks a lot!
@MREnzoHerbie
6 ай бұрын
Thank You So Much Pablo! I have been suffering with Animation since 2021, because i never knew how to adjust the "Parameters" (the coloured plates), Thank You for this Formidable Video!
@thechristelle4
2 жыл бұрын
thank you for this tutorial :)
@germanbria
Жыл бұрын
Perfect! Thanks!
@naniko1580
2 жыл бұрын
super film
@redsnake224
2 жыл бұрын
My Door is turning in the middle Center not the side center how can i fix that
@aleksababic5900
11 ай бұрын
Hello, I have 1 question. I have done everything like you have ddone in video and animation is working, but bcs of the box collider of the cube and i cant pass through door. Any advice?
@nothing-yj4zj
7 ай бұрын
I know I am late but... Set the trigger box on on the collider so it works like a trigger and not a collider.
@yusufhabib840
2 жыл бұрын
bro, how you change the door's pivot point? anyone know?
@ElectroGamesYT
2 жыл бұрын
Create an empty parent object at your desired pivot point and move that.
Пікірлер: 13