Question by
ismat96 · May 13, 2019 at 03:59 AM ·
unityeditor
Cannot implicitly convert type 'SocketAnim' to 'UnityEngine.Animator'
using System.Collections; using System.Collections.Generic; using UnityEngine; using Vuforia;
public class SocketAnim : MonoBehaviour { private Animator Anim; // Start is called before the first frame update void Start() { Anim = gameObject.GetComponent(); Anim.speed = 0f; }
// Update is called once per frame
void Update()
{
}
public void AnimRotate()
{ Anim.Play("Ani", -1, 0f); Anim.speed = 1f; } }
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612201240im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Crash unity when run in device 0 Answers
Unity Package Manager Error 2018.4.21f1 0 Answers
Why does my generated mesh have an offset? 0 Answers
How To Add Virtual Background to ARKit? 0 Answers