- Home /
Convert String to Vector Type
I am trying to read XML which contains a tag for player position of type Vector3. Cant find how to convert String to Vector3
How is the string formatted? Obviously you need to use some kind of parse method, but it depends entirely on the format of the original string.
It also depends on how you read / parse your xml data. Do you use any xml library?
It would also help to actually post the piece of xml which shows your format.
Personally i would encode a Vector3 like this:
<Vector3 x="10" y="20" z="30" />
Feel free to edit your question.
Answer by Humb · May 24, 2012 at 06:57 AM
well found d answer . can happen by first converting string to float
Your answer
Follow this Question
Related Questions
The Unity move - converting application from C++ to C# 3 Answers
software that makes scripts for you 6 Answers
Help...convert C# to Js ??? 3 Answers
Exported SWF no longer loads 1 Answer