개발자 SPRING
Posts
83 posts[에러&경고 대응] Failed to create agent because it is not close enough to the NavMesh
멀쩡히 잘 구워져 있는 네브메쉬가 있는데도 너무 멀리 있어서 안된다느니 경고가 뜨는데, 무시할 수 없는 것이 이렇게 되면 길찾기를 못해서 NPC들이 제자리 걸음만 합니다.그래서 찾아보니 간간히 문제에 대한 언급만 있고 제대로 된 해결책은 찾아보기 어렵더군요. 마침 일본 커뮤니티에 해결책이 있길래 확인은 아직 안 한 상태에서 기록만 해 둡니다. (1)インスペクターでNavMeshAgentコンポーネントのチェックを外して非アクティブにしておく。 (2)Instantiate()後に、enabled=trueにする。GameObject _prefab = (GameObject)Resources.Load ("Characters/" + _type);GameObject _character = Instantiate (_prefab);
[에러 대응] Ambiguous reference 'preview': CameraMotionBlurEditor.preview, UnityEditor.Editor.preview.
var preview : SerializedProperty; to var preview_ : SerializedProperty; preview_ = serObj.FindProperty ("preview");EditorGUILayout.PropertyField (preview_, new GUIContent("Preview"));if (preview_.boolValue)
[경고&에러 대응] `UnityEditor.EditorUtility' does not contain a definition for `GetAssetPreview'
....#if (UNITY_2_6 || UNITY_2_6_1 || UNITY_3_0 || UNITY_3_0_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9) bodyPreview = (Texture2D)EditorUtility.GetAssetPreview(bodyObject);#else bodyPreview = (Texture2D)AssetPreview.GetAssetPreview(bodyObject);#endif ... #if (UNITY_2_6 || UNITY_2_6_1 || UNITY_3_0 ||
[경고&에러 대응] `UnityEditor.EditorWindow.title' is obsolete
title = "CustomWindow "; -> #if UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_5_0 title = "CustomWindow "; #else titleContent = new GUIContent("CustomWindow "); #endif
[경고&에러 대응] `UnityEditor.EditorApplication.NewScene()' is obsolete
EditorApplication.SaveScene();EditorApplication.NewScene(); -> #if UNITY_2017_2_OR_NEWER //added for unity2017EditorSceneManager.SaveScene(EditorSceneManager.GetActiveScene());EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects);#elseEditorApplication.SaveScene();EditorApplication.NewScene();#endif



