json AR程序指导 - (2D覆盖结构)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json AR程序指导 - (2D覆盖结构)相关的知识,希望对你有一定的参考价值。

          "children": [
            {
              "name": "twx-container-content",
              "children": [
                {
                  "attributes": {
                    "twx-widget": "",
                    "widget-id": "panel-1",
                    "widget-name": "Top Panel",
                    "is-widget-container": "true",
                    "position": "top"
                  },
                  "name": "twx-overlay-container",
                  "children": [
                    {
                      "name": "twx-container-content",
                      "children": [
                        {
                          "attributes": {
                            "twx-widget": "",
                            "widget-id": "gridLayout-1",
                            "widget-name": "gridLayout-1",
                            "is-widget-container": "true",
                            "evenlyspacedrows": "true"
                          },
                          "name": "twx-gridlayout",
                          "children": [
                            {
                              "name": "twx-container-content",
                              "children": [
                                {
                                  "attributes": {
                                    "twx-widget": "",
                                    "widget-id": "row-1",
                                    "widget-name": "row-1",
                                    "is-widget-container": "true",
                                    "rowheight": "auto"
                                  },
                                  "name": "twx-row",
                                  "children": [
                                    {
                                      "name": "twx-container-content",
                                      "children": [
                                        {
                                          "attributes": {
                                            "twx-widget": "",
                                            "widget-id": "column-1",
                                            "widget-name": "column-1",
                                            "is-widget-container": "true",
                                            "justification": "center",
                                            "alignment": "flex-start",
                                            "padding": "5px"
                                          },
                                          "name": "twx-col",
                                          "children": [
                                            {
                                              "name": "twx-container-content",
                                              "children": [
                                                {
                                                  "attributes": {
                                                    "twx-widget": "",
                                                    "widget-id": "image-3",
                                                    "widget-name": "image-3",
                                                    "class": "",
                                                    "imgsrc": "Uploaded/HomeButton.svg",
                                                    "width": "75px",
                                                    "height": "75px",
                                                    "padding": "5px 5px 5px 5px"
                                                  },
                                                  "name": "twx-image2"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "attributes": {
                    "twx-widget": "",
                    "widget-id": "2DOverlayBody-1",
                    "widget-name": "2D Body",
                    "is-widget-container": "true"
                  },
                  "name": "twx-overlay-body",
                  "children": [
                    {
                      "name": "twx-container-content",
                      "children": [
                        {
                          "attributes": {
                            "twx-widget": "",
                            "widget-id": "panel-2",
                            "widget-name": "Left Panel",
                            "is-widget-container": "true",
                            "position": "left"
                          },
                          "name": "twx-overlay-container",
                          "children": [
                            {
                              "name": "twx-container-content",
                              "children": [
                                {
                                  "attributes": {
                                    "twx-widget": "",
                                    "widget-id": "gridLayout-1",
                                    "widget-name": "gridLayout-1",
                                    "is-widget-container": "true",
                                    "class": "grid-left",
                                    "evenlyspacedrows": "true"
                                  },
                                  "name": "twx-gridlayout",
                                  "children": [
                                    {
                                      "name": "twx-container-content",
                                      "children": [
                                        {
                                          "attributes": {
                                            "twx-widget": "",
                                            "widget-id": "row-1",
                                            "widget-name": "row-1",
                                            "is-widget-container": "true",
                                            "rowclass": "row-left"
                                          },
                                          "name": "twx-row",
                                          "children": [
                                            {
                                              "name": "twx-container-content",
                                              "children": [
                                                {
                                                  "attributes": {
                                                    "twx-widget": "",
                                                    "widget-id": "column-6",
                                                    "widget-name": "column-6",
                                                    "is-widget-container": "true",
                                                    "class": "",
                                                    "justification": "center",
                                                    "alignment": "center",
                                                    "wrap": "no-wrap"
                                                  },
                                                  "name": "twx-col",
                                                  "children": [
                                                    {
                                                      "name": "twx-container-content",
                                                      "children": [
                                                        {
                                                          "attributes": {
                                                            "twx-widget": "",
                                                            "widget-id": "button-1",
                                                            "widget-name": "button-1",
                                                            "click-expression": "setRewind();",
                                                            "text": "",
                                                            "class": "buttons left_elements"
                                                          },
                                                          "name": "twx-button"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "attributes": {
                            "twx-widget": "",
                            "widget-id": "panel-3",
                            "widget-name": "Center Panel",
                            "is-widget-container": "true",
                            "position": "center"
                          },
                          "name": "twx-overlay-container",
                          "children": [
                            {
                              "name": "twx-container-content"
                            }
                          ]
                        },
                        {
                          "attributes": {
                            "twx-widget": "",
                            "widget-id": "panel-4",
                            "widget-name": "Right Panel",
                            "is-widget-container": "true",
                            "position": "right"
                          },
                          "name": "twx-overlay-container",
                          "children": [
                            {
                              "name": "twx-container-content",
                              "children": [
                                {
                                  "attributes": {
                                    "twx-widget": "",
                                    "widget-id": "gridLayout-3",
                                    "widget-name": "gridLayout-3",
                                    "is-widget-container": "true",
                                    "class": "grid-right",
                                    "evenlyspacedrows": "true"
                                  },
                                  "name": "twx-gridlayout",
                                  "children": [
                                    {
                                      "name": "twx-container-content",
                                      "children": [
                                        {
                                          "attributes": {
                                            "twx-widget": "",
                                            "widget-id": "row-3",
                                            "widget-name": "row-3",
                                            "is-widget-container": "true",
                                            "rowclass": "row-right"
                                          },
                                          "name": "twx-row",
                                          "children": [
                                            {
                                              "name": "twx-container-content",
                                              "children": [
                                                {
                                                  "attributes": {
                                                    "twx-widget": "",
                                                    "widget-id": "column-8",
                                                    "widget-name": "column-8",
                                                    "is-widget-container": "true",
                                                    "class": "",
                                                    "justification": "center",
                                                    "alignment": "center"
                                                  },
                                                  "name": "twx-col",
                                                  "children": [
                                                    {
                                                      "name": "twx-container-content",
                                                      "children": [
                                                        {
                                                          "attributes": {
                                                            "twx-widget": "",
                                                            "widget-id": "button-2",
                                                            "widget-name": "button-2",
                                                            "click-expression": "setPlay();",
                                                            "text": "",
                                                            "class": "buttons right_elements"
                                                          },
                                                          "name": "twx-button"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "attributes": {
                    "twx-widget": "",
                    "widget-id": "panel-5",
                    "widget-name": "Bottom Panel",
                    "is-widget-container": "true",
                    "position": "bottom"
                  },
                  "name": "twx-overlay-container",
                  "children": [
                    {
                      "name": "twx-container-content"
                    }
                  ]
                }
              ]
            }
          ]

以上是关于json AR程序指导 - (2D覆盖结构)的主要内容,如果未能解决你的问题,请参考以下文章

css AR程序指导 - (演示)

HMS Core AR Engine 2D图片/3D物体跟踪技术 助力打造更智能AR交互体验

json LeanSwift演示AR应用程序配置(dev-config.json)

产品结构设计指导总纲VI

产品结构设计指导总纲VI

json LeanSwift云环境TST AR应用程序配置(dev-config.json)