Unity/C# Find object and get component
问题 This should be an easy one: GameObject myCube = GameObject.Find("Cubey").GetComponent<GameObject>(); just kicks up error CS0309: The type UnityEngine.GameObject must be convertible to UnityEngine.Component in order to use it as parameter T in the generic type or method UnityEngine.GameObject.GetComponent() Normally the errors Unity displays are useful, but this is just confusing. Are cubes not GameObjects? Any pointers would be appreciated (no pun intended). 回答1: An easy mistake, been there..