CN111026437A - Unity-based resource package processing method and device - Google Patents
Unity-based resource package processing method and device Download PDFInfo
- Publication number
- CN111026437A CN111026437A CN201911367462.6A CN201911367462A CN111026437A CN 111026437 A CN111026437 A CN 111026437A CN 201911367462 A CN201911367462 A CN 201911367462A CN 111026437 A CN111026437 A CN 111026437A
- Authority
- CN
- China
- Prior art keywords
- package
- resource
- resource package
- unity
- project
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a Unity-based resource package processing method and a Unity-based resource package processing device, wherein the Unity-based resource package processing method comprises the following steps: acquiring at least one prefabricated resource package from a version control system; loading each of the resource packages to a package manager of Unity; acquiring a project requirement corresponding to a project to be processed; determining a target resource package according to the project requirement, and generating a corresponding target package list under the root directory of the project to be processed; the target resource package is referred in the project to be processed according to the target package list; compiling the to-be-processed project and the target resource package and generating a project file. The version of the target resource package can be clearly known through the target package list, and the working efficiency is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a Unity-based resource package processing method and apparatus, a computing device, and a computer-readable storage medium.
Background
With the development of computer technology, a Unity formally enables a Package Manager (UPM), in the course of previous Unity use, a resource Package used in Unity cannot utilize version control, when a user downloads or uses a resource Package shared by others from an application store, the version of the resource Package cannot be distinguished, and only the resource Package can be imported into a project for judgment, and if an author of the resource Package does not write a version statement, what resources the resource Package can provide and what bugs are repaired can be distinguished only by reading a code. The user is inconvenient to use, and when the resource package is imported, redundant information irrelevant to the resource package is imported into the project together, so that the project is influenced. Meanwhile, in practical application, a plurality of projects usually use the same resource package, and when one project modifies the resource package, all the projects need to be modified at the same time, which is very inconvenient.
Therefore, how to solve the above problems becomes a problem to be solved urgently by the skilled person.
Disclosure of Invention
In view of this, embodiments of the present application provide a Unity-based resource package processing method and apparatus, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
According to a first aspect of the embodiments of the present application, a Unity-based resource package processing method is provided, including:
acquiring at least one prefabricated resource package from a version control system;
loading each of the resource packages to a package manager of Unity;
acquiring a project requirement corresponding to a project to be processed;
determining a target resource package according to the project requirement, and generating a corresponding target package list under the root directory of the project to be processed;
the target resource package is referred in the project to be processed according to the target package list;
compiling the to-be-processed project and the target resource package and generating a project file.
Optionally, after loading each resource package to the package manager of Unity, the method further includes:
acquiring a resource packet type corresponding to each resource packet;
classifying the resource packets according to the resource packet types to generate at least one custom program set;
and generating a corresponding custom script for each custom program set.
Optionally, generating a corresponding custom script for each custom assembly, including:
and generating a corresponding compiling script and an operating script for each custom program set so as to execute the compiling script when the item to be processed is compiled and execute the operating script when the item to be processed is operated.
Optionally, loading each resource package to a package manager of Unity includes:
copying the resource packet to a designated path of the packet manager;
the package manager automatically loads the resource package.
Optionally, the package manager includes a corresponding item list, where the item list includes a resource package corresponding to the package manager;
loading each of the resource packages to a package manager of Unity, comprising:
acquiring a resource packet path of the resource packet;
writing the resource packet path to a specified position of the item list;
and the package manager loads the resource package according to the specified position of the project list.
Optionally, before obtaining at least one pre-manufactured resource package from the version control system, the method further includes:
acquiring at least two completed projects;
extracting the same resource package in each completed project;
and uploading the same resource package to the version control system as a pre-made resource package.
According to a second aspect of the embodiments of the present application, there is provided a Unity-based resource package processing apparatus, including:
the resource package obtaining module is configured to obtain at least one prefabricated resource package from the version control system;
a load resource package module configured to load each of the resource packages to a package manager of Unity;
the acquisition demand module is configured to acquire project demands corresponding to the projects to be processed;
the resource package determining module is configured to determine a target resource package according to the project requirement, and generate a corresponding target package list under the root directory of the project to be processed;
a reference resource package module configured to reference the target resource package in the item to be processed according to the target package list;
and the compiling generation module is configured to compile the to-be-processed item and the target resource package and generate an item file.
Optionally, the apparatus further comprises:
the resource package type obtaining module is configured to obtain a resource package type corresponding to each resource package;
the classification module is configured to classify the resource packet according to the resource packet type and generate at least one custom program set;
and the script generation module is configured to generate a corresponding custom script for each custom program set.
Optionally, the script generating module is further configured to generate a corresponding compiling script and a running script for each custom program set, so that the compiling script is executed when the to-be-processed item is compiled, and the running script is executed when the to-be-processed item is run.
Optionally, the resource package loading module is further configured to copy the resource package to a specified path of the package manager; the package manager automatically loads the resource package.
Optionally, the package manager includes a corresponding item list, where the item list includes a resource package corresponding to the package manager;
the loading resource packet module is further configured to obtain a resource packet path of the resource packet; writing the resource packet path to a specified position of the item list; and the package manager loads the resource package according to the specified position of the project list.
Optionally, the apparatus further comprises:
an acquire completed items module configured to acquire at least two completed items;
an extract resource package module configured to extract the same resource package in each of the completed projects;
and the uploading resource packet module is configured to upload the same resource packet to the version control system as a pre-manufactured resource packet.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the Unity-based resource package processing method when executing the instructions.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the Unity-based resource package processing method.
In the embodiment of the application, by acquiring the resource package from the version control system, the version control system can ensure that a plurality of projects acquire the resource package of the same version, determine the target resource package according to project requirements, generate the corresponding target package list under the root directory of the project to be processed, quote the target resource package in the project to be processed according to the target package list, and store the version information of the target resource package in the target package list, so that the version of the target resource package can be clearly known, and the working efficiency is improved.
Secondly, the resource packets are classified according to the resource packet types to generate a custom program set, so that the compiling time in a compiling stage can be saved, and the compiling time is prevented from being prolonged due to the increase of code quantity.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
FIG. 2 is a flowchart of a Unity-based resource package processing method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a resource package list in an embodiment of the present application;
FIG. 4 is a flowchart of a Unity-based resource package processing method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a Unity-based resource package processing apparatus according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
Unity: the game development engine is a powerful cross-platform game development engine, the global accumulated downloading amount exceeds 5 hundred million times, the game development tool is a multi-platform and comprehensive game development tool, the game development tool is one of the most excellent 3D engines at present, the Unity3D engine can enable game developers to easily create interactive contents such as 3D video games, real-time 3D animations and the like, and the game development tool is widely applied to the development fields of hand games, network games, single machines, new VR games and the like at present.
Resource package: the generic term of plug-ins, material packages, tools, etc., used by items in Unity software.
The version control system comprises: a system for managing project code, resources, configuration files, description documents, and the like, associated with a project during the development of the project.
In the present application, a Unity-based resource package processing method and apparatus, a computing device, and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.
FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein, the processor 120 may execute the steps in the Unity-based resource package processing method shown in fig. 2. FIG. 2 shows a flowchart of a Unity-based resource package processing method according to an embodiment of the present application, including steps 202 to 212.
Step 202: at least one pre-made resource package is obtained from the version control system.
In practical application, the version control System is used for uniformly managing contents such as program codes, document descriptions, resource packages and the like in a project development process, Versions of various items can be unified, when some content in a project is changed, other related projects can be updated through the version control System, the version control System is various, such as subversion (svn), Current Versions System (CVS) and the like, and in the application, selection of the version control System is not limited.
The resource package is an indispensable part of a project, and the resource package comprises a material package, a plug-in, a tool and the like.
Optionally, before obtaining at least one pre-manufactured resource package from the version control system, the method further includes: acquiring at least two completed projects; extracting the same resource package in each completed project; and uploading the same resource package to the version control system as a pre-made resource package.
In actual project development, each project group is provided with an independent tool library, resource packages corresponding to each project are maintained by each project group, the same resource packages frequently used in each project are extracted, and are subjected to centralized management and maintenance in a version control system in combination with some commonly used resource packages, and when a new project is started, the part of resource packages can be directly obtained from a version controller without being downloaded again.
In the embodiment provided by the application, the version control system adopts the SVN, and obtains the resource package a based on the SVN, wherein the resource package a is simultaneously applied to the project 1, the project 2 and the project 3.
Step 204: and loading each resource package to a package manager of the Unity.
And loading the obtained resource package into a Unity package manager, and calling the relevant resource package through Unity software when developing the relevant project.
Optionally, loading each resource package to the package manager of Unity includes: copying the resource packet to a designated path of the packet manager; the package manager automatically loads the resource package.
When a resource package is loaded into a Unity package manager, the resource package can be directly copied to a specified path corresponding to the Unity package manager, and the package manager can automatically load the resource package into Unity.
In one embodiment provided herein, resource Package A is copied to the Package directory of the Package manager of Unity. And opening the Unity software, and automatically loading the resource package A by the Unity.
Optionally, the package manager includes a corresponding item list, where the item list includes the resource package corresponding to the package manager, and loading each resource package to the package manager of the Unity includes: acquiring a resource packet path of the resource packet; writing the resource packet path to a specified position of the item list; and the package manager loads the resource package according to the specified position of the project list.
When the resource package is loaded into the Unity package manager, the project list in the package manager can be modified, wherein the project list comprises the name, the path and other related information of the resource package in the package manager. The resource package can be stored in any path, and only the path of the resource package needs to be obtained and written into the corresponding position of the project list for storing the path of the resource package, and the package manager can automatically load the resource package into the Unity.
The resource package is stored in a position designated by a user, so that the user can conveniently develop and modify the resource package for the second time, and the resource package can also be used as a means for developing the resource package.
In a specific embodiment provided by the application, a resource package A is stored in a path of D: \ Users \ Pack', and the path is written into a Manifest file of Unity software, so that Unity can load the resource package A according to the path.
Step 206: and acquiring the project requirement corresponding to the project to be processed.
And acquiring the project requirement corresponding to the project to be processed, namely acquiring what purpose or effect the current project needs to achieve.
Step 208: and determining a target resource package according to the project requirement, and generating a corresponding target package list under the root directory of the project to be processed.
And determining a corresponding target resource package according to the project requirement, and generating a corresponding target package list in a root directory of the project to be processed according to the project name to be processed and the Unity version, wherein the target package list is required to declare related information such as the resource package name, the resource package version number, the description information of the resource package, the Unity version information and the like.
In one embodiment provided herein, referring to fig. 3, fig. 3 shows the relevant information stated in a specific target package list. Wherein, the name represents the name of the resource package, the version represents the version number of the resource package, the description represents the description information of the resource package, and the Unity represents the version information of the Unity.
Step 210: and referencing the target resource package in the item to be processed according to the target package list.
And enabling the to-be-processed item to refer to the target resource package according to the target package list.
In one embodiment provided by the present application, the to-be-processed item is X, and the target package list is "X-a.package. And the item X to be processed applies a corresponding target resource packet A according to the target packet list X-A.package.json.
Step 212: compiling the to-be-processed project and the target resource package and generating a project file.
Compiling the to-be-processed project and the target resource package, and generating a corresponding project file after the compiling is successful.
According to the Unity-based resource package processing method provided by the embodiment of the application, at least one prefabricated resource package is obtained from the version control system, the same resource package in a plurality of projects can be uniformly managed by using the version control system, the project requirement corresponding to the project to be processed is obtained, the target resource package is determined according to the project requirement, the corresponding target package list is generated under the root directory of the project to be processed, the related information of the target resource package can be clearly and accurately known, and the working efficiency is improved.
Referring to fig. 4, fig. 4 shows a Unity-based resource package processing method according to an embodiment of the present application, which includes steps 402 to 416.
Step 402: at least one pre-made resource package is obtained from the version control system.
Step 402 is consistent with the method of step 202, and for the specific explanation of step 402, refer to the details of step 202 in the foregoing embodiment, which are not repeated herein.
In the embodiment provided by the application, three pre-manufactured resource packages, namely a resource package X, a resource package Y and a resource package Z, are acquired from the SVN version control system.
Step 404: and acquiring a resource packet path of the resource packet.
In the embodiment provided by the application, the path of the resource package X is D: \ Users \ PackX ", the path of the resource package Y is D: \ Users \ PackY", and the path of the resource package Z is D: \ Users \ PackZ ".
Step 406: and writing the resource packet path to a specified position of the item list.
The package manager comprises a corresponding item list, wherein the item list comprises a resource package corresponding to the package manager.
In the embodiment provided by the application, the path of the resource packet is written into the corresponding position in the Manifest.
Step 408: and the package manager loads the resource package according to the specified position of the project list.
In the embodiment provided by the present application, the Unity package manager loads the resource package X, the resource package Y, and the resource package Z according to the resource package path in the Manifest file.
Optionally, after the package manager loads the resource package according to the specified position of the item list, the method further includes: and acquiring the resource package type corresponding to each resource package, classifying the resource packages according to the resource package types, generating at least one custom program set, and generating a corresponding custom script for each custom program set.
In the embodiment provided by the application, the resource package X is acquired as a plug-in, the resource package Y is acquired as a material, and the resource package Z is acquired as a tool. And respectively creating a corresponding custom program set corresponding to the asmdef file for each resource packet. And generating a corresponding custom script for each resource packet, wherein the custom scripts are of two types, one type is a compiling script, the other type is an operation script, and the asmdef is used for dividing codes distributed in different folders into different compiling modules and preventing the compiling time in the compiling stage from being too long due to the increase of the code amount.
Step 410: and acquiring the project requirement corresponding to the project to be processed.
In the embodiment provided by the application, a project requirement corresponding to a to-be-processed project is received, and the project requirement requires a plug-in package to be used in the to-be-processed project.
Step 412: and determining a target resource package according to the project requirement, and generating a corresponding target package list under the root directory of the project to be processed.
In the embodiment provided by the application, according to the project requirement, the resource package X which needs to be used is determined, and the corresponding package json file is generated under the root directory of the project to be processed.
Step 414: and referencing the target resource package in the item to be processed according to the target package list.
In the embodiment provided by the application, the to-be-processed item applies the corresponding resource package X according to a package json file.
Step 416: compiling the to-be-processed project and the target resource package and generating a project file.
In the embodiment provided by the application, the project to be processed and the resource package X are compiled through the asmdef file, and a final project file is generated.
According to the Unity-based resource package processing method provided by the embodiment of the application, at least one prefabricated resource package is obtained from the version control system, the same resource package in a plurality of projects can be uniformly managed by using the version control system, the project requirement corresponding to the project to be processed is obtained, the target resource package is determined according to the project requirement, the corresponding target package list is generated under the root directory of the project to be processed, the related information of the target resource package can be clearly and accurately known, and the working efficiency is improved.
Secondly, the resource packets are classified according to the resource packet types to generate a custom program set, so that the compiling time in a compiling stage can be saved, and the compiling time is prevented from being prolonged due to the increase of code quantity.
Corresponding to the above method embodiment, the present application further provides an embodiment of a Unity-based resource package processing apparatus, and fig. 5 shows a schematic structural diagram of the Unity-based resource package processing apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
an obtain resource package module 502 configured to obtain at least one pre-made resource package from the version control system;
a load resource package module 504 configured to load each of the resource packages to a package manager of Unity.
The acquire demand module 506 is configured to acquire a project demand corresponding to the to-be-processed project.
A resource package determining module 508 configured to determine a target resource package according to the project requirement, and generate a corresponding target package list under the root directory of the to-be-processed project.
A reference resource package module 510 configured to reference the target resource package in the to-be-processed item according to the target package manifest.
A compiling and generating module 512 configured to compile the to-be-processed item and the target resource package and generate a item file.
Optionally, the apparatus further comprises:
and the resource package type obtaining module is configured to obtain the resource package type corresponding to each resource package.
And the classification module is configured to classify the resource packet according to the resource packet type and generate at least one custom procedure set.
And the script generation module is configured to generate a corresponding custom script for each custom program set.
Optionally, the script generating module is further configured to generate a corresponding compiling script and a running script for each custom program set, so that the compiling script is executed when the to-be-processed item is compiled, and the running script is executed when the to-be-processed item is run.
Optionally, the load resource package module 504 is further configured to copy the resource package to a specified path of the package manager; the package manager automatically loads the resource package.
Optionally, the package manager includes a corresponding item list, where the item list includes a resource package corresponding to the package manager;
the load resource package module 504 is further configured to obtain a resource package path of the resource package; writing the resource packet path to a specified position of the item list; and the package manager loads the resource package according to the specified position of the project list.
Optionally, the apparatus further comprises:
a get completed items module configured to get at least two completed items.
An extract resource package module configured to extract the same resource package in each of the completed projects.
And the uploading resource packet module is configured to upload the same resource packet to the version control system as a pre-manufactured resource packet.
According to the Unity-based resource package processing device, at least one prefabricated resource package is obtained from the version control system, the same resource package in a plurality of projects can be uniformly managed by using the version control system, project requirements corresponding to the projects to be processed are obtained, a target resource package is determined according to the project requirements, a corresponding target package list is generated under the root directory of the projects to be processed, relevant information of the target resource package can be clearly and accurately known, and the working efficiency is improved.
Secondly, the resource packets are classified according to the resource packet types to generate a custom program set, so that the compiling time in a compiling stage can be saved, and the compiling time is prevented from being prolonged due to the increase of code quantity.
An embodiment of the present application further provides a computing device, which includes a memory, a processor, and computer instructions stored in the memory and executable on the processor, where the processor implements the steps of the Unity-based resource package processing method when executing the instructions.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, the method for processing the Unity-based resource package is implemented.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the Unity-based resource package processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the Unity-based resource package processing method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.
Claims (14)
1. A Unity-based resource package processing method is characterized by comprising the following steps:
acquiring at least one prefabricated resource package from a version control system;
loading each of the resource packages to a package manager of Unity;
acquiring a project requirement corresponding to a project to be processed;
determining a target resource package according to the project requirement, and generating a corresponding target package list under the root directory of the project to be processed;
the target resource package is referred in the project to be processed according to the target package list;
compiling the to-be-processed project and the target resource package and generating a project file.
2. The Unity-based resource package processing method as recited in claim 1, wherein after loading each of the resource packages into the Unity's package manager, further comprising:
acquiring a resource packet type corresponding to each resource packet;
classifying the resource packets according to the resource packet types to generate at least one custom program set;
and generating a corresponding custom script for each custom program set.
3. The Unity-based resource package processing method of claim 2, wherein generating a corresponding custom script for each custom assembly comprises:
and generating a corresponding compiling script and an operating script for each custom program set so as to execute the compiling script when the item to be processed is compiled and execute the operating script when the item to be processed is operated.
4. The Unity-based resource package processing method of claim 1, wherein loading each of said resource packages to a Unity's package manager comprises:
copying the resource packet to a designated path of the packet manager;
the package manager automatically loads the resource package.
5. The Unity-based resource package processing method according to claim 1, wherein said package manager comprises a corresponding item manifest, wherein said item manifest comprises the resource package corresponding to said package manager;
loading each of the resource packages to a package manager of Unity, comprising:
acquiring a resource packet path of the resource packet;
writing the resource packet path to a specified position of the item list;
and the package manager loads the resource package according to the specified position of the project list.
6. The Unity-based resource package processing method as claimed in claim 1, wherein before obtaining at least one pre-fabricated resource package from a versioning system, further comprising:
acquiring at least two completed projects;
extracting the same resource package in each completed project;
and uploading the same resource package to the version control system as a pre-made resource package.
7. A Unity-based resource package processing apparatus, comprising:
the resource package obtaining module is configured to obtain at least one prefabricated resource package from the version control system;
a load resource package module configured to load each of the resource packages to a package manager of Unity;
the acquisition demand module is configured to acquire project demands corresponding to the projects to be processed;
the resource package determining module is configured to determine a target resource package according to the project requirement, and generate a corresponding target package list under the root directory of the project to be processed;
a reference resource package module configured to reference the target resource package in the item to be processed according to the target package list;
and the compiling generation module is configured to compile the to-be-processed item and the target resource package and generate an item file.
8. The Unity-based resource package processing apparatus of claim 7 further comprising:
the resource package type obtaining module is configured to obtain a resource package type corresponding to each resource package;
the classification module is configured to classify the resource packet according to the resource packet type and generate at least one custom program set;
and the script generation module is configured to generate a corresponding custom script for each custom program set.
9. The Unity-based resource package processing apparatus of claim 8,
the script generation module is further configured to generate a corresponding compiling script and a running script for each custom program set, so that the compiling script is executed when the to-be-processed item is compiled, and the running script is executed when the to-be-processed item is run.
10. The Unity-based resource package processing apparatus of claim 7 wherein,
the load resource package module is further configured to copy the resource package to a specified path of the package manager; the package manager automatically loads the resource package.
11. The Unity-based resource package processing apparatus of claim 7, wherein said package manager comprises a corresponding item manifest, wherein said item manifest comprises the resource package to which said package manager corresponds;
the loading resource packet module is further configured to obtain a resource packet path of the resource packet; writing the resource packet path to a specified position of the item list; and the package manager loads the resource package according to the specified position of the project list.
12. The Unity-based resource package processing apparatus of claim 7 further comprising:
an acquire completed items module configured to acquire at least two completed items;
an extract resource package module configured to extract the same resource package in each of the completed projects;
and the uploading resource packet module is configured to upload the same resource packet to the version control system as a pre-manufactured resource packet.
13. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-6 when executing the instructions.
14. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911367462.6A CN111026437A (en) | 2019-12-26 | 2019-12-26 | Unity-based resource package processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911367462.6A CN111026437A (en) | 2019-12-26 | 2019-12-26 | Unity-based resource package processing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111026437A true CN111026437A (en) | 2020-04-17 |
Family
ID=70213864
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911367462.6A Pending CN111026437A (en) | 2019-12-26 | 2019-12-26 | Unity-based resource package processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111026437A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114218101A (en) * | 2021-12-15 | 2022-03-22 | 厦门极致互动网络技术股份有限公司 | Method for quickly switching versions in development environment |
| CN115543425A (en) * | 2022-10-28 | 2022-12-30 | 厦门极致互动网络技术股份有限公司 | A method for Unity IOS platform to access third-party SDK |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060036405A1 (en) * | 2004-08-10 | 2006-02-16 | Byrd Stephen A | Apparatus, system, and method for analyzing the association of a resource to a business process |
| CN101316226A (en) * | 2007-06-01 | 2008-12-03 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring resources |
| CN107402788A (en) * | 2017-07-25 | 2017-11-28 | 网易(杭州)网络有限公司 | Resource packing management method and device |
| CN108363564A (en) * | 2018-01-23 | 2018-08-03 | 平安普惠企业管理有限公司 | Entry modularization implementation method, device, terminal device and storage medium |
| CN109117425A (en) * | 2017-06-22 | 2019-01-01 | 奥多比公司 | Management is stored as the digital asset of component and packaging file |
| CN110515620A (en) * | 2019-08-12 | 2019-11-29 | 广州小丑鱼信息科技有限公司 | A kind of automation method for processing resource and system |
-
2019
- 2019-12-26 CN CN201911367462.6A patent/CN111026437A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060036405A1 (en) * | 2004-08-10 | 2006-02-16 | Byrd Stephen A | Apparatus, system, and method for analyzing the association of a resource to a business process |
| CN101316226A (en) * | 2007-06-01 | 2008-12-03 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring resources |
| CN109117425A (en) * | 2017-06-22 | 2019-01-01 | 奥多比公司 | Management is stored as the digital asset of component and packaging file |
| CN107402788A (en) * | 2017-07-25 | 2017-11-28 | 网易(杭州)网络有限公司 | Resource packing management method and device |
| CN108363564A (en) * | 2018-01-23 | 2018-08-03 | 平安普惠企业管理有限公司 | Entry modularization implementation method, device, terminal device and storage medium |
| CN110515620A (en) * | 2019-08-12 | 2019-11-29 | 广州小丑鱼信息科技有限公司 | A kind of automation method for processing resource and system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114218101A (en) * | 2021-12-15 | 2022-03-22 | 厦门极致互动网络技术股份有限公司 | Method for quickly switching versions in development environment |
| CN115543425A (en) * | 2022-10-28 | 2022-12-30 | 厦门极致互动网络技术股份有限公司 | A method for Unity IOS platform to access third-party SDK |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111324359B (en) | Plug-in deployment method and device | |
| CN109032662B (en) | Code file generation method and device, computer equipment and storage medium | |
| US20200387372A1 (en) | Microservice file generation system | |
| US9959336B2 (en) | Compiling extract, transform, and load job test data cases | |
| CN106547527B (en) | JavaScript file construction method and device | |
| CN114398073B (en) | Application updating method and device based on RN | |
| CN115639986A (en) | Software package construction method and device | |
| CN113360156A (en) | IOS compiling method and related equipment | |
| CN113849181A (en) | Cross-compilation tool chain construction method, device, electronic device and storage medium | |
| CN112000334B (en) | Page development method, device, server and storage medium | |
| CN114201174A (en) | Construction method, device, electronic device and storage medium of hybrid mobile application | |
| CN111026437A (en) | Unity-based resource package processing method and device | |
| CN112328241B (en) | Method and device for creating Android library module dependency relationship in application program development | |
| CN114253595A (en) | Code warehouse management method and device, computer equipment and storage medium | |
| CN116523052A (en) | Rapid reasoning method, device and equipment | |
| CN115794162A (en) | Method and device for optimizing differential update during hot update | |
| CN116501365A (en) | Resource calling method, device and equipment based on algorithm platform | |
| CN116679972A (en) | Thermal repair method, device, electronic equipment and storage medium | |
| CN115033249A (en) | File compiling method and device | |
| CN108804107A (en) | Using Compilation Method and device | |
| CN113050986A (en) | Object management method and device | |
| CN115167906A (en) | Resource hot updating method and device | |
| CN114780175B (en) | Configuration information generation method and device | |
| CN118245137B (en) | Method, system, equipment and medium for managing data object | |
| CN114675867B (en) | A data processing method, device, server and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200417 |
|
| RJ01 | Rejection of invention patent application after publication |