WARNING
Posts
22 posts[에러&경고 대응] `MinAttribute' is an ambiguous reference between `UnityEngine.MinAttribute'
namespace UnityEditor.PostProcessing{ [CustomPropertyDrawer(typeof(UnityEngine.PostProcessing.MinAttribute))] sealed class MinDrawer : PropertyDrawer { public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { UnityEngine.PostProcessing.MinAttribute attribute = (UnityEngine.PostProcessing.MinAttribute)base.attribute; if
[에러&경고 대응] `UnityEngine.Input' does not contain a definition for `lastLocation'
float x = Input.lastLocation.longitude;float y = Input.lastLocation.longitude;float z = Input.lastLocation.longitude; -> iPhone에서의 대응 float x = iPhoneInput.lastLocation.longitude;float y = iPhoneInput.lastLocation.longitude;float z = iPhoneInput.lastLocation.longitude; -> 어차피 lastLocation 부분이 사라져서 다시 바꿔야 함 float x = Input.location.lastData.longitude;float y = Input.location.lastData.long
[에러&경고 대응] 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);
[경고&에러 대응] `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 ||



