- Home /
error CS0266: Cannot implicitly convert type `UnityEngine.Component' to `iTween'.
This is Coding part of my program: public void SkipReplayCalled () { AchievedIDs = new ArrayList(); isAnimating = false; this.gameObject.transform.localPosition = new Vector3(0, 1100, -0.1f);
iTween iTweenHandler = this.gameObject.GetComponent ("iTween");
if(iTweenHandler != null)
{
Destroy (iTweenHandler);
}
}
This is Error I got>>> error CS0266: Cannot implicitly convert type `UnityEngine.Component' to `iTween'. An explicit conversion exists (are you missing a cast?)
How to solve this problem??
Answer by SARWAN · Nov 22, 2012 at 09:28 AM
I got the solution to this problem. If any one having the Same problem means Here is the solution code: iTween iTweenHandler = this.gameObject.GetComponent ("iTween") as iTween ;
Your answer
Follow this Question
Related Questions
iTween and pooled gameObjects 0 Answers
Reuse iTween component for multiple small animations 0 Answers
Can I move a component from one GameObject to another in script? 1 Answer
iTween.ValueTo doesn't work? 0 Answers
2D Animation does not start 1 Answer