Quantcast
Browsing all 108 articles
Browse latest View live

Make the compiler evaluate a string as a chunk of code to be compiled?

I want to create a method which will take ANY variable type as an argument. And by any I mean user-defined types, so it could be a very flexible method that can be reused anytime. Kind of: static...

View Article


remove quotation marks from a parsed string

I am working on a texture packer .json file reader (I've been meaning to, and it came up in a question so I have finally started!), and the method I use in my .fnt file reader is not working in this...

View Article


Remove TAB from parsed string

This is a new problem arising from my previous question : http://answers.unity3d.com/questions/291294/stringequals-not-working-as-expected.html I am reading a texture packer text info file, and after...

View Article

XML parsing problem - array

Hi guys, I have to implement a quiz game and I'm trying to parse an XML file in order to retrieve all the contained data and use them to fill some buttons and labels with questions and answers. This is...

View Article

Json Parser

Im currently using the Boomlagoon JSON parser, but can't seem to retrieve object values: string text = "{ \"sample\" : { \"sam\" : 23 } }"; ## string to parse JSONObject json = JSONObject.Parse(text);...

View Article


XML to Custom Asset Parser, cant get the code to work when refactored

Hi, I'm coding an XML to CustomAsset Parser, when I tried to refactor the code in red part, I can't get it to become true inside the if(). Can anyone point out what I did wrong? Also, it became error...

View Article

minijson pars

hi, I'm trying to create a parser with minijson class for this json string...

View Article

Efficient script parser

I'm in the middle of making a text parser, and I'm stuck on a problem. I need it to be able to skip spaces between text if a condition is set (if statement). The parsing process is a for loop that...

View Article


Error cs8025 script (parser error) How i can fix this?

using UnityEngine; using System.Collections; public class LanternaSlender : MonoBehaviour { public Light spotLightFL; private Ray rayToInteract; private RaycastHit hitInteract; public float...

View Article


String segment comparator

I've worked a little bit with creating language parsers using c# completely outside of unity before, but I now i'm writing a little language parser inside of unity and I need to know if there is a way...

View Article

Unexpected Symbol `:' expecting :

Trying to create a simple cube object with my script based on [this script reference][1]. [1]: http://docs.unity3d.com/Documentation/ScriptReference/GameObject.CreatePrimitive.html Here's my code:...

View Article

XML parser, how to get to 1 of many elements with the same name.

I have an XML file like this one:.............................. How to get to specific in many of them. Im using System.xml Thanks.

View Article

parser error? NpcDialog Script [pretty simple though...]

Hi! Tom Adamson posted an awesome, simple NPCDialog tutorial on Youtube ( https://www.youtube.com/watch?v=-UBQ5jd-j7Y ) I copied his exact script, but I get an unexpected symbol error, a parser error...

View Article


PC RSS Feed Get Xml Data Works , but not on android?

Hi guys , I have some code at the minute to load an xml document from an RSS Feed and it is currently working on my PC , but not when I load it into android?? anyone know why this could be? XmlDocument...

View Article

Parser Error in For Loop

This one is (hopefully) a very simple question, as I just need an extra set of eyes. Can anyone spot the parser error in the code below? All variables are properly defined and the original instance of...

View Article


Parsing Error with {s Ok.

Hi, I recently downloaded an open source old proyect from internet, just to discover it was created with unity 4, so many of the scripts were outdated, I managed to fix most of the errors, except one....

View Article

help please

its probably simple but im new to coding so. Assets/movement.cs(9,12): error CS1519: Unexpected symbol `void' in class, struct, or interface member declaration using UnityEngine; using...

View Article


WWW.string doesnt return the page html as expected

I'm attempting the building of a stack based html parser.. #pragma strict public var url: String = "http://www.yahoo.com"; var www: WWW; var a=0; function Start() { www = new WWW(url); } function...

View Article

Math Parsers for Unity 5.1.4 and .NET 2.0 or Mono for Unity

Has anybody used Math Parsers with Unity before. I tried several but they don't seem to be compatible with .NET 2.0? On the other hand is there some build in function to calculate mathematical...

View Article

How to parse SAMI file in unity?

I want to make subtitle. I should read the file of SAMI format and put it into TextAsset. How can I do this??? + I want to know are there any SAMI parser ?

View Article
Browsing all 108 articles
Browse latest View live