Could not resolve host: C; No data record of requested type

Unity3D/Problems 2014. 6. 24. 13:54
반응형

Could 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);
  }
 }


}

반응형
: