findanyobjectbytype

·Unity/Tip
문제GameManager를 싱글톤으로 선언할 때 FindObjectOfType을 사용했었는데 더이상 사용되지않는다는 경고가 발생했다.warning CS0618: 'Object.FindObjectOfType(Type)' is obsolete: 'Object.FindObjectOfType has been deprecated. Use Object.FindFirstObjectByType instead or if finding any instance is acceptable the faster Object.FindAnyObjectByType'​ 자세하게 마우스를 올려보니 이런식으로 나와있다. Alt+Enter를 이용해서 경고를 해결하려 하면[System.Obsolete]가 추가되는데 이건 추후 글로 쓰겠다. 일단..
석영
'findanyobjectbytype' 태그의 글 목록