• 카테고리

    질문 & 답변
  • 세부 분야

    게임 프로그래밍

  • 해결 여부

    미해결

매니저 생성 오류

23.02.09 00:47 작성 조회수 186

0

public class TestUnity : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Managers mg = new Managers();
    }

    // Update is called once per frame
    void Update()
    {
        transform.Rotate(new Vector3(1.0f, 1.0f, 1.0f));
    }
}

해당 코드에서 Managers로 생성, 저장 후에 유니티로 들어가면

Assets\TestUnity.cs(10,9): error CS0246: The type or namespace name 'Managers' could not be found (are you missing a using directive or an assembly reference?)

라는 코드가 뜨는데 어떻게 해결해야 할까요.........

답변 1

답변을 작성해보세요.

0

위 내용만으론 알 수 없습니다.
Managers 파일 전체 스샷을 올려주시기 바랍니다.

경우에 따라 이런 저런 설정이 꼬인 문제일 수도 있는데요.
error CS0246 unity 메시지로 구글에 검색해보시는게 빠릅니다.
https://drehzr.tistory.com/990