Does Unity 5 Support ".speed = x;" ?

So i just updated to Unity 5 , And when i loaded in , Every single line that had something like

“GameObject.Find(“name”).animation[“name”].speed = 0.8;” , It says

BCE0048: Type ‘UnityEngine.Component’ does not support slicing.

I have done some research but they all have UnityEngine.Object or similar.

What can i do to make these work? I 100% Need this to work.

Thank you

The problem here is that gameObject.animation is no longer available.

You will need to do the following:

var obj = GameObject.Find("name");
var anim = obj.GetComponent<Animation>();
anim["name"].speed = 0.8f;

In Unity5, they are no longer caching things like: animation, rigidbody, renderer, collider etc.