Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Unity3D 4.5 Error ] Load XML data by TextAsset - Solved

Discussion in 'Scripting' started by jackdracon, May 29, 2014.

  1. jackdracon

    jackdracon

    Joined:
    May 7, 2011
    Posts:
    11
    Hi everybody, how are you?
    I am doing a simple game where I put my main data at a XML File. This file I created directly on my 'Script' folder (local file) to make all stuff happens more quickly, I guess.
    Reading the file by a TextAsset instance inside my code. But when I updated the Unity3D this isn't working anymore. That is really sad now because I don't found any kind of info about changes related to TextAsset. :(
    Do you guys here have some info about it? It's a new bug? have some other way to read a external data (i.e. XML) in Unity3D?
    Thanks for your attention and have a nice day,
    Jack Dracon
     
  2. jackdracon

    jackdracon

    Joined:
    May 7, 2011
    Posts:
    11
    Any advice? :)
    []s
     
  3. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    "Not working" isn't a helpful description of the problem.
     
  4. jackdracon

    jackdracon

    Joined:
    May 7, 2011
    Posts:
    11
    Hi KelsoMRK,
    So, before the upgrade was working fine, but after the upgrade isn't working more. Looks like the file isn't read the same way as before.
    But I solved this using other way.
    Thanks for your attention.
    best regards,
    jd
     
  5. sangth

    sangth

    Joined:
    Jul 10, 2013
    Posts:
    1
    I had the same problem occurs.

    reproduced below.
    1. AssetDatabase.CreateAsset Data generated by the Xml
    2. Asset data was 452KB.
    3. Read the data from Android (Version4.1.2).
    4. App has been suspended.

    Seems to occur when more than a certain amount TextAsset capacity.
    (no problem TextAsset 53KB. )

    Version of a previously used : 4.3.4
    Test version : 4.5.3