Method for optimizing atlas resources in LayaIDE and storage medium
A resource optimization and atlas technology, which is applied in the field of atlas resource optimization in LayaIDE, can solve the problems of inability to adjust and set the interval area, and atlas resources occupy a large amount of memory, so as to reduce atlas size and atlas memory usage, Realize the effect of atlas resource data and atlas resource optimization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] Please refer to figure 2 , Embodiment 1 of the present invention is:
[0077] Provides a method for optimizing atlas resources in LayaIDE, which is mainly used to solve the problem that the atlas resources used in the application occupy too much memory when the IDE editor that comes with the Laya engine is used for application development.
[0078] The method of this embodiment includes:
[0079] S1: Integrate the atlas resources to be packaged according to the space occupancy optimization strategy to generate atlas data and atlas resources;
[0080] Specifically, this step specifically includes:
[0081] S11: Use the TexturePackerGUI tool to integrate the atlas resources to be packaged according to the space occupancy optimization strategy to generate atlas data and atlas resources;
[0082] Wherein, the TexturePackerGUI tool is an existing atlas generation tool, which is the same as other atlas generation tools in the field, and the generated atlas data cannot be ...
Embodiment 2
[0108] see image 3 , this embodiment provides a specific application scenario corresponding to Embodiment 1:
[0109] For example, the production of the loading interface atlas resources in the "H5 National Darkness" project:
[0110] Pre-preparation: Use the TexturePackerGUI tool to integrate the resources that need to be packaged into the atlas (the specific tools are not detailed, mainly to adjust the algorithm of the atlas, select the one that saves the most; and the image gap value is 0, etc.); then the generated Atlas data (JSON) and atlas resources (.png images) create a new folder "Loading" (the folder name is recommended to be named after the function module) for storage, and then copy them to the corresponding folder of the project (the folder here The path is in the TexturePackerGUI folder under the AtlasTransformation path of your Laya project. There will be two folders under AtlasTransformation, one is LayaAtlas (the folder that stores the atlas data and resourc...
Embodiment 3
[0116] This embodiment corresponds to Embodiment 1 or Embodiment 2, and provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it can implement the above-mentioned embodiment 1 or Embodiment 2. All the steps included in the method of atlas resource optimization in LayaIDE.
[0117] In summary, the method and storage medium for optimizing the atlas resources in LayaIDE provided by the present invention can not only realize the configurable size of the atlas in LayaIDE, but also significantly reduce the memory usage of the atlas; furthermore, it is easy to operate , easy to implement and other advantages.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com