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.

1 Answer

1

well found d answer .
can happen by first converting string to float