To create automatic doors, follow these steps:
- Select your Door Frame game object, and add an Animator component to it. To do so, click on the Add Component button in the Inspector and choose Animator. Make sure to add the component to the Door Frame instead of the Door (the parent instead of the child). Set the Update Mode of the Animator component to Animate Physics.
- With the Door Frame game object selected, go to Window | Animation to open the Animation View.
- Create a new Animation Clip and call it Closed; this will be our animation for the closed door. To create a new clip, click on the drop-down list below the playback buttons and choose the Create New Clip option.
- Click on the Add Property button and find your Door ...