I have unity version 5.5.1f1 Personal
What i want is when running the game that the animation clip will start playing automatically.
I added to the Main Camera a Animation component. Added in the Inspector to the Animation the clip file name Camera_Sign003 also set the Animations size to 1 and added there the same clip Camera_Sign003. Also i set to true the Play Automatically.
I also attached a script to the Main Camera:
public class CameraPoints : MonoBehaviour
public Animation anim;
anim = GetComponent<Animation>();
yield return new WaitForSeconds(anim.clip.length);
I tried to change the script instead IEnumerator just void Start()…but also didn’t work.
And i checked with a break point it’s getting to the line anim.Play…And the length is 10 but nothing happen after 10 seconds.
The animation is a short clip moving the camera from point to point.
The Main Camera is child under ThirdPersonController.
I added to the Main Camera Animation component i tried to add also Animator component to the Main Camera set it to Apply Root Motion.
I tried with or without the script attached to the Main Camera too.
I tried on the Main Camera to check/uncheck the Batching Static.
I checked the animation clip to be Legacy.
I’m out of any ideas.
In the Animation window i can play the clip.
But when running the game nothing.