thumbComponents = GetComponentsInChildren();
guiThumbArea = thumbComponents[0];
guiThumbFinger = thumbComponents[1];
I’m trying to get GUI Texture components for 2 different children. I get the following error with this.
Assets/CharacterController_Gripati/Scripts For WEB/JoystickCircle.cs(70,17): error CS0266: Cannot implicitly convert type UnityEngine.Component' to
UnityEngine.GUITexture’. An explicit conversion exists (are you missing a cast?)
touchPositionFinger = Input.mousePosition - touchOffset;
Assets/CharacterController_Gripati/Scripts For WEB/JoystickCircle.cs(245,53): error CS0121: The call is ambiguous between the following methods or properties: UnityEngine.Vector2.operator -(UnityEngine.Vector2, UnityEngine.Vector2)' and
UnityEngine.Vector3.operator -(UnityEngine.Vector3, UnityEngine.Vector3)’
These are all Vector2’s so I’m not sure what gives.
Any insight into these errors is appreciated!