- Home /
My script behave different when I compile, idk why, everything was recorded
Here my problem link: https://www.youtube.com/watch?v=NOiREOQgj9I&t When I compile the script behave different I worked with json but really idk what happen :L I need to solve this, but I have no idea what happens
No sé si trabajar con json tenga algo que ver
No estoy seguro, compruebalo, pero creo que la ultima version de unity no acepta json
X$$anonymous$$L can be read by Unity easily and across platforms - JSON is harder.
On which knowledge do you base this pointless statement? To read or write X$$anonymous$$L you have to use the System.Xml namespace which will include the System.Xml.dll which is about 500 $$anonymous$$B in size just to have Xml support. Unity ships a simple and fast json parser (JsonUtility). Even if you like to have more freedom and don't want to be bound to only class serialization / deserialization you can use for example my SimpleJSON library which is just a single C# file.
Json is actually a much simpler and lightweight format than X$$anonymous$$L. Have you ever tried implementing an X$$anonymous$$L parser? This is the specification for the X$$anonymous$$L format. This is the whole specification for JSON. X$$anonymous$$L can also be a security issue since most X$$anonymous$$L parsers are vulnerable to all sorts of attacks (for example the billion laughs attack) due to the high complexity of the X$$anonymous$$L format. While the billion laughs attack is usually detected by limiting the characters an entity can have, there are many other possible issues.
$$anonymous$$ept the suggestion brief to compensate for the fact that the author appears to be a non-native English speaker.
$$anonymous$$y answer was based on older versions of Unity. Wasn't aware of the new Unity JSON parsing functions.
Attempting to parse JSON in Unity pre-2018 was a pain in the neck, and many people used to use .NET assemblies that would work in-editor but fail in builds (particularly non-Windows builds) because they were in fact compiled against different versions of the framework.
While I agree with the advantages of JSON as a format, the fact that there was no native .NET 2.0 support for JSON that worked easily across platforms in earlier versions of Unity made me suggest X$$anonymous$$L as an alternative serialisation format that had support built into $$anonymous$$ONO/.NET since Unity 5.
Glad they've added it.
Well yes, English is not my first language xDD, it sounds like it makes sense " there was no native .NET 2.0 support for JSON", I made this in unity 2019 but it didn't work, and I change to 2018, aparently the script to crash because I delete the condition for make account and don't work anything, so maybe could be json, how ever I put here my proyect, maybe there someone to make it to work
Al parecer hay algo que hace crashear al script, porque, ya quite la condición, la cual me presentaba problemas, sin esta condición todo debería seguir funcionando, pero no es así, ya sin la condición bastaba con presionar "Enter" or "Intro" para avanzar y aun así no paso nada, el script deja de funcionar o bueno, el ciclo Update no responde desde el principio, quizás sea el Json aunque pues no puedo afirmar nada ya que no tengo conocimientos de programación, solo cosas básicas. Dejare el script y un packedge por si alguien quiere probar suerte.
***I forgot to delete line 127 in the script if u wanna download remember delete this line
everything what I wrote in Spanish here: https://youtu.be/GFJo$$anonymous$$lg$$anonymous$$REA
ty everyone
Your answer

Follow this Question
Related Questions
Vuforia needs to be played before the build works 0 Answers
unity load an player made C# script 2 Answers
Why is this variable not setting in build? 0 Answers
Multiple Cars not working 1 Answer