Extracting float values from text

Welcome to Portals United! / Forums / Requests & Feedback / Extracting float values from text

  • Author
    Posts
  • January 30, 2025 at 1:23 pm #603

    Hi,

    We send text data to the tensor flow server through the web request.
    We get the JSON that looks like this:
    {
    "predictions": [[1.43343797e-07, 3.11937953e-07, 0.999999523]
    ]
    }

    How can we extract the values as floats or vector3 to use them to make decisions inside the Logic Editor of the World Builder?

    Thanks!

     

     

    January 31, 2025 at 1:34 pm #608

    Right now we can’t read JSON files yet, but we have a plan. About the release date for this feature, we hope to have it in our next release which is currently delayed due to our update to Unity V6000. Hopefully in 1 to 2 weeks (7. – 14. February).

    You will be able to extract the data (e.g. the value of “predictions”) as a string and use it as a (x, y, z) vector.

     

  • You must be logged in to reply to this topic.