Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and terminal for exporting UI resources through LayaAir engine

A resource and engine technology, applied in the field of exporting UI resources of LayaAir engine, can solve the problems of high time consumption, affecting the export speed of the initial package of the application, etc., to achieve a high degree of automation, speed up the export speed, and optimize the loading process.

Active Publication Date: 2020-07-10
福建省天奕网络科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Both of the above two methods require the user to manually add the code to load the UI resources corresponding to the UI interface, so as to realize the loading of the UI resources corresponding to the UI interface, which consumes a lot of time and costs, and affects the export of the application initial package containing the UI resources. speed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and terminal for exporting UI resources through LayaAir engine
  • Method and terminal for exporting UI resources through LayaAir engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0083] Please refer to figure 1 , a method for exporting UI resources by a LayaAir engine, including steps:

[0084] S1. When configuring the export of the UI interface in the separation mode through the LayaAir engine, create a dependency relationship between the UI interface and its corresponding UI resource;

[0085] Among them, the specific operation of configuring the export of the UI interface in the separation mode through the LayaAir engine is as follows:

[0086] Open the LayaAir engine, switch to the LayaIDE panel and press the F9 shortcut key, select the separation mode in the UI mode option bar of the pop-up box, and enter "bin / viewJson / ui.json" in the release directory input field for loading UI resources (in the current project The UI resource storage path under the bin folder of the UI interface), configure the UI export mode and the generation path of the json data file of each UI interface in the UI interface data export panel;

[0087] Wherein, creating the...

Embodiment 2

[0142] Please refer to figure 2 , a terminal 1 for exporting UI resources by a LayaAir engine, including a memory 2, a processor 3, and a computer program stored on the memory 2 and operable on the processor 3, and the processor 3 implements when executing the computer program Steps in Example 1.

[0143] To sum up, when configuring the export of the UI interface in the separation mode through the LayaAir engine, create a dependency relationship between the UI interface and its corresponding UI resource; when opening the UI interface, according to the UI interface and its corresponding Dependencies of UI resources, load the UI resources corresponding to the UI interface; when the UI interface is opened, the corresponding UI resources can be automatically loaded according to the dependencies, the degree of automation is high, and the loading process of UI resources is optimized, and due to You can set the corresponding UI resources that need to be loaded, and you can load the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and terminal for exporting UI resources through a LayaAir engine, and the method comprises the steps: building the dependence relation between a UI interface and the corresponding UI resources when exporting of the UI interface is configured through the LayaAir engine in a separation mode; when the UI interface is opened, loading UI resources corresponding to the UIinterface according to the dependency relationship between the UI interface and the corresponding UI resources; opening the UI interface, automatically loading UI resources corresponding to the dependency relationship according to the dependency relationship; high automation degree, optimizing the loading process of the UI resources; in addition, due to the fact that which corresponding UI resources need to be loaded can be set, achieving targeted loading, configuring the used resource into the dependency relationship, not configuring the used resources if not used so thatother useless resources are prevented from being loaded, and the exporting speed of the application initial package containing the UI resources is increased.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and a terminal for exporting UI resources by a LayaAir engine. Background technique [0002] At present, during the application development process of the IDE editor that comes with the LayaAir engine, when exporting UI resources in the UI separation mode, there are generally the following two methods: [0003] The first is to use the default export method of the LayaAir engine. Users need to find the corresponding interface class in the json data of each UI interface, that is, in the LayaUi.max.all.ts file. The interface class is based on the interface class of each interface. It is generated by adding the suffix of UI format after the interface name. The user should first search for the json data of the specific UI interface to generate the data path, and then add this.createView(Laya.loader.getRes ("The json data of the UI interface generates a data path") This code,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F9/451
CPCG06F9/44521G06F9/451
Inventor 刘德建林琛肖雄
Owner 福建省天奕网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products