Deep multi-process packaging method, device and readable medium based on Unity
Through the deep multi-process packaging method based on Unity, the impact of the size of the mobile game installation package on the user experience of low-end mobile phones is solved, more efficient resource packaging and development iterations are achieved, and the game loading speed and user experience are improved.
Patent Information
- Application Number
- CN202010642191.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-06
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2040-07-06
AI Technical Summary
In the prior art, the size of the mobile game installation package has a great impact on the mobile phone users' trial intention and game runtime experience, especially on low-end mobile phones. The long resource packaging time leads to an increase in the game loading time, affecting the efficiency of development iteration.
Using the deep multi-process packaging method based on Unity, by obtaining the game resources to be packaged and converting them into AB packages, calculating the associated value of each game resource and setting the depth, sorting and multi-process packaging based on the depth improve packaging efficiency.
It reduces the time required for packaging and improves the efficiency of development iterations, especially on low-end mobile phones, which improves game loading speed and user experience.
Smart Images

Figure CN111991811B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer games, and in particular to a Unity-based deep multi-process packaging method, device and readable medium. Background Art
[0002] The size of the mobile game installation package directly affects the willingness of mobile phone users to try the game and the game runtime experience, and the most affected are low-end mobile phones that account for the largest market share. In the process of building mobile games, resource packaging takes a large part of the time, which will affect the loading time of the game. Summary of the invention
[0003] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a deep multi-process packaging method, device and readable medium based on Unity to improve the efficiency of development iteration.
[0004] The technical solution of the present invention includes a deep multi-process packaging method based on Unity, which is characterized in that the method includes the following steps: S100, obtaining one or more game resources to be packaged, and converting each game resource into an AB package; S200, calculating the association value of each game resource, and setting a corresponding depth for each game resource according to the association value; S300, performing corresponding packaging processing according to the association value of the game resource.
[0005] According to the Unity-based deep multi-process packaging method, game resources include but are not limited to scenes, models and configurations.
[0006] According to the Unity-based deep multi-process packaging method, S200 specifically includes: traversing the associated nodes of each game resource, representing the associated value of the corresponding game resource with each associated node, and setting the corresponding depth according to the associated value.
[0007] According to the Unity-based deep multi-process packaging method, the associated node represents one or more other game resources associated with the game resource when it is running.
[0008] According to the Unity-based deep multi-process packaging method, S300 specifically includes: S301, sorting the depth of each game resource from small to large; S302, packaging the AB packages one by one through multiple processes according to the sorting.
[0009] According to the Unity-based deep multi-process packaging method, S302 further includes: if the depths of the game resources are the same, then multi-process packaging is used simultaneously.
[0010] The technical solution of the present invention also includes a deep multi-process packaging device based on Unity, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the above-mentioned method steps are implemented when the processor executes the computer program.
[0011] The technical solution of the present invention also includes a computer-readable storage medium, which stores a computer program, characterized in that when the computer program is executed by a processor, the method steps described in any one of claims 1-6 are implemented.
[0012] The beneficial effects of the present invention are: reducing the time required for packaging and improving the efficiency of development iteration. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The present invention is further described below in conjunction with the accompanying drawings and embodiments;
[0014] Figure 1 Shown is an overall flow chart according to an embodiment of the present invention;
[0015] Figure 2 Shown is a schematic diagram of a device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.
[0017] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0018] In the description of the present invention, unless otherwise clearly defined, words such as "setting" should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above words in the present invention in combination with the specific content of the technical solution.
[0019] Figure 1The figure shows an overall flow chart according to an embodiment of the present invention. The process includes the following steps: S100, obtaining one or more game resources to be packaged, and converting each game resource into an AB package; S200, calculating the association value of each game resource, and setting a corresponding depth for each game resource according to the association value; S300, performing corresponding packaging processing according to the association value of the game resource. Game resources include but are not limited to scenes, models and configurations. S200 specifically includes: traversing the association nodes of each game resource, representing the association value of the corresponding game resource with each association node, and setting a corresponding depth according to the association value. The association node represents one or more other game resources associated with the game resource when it is running. S300 specifically includes: sorting the depth of each game resource from small to large; and packaging the AB packages one by one through multiple processes according to the sorting. If the depth in the game resources is the same, multiple processes are used for simultaneous packaging.
[0020] Based on the above technical solution, the present invention provides the following specific implementation methods:
[0021] (1) Create a Unity project.
[0022] (2) Prepare multiple resources to be packaged;
[0023] (3) Set each package into a separate assetbundle package (AB package);
[0024] (4) Set the depth of assetbundle according to its dependencies;
[0025] (5) Assetbundles of different depths are packaged in multiple processes in order from low to high depth.
[0026] Figure 2 The device according to an embodiment of the present invention is shown as a schematic diagram. It includes: a memory 100 and a processor 200. The memory is used to store corresponding data of game resources, and the processor is used to execute a computer program to implement: obtaining one or more game resources to be packaged, and converting each game resource into an AB package; calculating the association value of each game resource, and setting a corresponding depth for each game resource according to the association value; and performing corresponding packaging processing according to the association value of the game resource.
[0027] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.
Claims
1. A deep multi-process packaging method based on Unity, characterized in that: The method comprises the following steps: S100, obtaining one or more game resources to be packaged, and converting each game resource into an AB package; S200, calculating the association value of each game resource, and setting a corresponding depth for each game resource according to the association value; S300, performing corresponding packaging processing according to the associated values of the game resources; The S300 specifically includes: S301, sorting the depth of each game resource from small to large; S302, packaging the AB packages one by one through multiple processes according to the order; The association value of the game resource is an association value corresponding to an association node of each game resource, and the association node represents one or more other game resources associated with the game resource when it is running.
2. The deep multi-process packaging method based on Unity according to claim 1, characterized in that: The game resources include but are not limited to scenes, models and configurations.
3. The deep multi-process packaging method based on Unity according to claim 1, characterized in that: The S200 specifically includes: traversing the associated nodes of each game resource, representing the associated value of the corresponding game resource with each associated node, and setting the corresponding depth according to the associated value.
4. The deep multi-process packaging method based on Unity according to claim 1, characterized in that: The S302 further includes: if the depths of the game resources are the same, packaging them simultaneously using multiple processes.
5. A deep multi-process packaging device based on Unity, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method steps described in any one of claims 1 to 4 are implemented.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method steps according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Optimized AB package packing method based on machine learning
CN111061505A
Methods of and apparatus for compressing depth data
US20140354641A1