Could not resolve host: C; No data record of requested type
Unity3D/Problems 2014. 6. 24. 13:54Could not resolve host: C; No data record of requested type
using UnityEngine;
using System.Collections;
public class XMLParser : MonoBehaviour {
// Use this for initialization
void Start () {
StartCoroutine (LoadXML (Application.dataPath + "/Resources/Data/XML/ItemTree.xml"));
//StartCoroutine (LoadXML ("file:///" + Application.dataPath + "/Resources/Data/XML/ItemTree.xml"));
}
// Update is called once per frame
void Update () {
}
IEnumerator LoadXML(string url)
{
Debug.Log ("url: " + url);
WWW www = new WWW (url);
yield return www;
if (www.error == null)
{
Debug.Log(www.data);
}
else
{
Debug.LogError("Error:" + www.error);
}
}
}
'Unity3D > Problems' 카테고리의 다른 글
NGUI UIInput한글 문제 (2) | 2014.09.01 |
---|---|
리스트에서 해당 인덱스부터 마지막까지 제거 하기 (0) | 2014.07.03 |
Many !IsFinite errors (0) | 2014.06.19 |
navMeshAgent 문제 ("SetDestination" can only be called on an active agent that has been placed on a NavMesh.) (0) | 2014.03.25 |
can only be called from the main thread. (0) | 2014.03.21 |