I parsed from the site of the SQL table in json format and wondered how you can beautifully display SQL labels so that each entry corresponds to a column and so on. That it was possible to scroll the table if when it is full, will not get into the screen.
Here is json's parsing
using System.Collections; using System.Collections.Generic; using System.Runtime; using UnityEngine; using UnityEngine.UI; public class GetProd : MonoBehaviour { public JSONObject JO; public string GetTypePatch; public WWW wwwPeod; void Start() { wwwPeod = new WWW(GetTypePatch); } void Update() { if (wwwPeod != null && wwwPeod.isDone) { if (wwwPeod.error == null) { JO = new JSONObject(wwwPeod.text); wwwPeod = null; } else { print(wwwPeod.error); } } } void OnGUI() { if (JO != null) { GUILayout.BeginArea(new Rect(5, 0, 1000, 1000)); GUILayout.Label("| Название | Калор. | id Счёта | Дата |"); foreach (var json in JO.list) { var data = json.ToDictionary(); GUILayout.Label(data["product_name"]+" "+data["product_calories"] + " " + data["account_id"] + " " + data["purchase_date"]); // data["поле_sql_нэйм;"] } GUILayout.EndArea(); } } } Thank you in advance!