How to fix "the type or namespace ".." could not be found" in unity
my script has a problem. the console warns • "the type or namespace "FixedButton "could not be found" • "the type or namespace "FixedTouchField "could not be found" •There are no other errors other than those listed above Though I have downloaded and installed unity standard asset 2018 and joystick pack
My Script :
Or
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityStandardAssets.Characters.ThirdPerson; public class ThirdPersonInput : MonoBehaviour { public FixedJoystick LeftJoystick; public FixedJoystick RightJoystick; public FixedButton Button;
public FixedTouchField TouchField;
protected ThirdPersonUserControl control;
protected float CameraAngle;
protected float CameraAngleSpeed = 0.2f;
// Start is called before the first frame update
void Start()
{
Control = GetComponent<ThirdPersonUserControl>();
}
// Update is called once per frame
void Update()
{
Control.m_Jump = Button.Pressed;
Control.Hinput = LeftJoystick.inputVector.x;
Control.Vinput = LeftJoystick.inputVector.y;
CameraAngle += TouchField.TouchDist.x * CameraAngleSpeed;
Camera.main.transform.position + Quaternion.AngleAxis(CameraAngle, Vector3.up) * new Vector3(0, 3, 4);
camera.main.transform.position = Quaternion.LookRotation(transform.position + Vector3.up * 2f - Camera.main.transform.position, Vector3.up);
}
}
Your answer
Follow this Question
Related Questions
Code works in editor, but not on Android device(audio mixer) 1 Answer
Unity3d 5 failed to re-package resources (Android build problem) 1 Answer
Text Adventure help! 0 Answers
Can someone help me with my third person camera? 0 Answers
Unity2d-Android-C#: How to convert current movement script to be used for touchscreen? 1 Answer