Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by DVloperDev · Oct 11, 2021 at 12:33 PM · textunityeditorjsonfile

using json file for waypoints for vehicle in unity project.

I'm learning from a project in which manager for vehicle waypoints spawning in using .byte (text file) file for spawning waypoints in game. which is initially made from a json file which is also available is project. The issue is i cant understand $ref. Can someone tell me how can i make a new waypoint file just like this one. {"$content":[{ "Point": { "x": -868.3, "y": -5.800003, "z": -695.1 }, "RoadLinks": [ { "Link": { "Point": { "x": -859.9523, "y": -8.426735, "z": -717.9402 }, "RoadLinks": [ { "Link": { "$ref": "0" }, "SpacerLineWidth": 0.0 }, { "Link": { "Point": { "x": -841.3722, "y": -5.483482, "z": -700.2738 }, "RoadLinks": [ { "Link": { "$ref": "2" }, "SpacerLineWidth": 0.0 }, { "Link": { "Point": { "x": -858.9, "y": -5.335197, "z": -675.2 }, "RoadLinks": [ { "Link": { "$ref": "5" }, }, { "Link": { "Point": { "x": -150.9, "y": 1.709984, "z": -730.1 }, "RoadLinks": [ { "Link": { "$ref": "339" },

     },
     {
         "$ref": "650"
     },
     {
         "$ref": "653"
     },
     {
         "$ref": "655"
     },
     {
         "$ref": "657"
     },
     {
         "$ref": "659"
     },
     {
         "$ref": "661"
     },
     {
         "$ref": "663"
     },
     {
         "$ref": "668"
     },
     {
         "$ref": "670"
     },
     {
         "$ref": "672"
     },
     {
         "$ref": "674"
     },
     {
         "$ref": "687"
     },
     {
         "$ref": "690"
     },
     {
         "$ref": "693"
     },
     {
         "$ref": "696"
     },
     {
         "$ref": "699"
     },
     {
         "$ref": "702"
     },
     {
         "$ref": "711"
     },
     {
         "$ref": "722"
     },
     {
         "$ref": "726"
     },
     {
         "$ref": "742"
     },
     {
         "$ref": "744"
     },
     {
         "$ref": "749"
     },
     {
         "$ref": "752"
     },
     {
         "$ref": "755"
     },
     {
         "$ref": "757"
     },
     {
         "$ref": "759"
     },
     {
         "$ref": "763"
     },
     {
         "$ref": "765"
     },
     {
         "$ref": "770"
     },
     {
         "$ref": "773"
     },
     {
         "$ref": "775"
     },
     {
         "$ref": "778"
     },
     {
         "$ref": "780"
     },
     {
         "$ref": "782"
     },
     {
         "$ref": "788"
     },
     {
         "$ref": "791"
     },
     {
         "$ref": "793"
     },
     {
         "$ref": "796"
     },
     {
         "$ref": "798"
     },
     {
         "$ref": "800"
     },
     {
         "$ref": "802"
     },
     {
         "$ref": "805"
     },
     {
         "$ref": "809"
     },
     {
         "$ref": "868"
     }],"$type":"Game.Traffic.RoadPoint[]"}
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DVloperDev · Oct 08, 2021 at 07:21 AM 0
Share

I tried making a new one , but stack overflow exception accurse. This code is not complete as it exceeds the limit for characters i can use to write here.

avatar image Captain_Pineapple · Oct 11, 2021 at 03:51 PM 1
Share

please add the code how you load/process the data from this json.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

139 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is this possible to work as a temporary storage? 2 Answers

How does a TextAsset work? 1 Answer

Can't open json from editor 1 Answer

do something if a method cant be executed 1 Answer

How to read data from a text file into a collection? (JSON preferred) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges