CN111569427B - Resource processing method and device, storage medium and electronic device - Google Patents
Resource processing method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN111569427B CN111569427B CN202010525186.8A CN202010525186A CN111569427B CN 111569427 B CN111569427 B CN 111569427B CN 202010525186 A CN202010525186 A CN 202010525186A CN 111569427 B CN111569427 B CN 111569427B
- Authority
- CN
- China
- Prior art keywords
- resource
- prefabricated
- engine
- target
- original
- 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.)
- Active
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a resource processing method and device, a storage medium and an electronic device. The method comprises the following steps: the method comprises the steps that a first engine obtains target prefabricated variant resources, wherein the target prefabricated variant resources are determined by a second engine and are used for modifying original prefabricated resources, and the original prefabricated resources comprise original resource information; the first engine acquires target resource information from target prefabricated variant resources, wherein the target resource information and the original resource information have the same attribute; the first engine modifies the original resource information based on the target resource information. By the method and the device, the technical effect of effectively modifying the resources is achieved.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for processing resources, a storage medium, and an electronic apparatus.
Background
At present, after an engine corresponding to a programmer provides logic to control a resource, the engine corresponding to an artist can adjust the structure of the resource at all times, which can cause that the program logic is not corresponding to the structure or naming of the resource, so that a plurality of logic errors are generated during operation, and the software of the engine corresponding to the artist cannot normally run after the resource is modified, so that the technical problem that the resource is difficult to modify exists.
Aiming at the technical problem that resources are difficult to be effectively modified in the prior art, no effective solution is proposed at present.
Disclosure of Invention
The invention mainly aims to provide a resource processing method, a device, a storage medium and an electronic device, so as to at least solve the technical problem that resources are difficult to effectively modify.
In order to achieve the above object, according to one aspect of the present invention, there is provided a method of processing resources. The method may include: the method comprises the steps that a first engine obtains target prefabricated variant resources, wherein the target prefabricated variant resources are determined by a second engine and are used for modifying original prefabricated resources, and the original prefabricated resources comprise original resource information; the first engine acquires target resource information from target prefabricated variant resources, wherein the target resource information and the original resource information have the same attribute; the first engine modifies the original resource information based on the target resource information.
Optionally, before the first engine obtains the target prefabricated variant resource, the method further comprises: the first engine determines original prefabricated resources; the first engine creates an original prefabricated variant resource based on the original prefabricated resource, wherein the original prefabricated variant resource comprises resource information allowing modification in the original prefabricated resource; the first engine stores the original prefabricated variant resource into the target folder, wherein the original prefabricated variant resource is acquired in the target folder by the second engine and is modified into the target prefabricated variant resource.
Optionally, the first engine creates the original prefabricated variant resource based on the original prefabricated resource, including: the first engine acquires the identification of the original prefabricated resource; the first engine generates original prefabricated variant resources based on the identification and the resource information that allows modification.
Optionally, the first engine obtains the target prefabricated variant resource, including: the first engine obtains the target prefabricated variant resource from the target folder.
Optionally, the first engine obtains the target prefabricated variant resource from the target folder, including: the first engine obtains the target prefabricated variant resource from the target folder through the co-collaboration tool.
Optionally, the first engine modifies the original resource information based on the target resource information, including: the first engine determines at least one attribute indicated by the target resource information; the first engine acquires original resource information corresponding to at least one attribute; the first engine updates original resource information corresponding to at least one attribute through the target resource information.
In order to achieve the above object, according to one aspect of the present invention, there is also provided another resource processing method. The method may include: the second engine determines a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information; the second engine sends the target prefabricated variant resource to the first engine, wherein target resource information in the target prefabricated variant resource has the same attribute as original resource information, and the target resource information is used for enabling the first engine to modify the original resource information.
Optionally, the second engine determining the target prefabricated variant resource comprises: the second engine acquires original prefabricated variant resources from the target folder, wherein the original prefabricated variant resources are created by the first engine based on the original prefabricated resources and comprise resource information allowing modification in the original prefabricated resources; and modifying the original prefabricated variant resource by the second engine to obtain the target prefabricated variant resource.
Optionally, the second engine sends the target prefabricated variant resource to the first engine, including: the second engine stores the target prefabricated variant resource in the target folder so that the first engine obtains the target prefabricated variant resource from the target folder.
Optionally, the second engine stores the target prefabricated variant resource into a target folder, including: the second engine stores the target prefabricated variant resource into the target folder through the co-collaboration tool.
In order to achieve the above object, according to one aspect of the present invention, there is provided a method of processing resources. The method may include: the second engine determines a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information; the first engine acquires a target prefabricated variant resource and modifies original resource information based on target resource information in the target prefabricated variant resource, wherein the target resource information and the original resource information have the same attribute.
In order to achieve the above object, according to an aspect of the present invention, there is also provided a processing apparatus of a resource. The apparatus may include: a first obtaining unit, configured to cause a first engine to obtain a target prefabricated variant resource, where the target prefabricated variant resource is determined by a second engine, and is configured to modify an original prefabricated resource, and the original prefabricated resource includes original resource information; the second acquisition unit is used for enabling the first engine to acquire target resource information from the target prefabricated variant resource, wherein the target resource information and the original resource information have the same attribute; and a modification unit for causing the first engine to modify the original resource information based on the target resource information.
In order to achieve the above object, according to an aspect of the present invention, there is also provided a processing apparatus of another resource. The apparatus may include: a determining unit configured to cause the second engine to determine a target prefabricated variant resource, wherein the target prefabricated variant resource is used to modify an original prefabricated resource, and the original prefabricated resource includes original resource information; and the sending unit is used for enabling the second engine to send the target prefabricated variant resource to the first engine, wherein the target resource information in the target prefabricated variant resource has the same attribute as the original resource information, and the target resource information is used for enabling the first engine to modify the original resource information.
To achieve the above object, according to another aspect of the present invention, there is provided a computer-readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to control a device in which the computer readable storage medium is located to execute a method for processing resources according to an embodiment of the present invention.
In order to achieve the above object, according to another aspect of the present invention, there is provided an electronic device. The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method for processing resources according to the embodiment of the invention.
The method comprises the steps that a first engine is used for obtaining target prefabricated variant resources, wherein the target prefabricated variant resources are determined by a second engine and used for modifying original prefabricated resources, and the original prefabricated resources comprise original resource information; the first engine acquires target resource information from target prefabricated variant resources, wherein the target resource information and the original resource information have the same attribute; the first engine modifies the original resource information based on the target resource information. That is, the first engine of the application can determine the corresponding original resource information that the second engine corresponding to the artistic staff needs to be modified by the first engine through the target resource information in the target prefabricated variant resource, and further the original resource information is modified through the target resource information, so that the technical problem that the resource is difficult to be effectively modified is solved, and the technical effect of effectively modifying the resource is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a resource processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of processing resources according to an embodiment of the invention;
FIG. 3 is a flow chart of another method of processing resources according to an embodiment of the invention;
FIG. 4 is a flow chart of another method of processing resources according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an interface for modifying content and modifying corresponding functional logic according to Prefab Variant, in accordance with an embodiment of the invention;
FIG. 6 is a schematic diagram of a processing device for a resource according to an embodiment of the invention; and
FIG. 7 is a schematic diagram of another resource processing device according to an embodiment of the invention.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to a method for processing resources according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for processing resources in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for processing a resource running on the mobile terminal is provided, and fig. 2 is a flowchart of a method for processing a resource according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
in step S202, the first engine acquires the target prefabricated variant resource.
In the solution provided in the above step S202 of the present invention, the target prefabricated variant resource is determined by the second engine and is used to modify the original prefabricated resource, where the original prefabricated resource includes the original resource information.
After this embodiment, the first engine may be an engine used by a programmer and the second engine may be an engine used by an artist, the first engine being configured to provide logic to control the resources provided by the second engine, thereby fulfilling the needs of the planner. The resource may be a prefabricated (Prefab) resource, which stores information related to performance, and may be a Unity resource.
After the first engine provides logic to control the original prefabricated resources to fulfill the needs of the planner, the first engine may acquire a target prefabricated Variant resource (Prefab variable) determined by the second engine, where the target prefabricated Variant resource may be obtained by modifying the original prefabricated Variant resource by the second engine, and the original prefabricated Variant resource may be created by the first engine through the selected original prefabricated resource, where the original prefabricated Variant resource may refer to the performance information of the selected original prefabricated resource and may extend the additional performance information, or may be a Unity resource, that is, the original prefabricated Variant resource is a prefabricated Variant of the original prefabricated resource, and may provide modification by the second engine. It should be noted that, the original prefabricated resource is an original prefabricated body required by the software in operation, and because the original prefabricated resource is used by the software in operation, the second engine corresponding to the artist obtains the target prefabricated resource variant by modifying the original prefabricated resource variant, and the second engine does not have any influence on the software.
The first engine of this embodiment obtains a target prefabricated variant resource, which may be represented by a file, that is, a target prefabricated variant resource file, may be understood as a latest prefabricated variant resource file, which is used to modify an original prefabricated resource of the first engine to modify corresponding functional logic, where the original prefabricated resource includes original resource information that needs to be specifically modified, for example, location information, rotation information, and the like of the current resource, where the location information may be represented as m_localposition { x: θ, y: θ, z: θ }, and the rotation information may be represented as m_localrotation { x: θ, y: θ, z: θ, w:1}.
Alternatively, the original prefabricated resource in this embodiment may be embodied by a file, that is, an original prefabricated resource file, where location information, rotation information, etc. of the current resource may be recorded. Alternatively, the embodiment creates meta files for the original prefabricated resources, where the meta files are files corresponding to the original prefabricated resources created by the first engine for convenience in managing the resources (including the original prefabricated resource files), and each of the original prefabricated resource files may correspond to one meta file. Alternatively, the meta file of this embodiment may store a unique identification of the original prefabricated resource file, for example, the identification may be guid, 5e83d1681bbaa194aa6f46885 θ 65cf43.
In step S204, the first engine acquires target resource information from the target prefabricated variant resource, where the target resource information has the same attribute as the original resource information.
In the technical solution provided in the above step S204 of the present invention, after the first engine obtains the target prefabricated variant resource, the first engine obtains the target resource information from the target prefabricated variant resource, where the target resource information has the same attribute as the original resource information.
In this embodiment, the target resource information in the target prefabricated variant resource may be used to adjust the structure of the original prefabricated resource, and may be information different from the original resource information with the same attribute, that is, the difference information, the difference data, and the difference item may indicate that the original prefabricated resource is changed, and reflect the modification intention of the artwork corresponding to the second engine, so that the embodiment may clearly determine, by using the target resource information, the original resource information in the original prefabricated resource that needs to be modified, for example, the original resource information is the location information a under the location attribute, and the target resource information is the location information a after the change under the location attribute recorded in the target prefabricated variant resource.
After the first engine of this embodiment obtains the target resource information from the target prefabricated variant resource, the first engine can check that the target resource information exists in the target prefabricated variant resource through the editor, which also reduces the communication cost between the first engine and the second engine (the second engine is not required to specifically notify the first engine of which content is specifically changed), and further obtains the target resource information to modify the corresponding original resource information.
In step S206, the first engine modifies the original resource information based on the target resource information.
In the technical solution provided in the above step S206 of the present invention, after the first engine obtains the target resource information from the target prefabricated variant resource, the first engine modifies the original resource information based on the target resource information.
In this embodiment, the first engine may modify the original resource information in the original prefabricated resource according to the target resource information, and may modify the logic code, thereby modifying the function logic corresponding to the original resource information, and further updating the modified function logic to the function logic corresponding to the original prefabricated resource, so as to obtain the latest prefabricated resource. After the first engine modifies the original resource information based on the target resource information, the first engine can submit the latest prefabricated resource to the target folder through the co-collaboration tool so that other people in the project group can acquire and use the latest prefabricated resource, the requirement of modifying the original prefabricated resource by the second engine corresponding to the real-time follow-up art personnel is met, and the problem that a program logic is not corresponding to the prefabricated resource, and logic errors are generated in operation is avoided.
It should be noted that, in this embodiment, after the first engine acquires the target prefabricated variant resource, the first engine may not immediately follow up modification, but may process other operations first, and then modify the original resource information based on the target resource information, so as to avoid the problem that the first engine is required to immediately follow up the current modification of the prefabricated resource by the second engine, and after the first engine modifies the logic code, other engines in the project acquire new resources, which results in failure to work normally, and also avoid the problem that the original prefabricated resource is directly modified by the first engine, so that the effect required by the artist cannot be achieved, and the problem of wasting the program resource is avoided.
The method comprises the steps of S202 to S206, obtaining target prefabricated variant resources through a first engine, wherein the target prefabricated variant resources are determined by a second engine and used for modifying original prefabricated resources, and the original prefabricated resources comprise original resource information; the first engine acquires target resource information from target prefabricated variant resources, wherein the target resource information and the original resource information have the same attribute; the first engine modifies the original resource information based on the target resource information. That is, the first engine of this embodiment can determine, through the target resource information in the target prefabricated variant resource, that the second engine corresponding to the artist needs the corresponding original resource information modified by the first engine, and further modify the original resource information through the target resource information, so that the problem that the program logic cannot correspond to the structure (or naming) of the prefabricated resource, and thus an error occurs when the software runs, and thus the operation is stopped, and further the other engines cannot work normally is solved, the technical problem that the resource is difficult to modify effectively is solved, and the technical effect of modifying the resource effectively is achieved.
The above-described method of this embodiment is further described below.
As an alternative embodiment, before the first engine obtains the target prefabricated variant resource in step S202, the method further includes: the first engine determines original prefabricated resources; the first engine creates an original prefabricated variant resource based on the original prefabricated resource, wherein the original prefabricated variant resource comprises resource information allowing modification in the original prefabricated resource; the first engine stores the original prefabricated variant resource into the target folder, wherein the original prefabricated variant resource is acquired in the target folder by the second engine and is modified into the target prefabricated variant resource.
In this embodiment, before the first engine obtains the target prefabricated Variant resource, the first engine may first determine the original prefabricated resource, alternatively, the first engine may use an in-built tool to select the original prefabricated resource, and then Create the original prefabricated Variant resource based on the selected original prefabricated resource, for example, through a "Create/Prefab variable" function control of the first engine, where the original prefabricated Variant resource is associated with the determined original prefabricated resource, may refer to the performance information of the original prefabricated resource, and may expand the additional performance information. Alternatively, the original prefabricated variant resource of the embodiment may include resource information that allows modification in the original prefabricated resource, for example, content including an attribute that allows modification in the original prefabricated resource, where the original resource information includes, for example, a parameter related to the location information. After the first engine creates the original prefabricated variant resource, the original prefabricated variant resource may be stored in a target folder, which may be a shared folder or a public repository, or may be a root folder with default software development, where all file resources of the software are stored, and may include an art resource file and a program code file, optionally, the original prefabricated variant resource of the embodiment is stored in the above-mentioned art resource file, where the art resource file is a subfolder of the root folder that is specially used for storing the art resource for modification of the art. The target folder in this embodiment may be accessed by a first engine corresponding to a programmer, a second engine corresponding to an artist, and an engine corresponding to a planner at the same time.
After the first engine stores the original prefabricated variant resource in the target folder, the original prefabricated variant resource may be retrieved in the target folder by the second engine and modified into the target prefabricated variant resource by an editor of the second engine. Alternatively, the difference information between the original prefabricated variant resource and the target prefabricated variant resource of the embodiment may be the target resource information described above.
It should be noted that, when the first engine in this embodiment makes a prefab, it is responsible for a logic portion, and when the second engine makes a prefab, it makes a performance resource, which is further described below.
As an alternative implementation manner, the first engine acquires the original prefabricated resource from the target folder, and controls the original prefabricated resource through the logic code to realize planning requirements, wherein the original prefabricated resource is manufactured by the second engine and stored in the target folder; the first engine creates an original prefabricated variant resource associated with the original prefabricated resource, wherein the original prefabricated variant resource includes resource information in the original prefabricated resource that allows modification; the first engine stores the original prefabricated variant resources into a target folder, wherein the original prefabricated variant resources are acquired in the target folder by the second engine and are modified into target prefabricated variant resources, and the target prefabricated variant resources are submitted to the target folder by the second engine through a co-collaboration tool; the first engine acquires target prefabricated variant resources from a target folder; the first engine modifies the logic code of the original resource information in the original prefabricated resource based on the logic code of the target resource information in the target prefabricated variant resource to obtain the latest prefabricated resource; the first engine stores the latest prefabricated resources to the target folder to share the latest prefabricated resources.
In this embodiment, the first engine may obtain the original prefabricated resource from "- > Prefab" in the target folder, and provide logic code to control the original prefabricated resource, so as to implement the planning requirement, where the original prefabricated resource is designed by the second engine according to the requirement, and stores it in "- > Prefab" in the target folder. After the first engine provides logic to control the original prefabricated resources to fulfill the planning requirements, the first engine creates an original prefabricated Variant resource associated with the original prefabricated resources using the Unity3D built-in tool (Prefab selected and using Create/Prefab variable) and stores the original prefabricated Variant resource in the target folder for modification by the second engine. The original prefabricated variant resource is obtained in a target folder by a second engine, and is modified into a target prefabricated variant resource by a Unity3D editor, the target prefabricated variant resource is submitted to the target folder by the second engine through a co-collaboration tool, so that the first engine can obtain the target prefabricated variant resource from the target folder, and can check whether the target prefabricated variant resource is a modified prefabricated variant resource or not through the Unity3D editor, for example, if data which is different from the original prefabricated resource is recorded in the target prefabricated variant resource, the target prefabricated variant resource can be determined to be the modified prefabricated variant resource, and the logic code of the original resource information in the original prefabricated resource can be modified based on the logic code of the target resource information in the target prefabricated variant resource, so that the latest prefabricated resource is obtained; the first engine stores the latest prefabricated resources to the target folder so that others within the project group can acquire and use them.
As an alternative embodiment, the first engine creates an original prefabricated variant resource based on the original prefabricated resource, comprising: the first engine acquires the identification of the original prefabricated resource; the first engine generates original prefabricated variant resources based on the identification and the resource information that allows modification.
In this embodiment, the first engine may obtain an identification of the original prefabricated resource, which may be an identification of an original prefabricated resource file of the original prefabricated resource, for example, guid, which may be 5e83d1681bbaa194aa6f46885 θ 65cf43. The first engine may generate an original prefabricated variant resource based on the identified and modified resource information, which may include the identified and modified resource information. Wherein, the original prefabricated variant resource can be indicated by the identification, which original prefabricated resource is referenced, and the resource information allowing modification can be the content of changing the attribute.
As an optional embodiment, step S202, the first engine obtains a target prefabricated variant resource, including: the first engine obtains the target prefabricated variant resource from the target folder.
In this embodiment, after modifying the original prefabricated variant resource into the target prefabricated variant resource by the editor of the second engine, the target prefabricated variant resource may be stored in the target folder by the second engine, and the first engine may then access the target folder, and obtain the target prefabricated variant resource from the target folder, that is, obtain the target prefabricated variant resource file.
As an alternative embodiment, the first engine obtains the target prefabricated variant resource from the target folder, including: the first engine obtains the target prefabricated variant resource from the target folder through the co-collaboration tool.
In this embodiment, the first engine may obtain, through a co-collaboration tool (SVN), the target prefabricated variant resource stored in the target folder by the second engine, so as to avoid the problem that the resource is modified by the second engine corresponding to the artist, and directly sent to the first engine corresponding to the programmer to modify the logic code after modification, so that the meta file corresponding to the resource is changed, and the picture (or other resource) referenced by the resource file is lost, and further, whether the target prefabricated variant resource changes relative to the original prefabricated variant resource is checked through the editor, and the changed information may be determined as the target resource information.
As an alternative embodiment, the first engine modifies the original resource information based on the target resource information, including: the first engine determines at least one attribute indicated by the target resource information; the first engine acquires original resource information corresponding to at least one attribute; the first engine updates original resource information corresponding to at least one attribute through the target resource information.
In this embodiment, after determining the target resource information, the first engine may determine that the target resource information is information that changes in the original prefabricated variant resource, for example, the target resource information is location information that changes in the original prefabricated variant resource. After the target resource information is determined to be changed information, at least one attribute indicated by the target resource information can be determined, wherein the attribute can be a position attribute, a rotation attribute and the like, and then the first engine acquires original resource information corresponding to the at least one attribute, and the original resource information corresponding to the at least one attribute is updated through the target resource information, wherein the updating can be that the original information is replaced through the target resource information, for example, the original position information in the original prefabricated resource is replaced through the changed position information in the target prefabricated variant resource.
It should be noted that, the above-mentioned resource processing method of the embodiment may be applied to a game, where the first engine and the second engine may be game engines, for example, unity3D, and the Unity3D may be a multi-platform comprehensive game development tool for creating types of interactive contents such as three-dimensional video games, building visualizations, real-time three-dimensional animations, and the like, and may be a fully integrated professional game engine.
Another method for processing resources according to the embodiment of the present invention is described below from the second engine side.
FIG. 3 is a flow chart of another method of processing resources according to an embodiment of the invention. As shown in fig. 3, the method may include the steps of:
in step S302, the second engine determines a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information.
In the technical solution provided in the above step S302 of the present invention, the second engine may be an engine used by an artist, and the resource provided by the second engine may be controlled by the logic provided by the first engine, so as to achieve the requirements of a planner.
The second engine of the embodiment modifies the original prefabricated variant resource to obtain the target prefabricated variant resource, wherein the original prefabricated variant resource can be created by the first engine through the selected original prefabricated resource, and the original prefabricated variant resource can refer to the performance information of the selected original prefabricated resource and can expand additional performance information. It should be noted that, since the software runs using the prefabricated resource, the second engine modifies the original prefabricated resource variant to obtain the target prefabricated resource variant, and does not have any influence on the software.
The second engine of this embodiment determines a target prefabricated variant resource, which may be represented by a file, and may be understood as a latest prefabricated variant resource file, for modifying an original prefabricated resource of the first engine, where the original prefabricated resource includes original resource information that needs to be specifically modified, for example, location information, rotation information, and the like of a current resource.
In step S304, the second engine sends the target prefabricated variant resource to the first engine, where the target resource information in the target prefabricated variant resource has the same attribute as the original resource information, and the target resource information is used to make the first engine modify the original resource information.
In the technical solution provided in the above step S304 of the present invention, the target resource information in the target prefabricated variant resource may be used to adjust the structure of the original prefabricated resource, may be information different from the original resource information having the same attribute, may indicate that the original prefabricated resource is changed, and reflects the modification intention of the artist corresponding to the second engine, so that the embodiment may clearly determine, through the target resource information, the original resource information in the original prefabricated resource that needs to be modified, for example, the original resource information is the location information a under the location attribute, and the target resource information is the location information a after the change under the location attribute recorded in the target prefabricated variant resource.
Optionally, the second engine in this embodiment stores the target prefabricated variant resource in the target folder, so that the first engine obtains the target prefabricated variant resource from the target folder, which avoids the problem that the resource is modified by the second engine, and directly sent to the first engine corresponding to the programmer to modify the logic code after modification, resulting in meta file change corresponding to the resource, and loss of pictures (or other resources) referenced by the resource file.
After the first engine of the embodiment obtains the target resource information from the target prefabricated variant resource, the first engine can check that the target resource information exists in the target prefabricated variant resource through the editor, so that the communication cost between the second engine and the first engine is reduced, and the target resource information is obtained to modify the corresponding original resource information.
In this embodiment, the first engine may modify the original resource information in the original prefabricated resource according to the target resource information, and may modify the logic code, thereby modifying the functional logic corresponding to the original resource information, and further updating the modified functional logic to the functional logic corresponding to the original prefabricated resource, so as to meet the requirement of the second engine corresponding to the real-time follow-up artist for modifying the original prefabricated resource, and avoid that the program logic does not correspond to the prefabricated resource, and some logic errors are generated during operation.
The second engine determines a target prefabricated variant resource through the steps S302 to S304, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information; the second engine sends the target prefabricated variant resource to the first engine, wherein target resource information in the target prefabricated variant resource has the same attribute as original resource information, and the target resource information is used for enabling the first engine to modify the original resource information. That is, the second engine of the embodiment determines the corresponding original resource information which needs to be modified by the first engine through the target resource information in the target prefabricated variant resource, and the first engine further modifies the original resource information through the target resource information, so that the technical problem that the resource is difficult to be effectively modified is solved, and the technical effect of effectively modifying the resource is achieved.
The above-described method of this embodiment is further described below.
As an alternative implementation mode, the second engine makes original prefabricated resources and stores the original prefabricated resources into the target folder, wherein the original prefabricated resources are obtained from the target folder by the first engine and controlled by logic codes to achieve planning requirements, original prefabricated variant resources associated with the original prefabricated resources are created by the first engine, the original prefabricated variant resources comprise resource information which is allowed to be modified in the original prefabricated resources, and the original prefabricated variant resources are stored into the target folder by the first engine; the second engine acquires original prefabricated variant resources from the target folder and modifies the original prefabricated variant resources into target prefabricated variant resources; and submitting the target prefabricated variant resource to the target folder through a co-collaboration tool by the second engine, wherein the target prefabricated variant resource is acquired from the target folder by the first engine, and the logic code of the target resource information in the target prefabricated variant resource is used for enabling the first engine to modify the logic code of the original resource information in the original prefabricated resource to obtain the latest prefabricated resource, and the latest prefabricated resource is stored in the target folder by the first engine so as to share the latest prefabricated resource.
In this embodiment, the second engine makes the presentation resource when making the prefab, while the first engine is responsible for the logic portion when making the prefab. Alternatively, the second engine of this embodiment may design the original prefabricated resource according to the requirement, store it in "- > Prefab" in the target folder, obtain it from "- > Prefab" in the target folder by the first engine, and provide logic code to control, thereby implementing the planning requirement. The original prefabricated variant resources associated with the original prefabricated resources described above may be created by the first engine using the Unity3D built-in tool and stored into the target folder for modification by the second engine. Optionally, the second engine acquires the original prefabricated variant resource in the target folder, modifies the original prefabricated variant resource into the target prefabricated variant resource through the Unity3D editor, and submits the target prefabricated variant resource to the target folder through the co-collaboration tool, so that the target prefabricated variant resource can be acquired from the target folder by the first engine, the first engine can check whether the target prefabricated variant resource is the modified prefabricated variant resource through the Unity3D editor, for example, if the target prefabricated variant resource records data different from the original prefabricated resource, the target prefabricated variant resource can be determined to be the modified prefabricated variant resource, the logic code of the target resource information in the target prefabricated variant resource can enable the first engine to modify the logic code of the original resource information in the original prefabricated resource, and accordingly the latest prefabricated resource can be stored in the target folder by the first engine so that other people in the project group can acquire and use the latest prefabricated resource.
As an alternative embodiment, step S302, the second engine determining the target prefabricated variant resource includes: the second engine acquires original prefabricated variant resources from the target folder, wherein the original prefabricated variant resources are created by the first engine based on the original prefabricated resources and comprise resource information allowing modification in the original prefabricated resources; and modifying the original prefabricated variant resource by the second engine to obtain the target prefabricated variant resource.
In this embodiment, the second engine obtains from the target folder an original prefabricated variant resource created for the first engine by determining the original prefabricated resource, the original prefabricated variant resource being associated with the determined original prefabricated resource, the representation information of the original prefabricated resource being referenceable to, and the additional representation information being expandable. Optionally, the original prefabricated variant resource of the embodiment may include resource information allowing modification in the original prefabricated resource, for example, content including an attribute allowing modification in the original prefabricated resource, where the original resource information includes, for example, a parameter related to location information, and the first engine stores the original prefabricated variant resource in the target folder, so that the second engine obtains an editor of the second engine of the original prefabricated variant resource from the target folder to modify the original prefabricated variant resource into the target prefabricated variant resource. Alternatively, the difference information between the original prefabricated variant resource and the target prefabricated variant resource of the embodiment may be the target resource information described above.
As an alternative embodiment, the second engine stores the target prefabricated variant resource into the target folder, including: the second engine stores the target prefabricated variant resource into the target folder through the co-collaboration tool.
In this embodiment, after the second engine modifies the original prefabricated variant resource to obtain the target prefabricated variant resource, the target prefabricated variant resource may be stored in a target folder, for example, in a public repository, through a co-collaboration tool, so that the first engine obtains the target prefabricated variant resource and modifies the original resource information based on the target resource information in the target prefabricated variant resource.
FIG. 4 is a flow chart of another method of processing resources according to an embodiment of the invention. As shown in fig. 4, the method may include the steps of:
in step S402, the second engine determines a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information.
In the technical solution provided in the above step S402 of the present invention, the second engine may modify the original prefabricated variant resource to obtain the target prefabricated variant resource, where the original prefabricated variant resource may be created by the first engine through the selected original prefabricated resource, and the original prefabricated variant resource may refer to the performance information of the selected original prefabricated resource and may extend the additional performance information. It should be noted that, since the software runs using the prefabricated resource, the second engine modifies the original prefabricated resource variant to obtain the target prefabricated resource variant, and does not have any influence on the software.
The second engine of this embodiment determines a target prefabricated variant resource, which may be represented by a file, and may be understood as a latest prefabricated variant resource file, for modifying an original prefabricated resource of the first engine, where the original prefabricated resource includes original resource information that needs to be specifically modified, for example, location information, rotation information, and the like of a current resource.
In step S404, the first engine acquires the target prefabricated variant resource, and modifies the original resource information based on the target resource information in the target prefabricated variant resource, where the target resource information and the original resource information have the same attribute.
In the technical solution provided in the step S404 of the present invention, the target resource information in the target prefabricated variant resource may be used to adjust the structure of the original prefabricated resource, may be information different from the original resource information with the same attribute, and may indicate that the original prefabricated resource is changed. The first engine can check that the target resource information exists in the target prefabricated variant resource through the editor, and the communication cost between the first engine and the second engine is reduced. After the first engine obtains the target resource information from the target prefabricated variant resource, the first engine modifies the original resource information based on the target resource information.
In this embodiment, the first engine may modify the original resource information in the original prefabricated resource according to the target resource information, and may modify the logic code, thereby modifying the function logic corresponding to the original resource information, and further updating the modified function logic to the function logic corresponding to the original prefabricated resource, so as to obtain the latest prefabricated resource. After the first engine modifies the original resource information based on the target resource information, the first engine can submit the latest prefabricated resource to the target folder through the co-collaboration tool so that other people in the project group can acquire and use the latest prefabricated resource, thereby meeting the requirement of modifying the original prefabricated resource by the second engine corresponding to the real-time follow-up art personnel, and avoiding some logic errors caused by the fact that program logic does not correspond to the prefabricated resource during operation.
According to the embodiment, through the method, the modification of the resource by the second engine corresponding to the artist does not influence the operation of the software; after the second engine corresponding to the artist modifies the resource, the first engine corresponding to the programmer does not need to immediately follow the modification (can process other operations preferentially), and then the corresponding resource is modified according to the modification indicated by the second engine corresponding to the artist; the target prefabricated variant resource of the embodiment can display the content of the original prefabricated resource, so that a second engine corresponding to a programmer can clearly determine which content is modified by the first engine and carry out corresponding logic modification on the content, the technical problem that the resource is difficult to effectively modify is solved, and the technical effect of effectively modifying the resource is achieved.
The following describes the resource processing method according to the embodiment of the present invention by way of example with reference to a preferred implementation, and specifically describes the resource processing method by way of example with reference to Unity3D as an engine.
In this embodiment, the staff collaboratively using the Unity3D development software is mainly composed of planners, art staff, and programmers. Wherein, the corresponding engine of the planner is responsible for providing the requirement of the software system function (the software comprises a plurality of system functions); the engine corresponding to the artistic staff designs and provides corresponding prefabricated resources (i.e. Prefab resources) according to the requirements; the corresponding engine of the programmer provides logic to control the Prefab resource, so that the requirements of the planner are met.
After the corresponding engine of the programmer completes the logic, the corresponding engine of the artist will always need to adjust the structure of the Prefab, but this results in that the program logic is not corresponding to the structure of the Prefab resource, but some logic errors are operated, at this time, the corresponding engine of the programmer needs to follow up the modification of the resource by the corresponding engine of the artist in real time, and the problem is solved quickly, otherwise, after the resource is modified by the corresponding engine of the artist, the software cannot run normally, so that other colleagues cannot work normally.
If the resource is modified by the engine corresponding to the programmer, the resource is submitted after the modification and the test are completed, but the best effect which the engine corresponding to the artist needs to achieve cannot be achieved, and the program resource is wasted; if the resource is modified by the engine corresponding to the artist, the resource is submitted through a co-collaboration tool after modification, the corresponding logic code is immediately modified by the engine corresponding to the programmer after the latest resource is acquired, and then submitted, the method requires the engine corresponding to the programmer to immediately follow the current modification, and during the modification of the logic code by the engine corresponding to the programmer, the engine of other colleagues in the project can not work normally after acquiring the new resource; if the resource is modified by the engine corresponding to the artist, the resource is directly sent to the engine corresponding to the programmer after modification, and the engine corresponding to the programmer submits after the logic code is modified, but this easily results in the meta file corresponding to the Unity resource being changed, resulting in the loss of the picture (or other resource) referenced by the resource file.
When the corresponding engine of the programmer and the corresponding engine of the artist and the co-collaboration tool develop the software function, the corresponding engine of the artist modifies the Prefab resource under the condition that the corresponding engine of the programmer completes the logic, so that the program logic cannot correspond to the structure (or naming) of the Prefab resource, and the software is wrongly stopped when running, thereby influencing the problem that other colleagues cannot work normally.
After the corresponding engine of the programmer provides logic to control the Prefab resource, so as to realize the requirement of the planner, the corresponding engine of the programmer uses a Unity3D built-in tool (selecting the Prefab resource and using the Create/Prefab variable) to Create a Prefab varaint resource associated with the Prefab resource, and places the Prefab varaint resource in an art work folder (the software development usually has a root folder in which the constituent software resources, including the art resource and the program code file, are stored, and the art work folder is only a subfolder which is specially used for storing the art resource under the root directory) for art modification. Wherein, the Prefab represents an original preform required by software in running, and Prefab Variant is a prefabricated Variant of Prefab and mainly provided for art modification.
In this embodiment, the file content of one Prefab resource created for implementing the function by the Unity3D corresponding to the programmer may record information such as the position and rotation of the current resource, for example, the position information may be represented as m_localposition: { x: θ, y: θ, z: θ }, and the rotation information may be represented as m_localrotation: { x: θ, y: θ, z: θ, w:1}.
The Unity3D of this embodiment may create a meta file for the Prefab resource, where the meta file is a file created by the Unity3D for convenient management of the resource (including Prefab file), each resource file corresponds to a meta file, and a unique identifier of the resource file is stored therein, for example, guid may be 5e83D1681bbaa194aa6f46885 θ 65cf43.
The Unity3D corresponding to the programmer in this embodiment may create Prefab Variant file content corresponding to the Prefab resource, record therein which Prefab resource the Prefab Variant refers to, and record the content of the change attribute.
In this embodiment, the Prefab Variant resource is modified by the Unity3D corresponding to the artist by the editor, then the modified Prefab Variant resource is submitted to the public repository by a co-collaboration tool (SVN), the engine corresponding to the programmer can obtain the latest Prefab Variant file by the co-collaboration tool, and then the Unity3D editor checks whether the Prefab Variant is modified. Since the Prefab resource is used when the software runs, the art modification (through the Unity3D editor) does not have any effect on the software. Because the Prefab variable records the data which is different from the Prefab, for example, the Prefab records a position information, and the Prefab variable also records a position information which corresponds to the Prefab variable and is changed, the difference information (for example, the difference information between the position information of two files) between the current Prefab variable and the Prefab can be checked through the Unity3D editor, and the engine corresponding to the artist is not required to inform the engine corresponding to the artist which content is changed, so that the communication cost between the engine corresponding to the programmer and the engine corresponding to the artist is reduced.
FIG. 5 is a schematic diagram of an interface for modifying content and modifying corresponding functional logic according to Prefab Variant, in accordance with an embodiment of the invention. As shown in fig. 5, the corresponding engine of the programmer selects the "override" function control according to the latest Prefab variable change content, selects the "object" to be operated to modify the corresponding function logic, then applies the change content to the original Prefab through the "apply" function control, and finally submits the latest Prefab.
The resource creation flow and the yield object (- > representing yield) of this embodiment are described below.
In this embodiment, the Prefab is created by the engine corresponding to the artist and put into the corresponding catalog- > Prefab, wherein the Prefab is not provided by the engine corresponding to the artist as designed by the artist according to the requirements.
And modifying the Prefab by the corresponding engine of the programmer to complete the corresponding function, generating Prefab Variant by the Prefab, and putting the Prefab Variant into the corresponding art catalog- > Prefab Variant.
The engine corresponding to the artist modifies the Prefab Variant, and after completion, the latest Prefab Variant is submitted and notified to the engine corresponding to the programmer.
The corresponding engine of the programmer obtains the latest Prefab Variant, applies the variation of the Prefab Variant to the Prefab, and submits the latest Prefab resource to the public warehouse through the co-collaboration tool after modifying the corresponding logic code so that other people in the project group can obtain and use the latest Prefab resource.
According to the embodiment, through the resource processing method, the modification of the resource by the second engine corresponding to the artistic staff does not influence the operation of the software; after the second engine corresponding to the artist modifies the resource, the first engine corresponding to the programmer does not need to immediately follow the modification (can process other operations preferentially), and then the corresponding resource is modified according to the modification indicated by the second engine corresponding to the artist; the target prefabricated variant resource of the embodiment can display the content of the original prefabricated resource, so that a second engine corresponding to a programmer can clearly determine which content is modified by the first engine and carry out corresponding logic modification on the content, the technical problem that the resource is difficult to effectively modify is solved, and the technical effect of effectively modifying the resource is achieved.
The embodiment of the invention also provides a device for processing the resources. It should be noted that, the processing apparatus for resources in this embodiment may be used to execute the processing method for resources shown in fig. 1 in this embodiment of the present invention.
Fig. 6 is a schematic diagram of a processing apparatus for a resource according to an embodiment of the present invention. As shown in fig. 6, the processing device 50 of the resource may include: a first acquisition unit 51, a second acquisition unit 52, and a modification unit 53.
A first obtaining unit 51, configured to enable the first engine to obtain a target prefabricated variant resource, where the target prefabricated variant resource is determined by the second engine, and is configured to modify an original prefabricated resource, and the original prefabricated resource includes original resource information.
A second obtaining unit 52, configured to enable the first engine to obtain target resource information from the target prefabricated variant resource, where the target resource information has the same attribute as the original resource information.
A modifying unit 53 for causing the first engine to modify the original resource information based on the target resource information.
Optionally, the apparatus further comprises: a first determining unit, configured to, before the first engine acquires the target prefabricated variant resource, cause the first engine to determine an original prefabricated resource; a creation unit configured to cause the first engine to create an original prefabricated variant resource based on the original prefabricated resource, wherein the original prefabricated variant resource includes resource information allowing modification in the original prefabricated resource; and the storage unit is used for enabling the first engine to store the original prefabricated variant resources into the target folder, wherein the original prefabricated variant resources are acquired in the target folder by the second engine and are modified into the target prefabricated variant resources.
Optionally, the creating unit includes: the first acquisition module is used for enabling the first engine to acquire the identification of the original prefabricated resource; a generation module for causing the first engine to generate the original prefabricated variant resource based on the identified and allowed modified resource information.
Optionally, the first determining unit includes: and the second acquisition module is used for enabling the first engine to acquire the target prefabricated variant resource from the target folder.
Optionally, the second acquisition module includes: and the acquisition sub-module is used for enabling the first engine to acquire the target prefabricated variant resource from the target folder through the co-collaboration tool.
Optionally, the modification unit 53 includes: a determining module for causing the first engine to determine at least one attribute indicated by the target resource information; the third acquisition module is used for enabling the first engine to acquire original resource information corresponding to at least one attribute; and the updating module is used for enabling the first engine to update the original resource information corresponding to the at least one attribute through the target resource information.
The embodiment of the invention also provides a processing device of another resource. It should be noted that, the processing apparatus for resources in this embodiment may be used to execute the processing method for resources shown in fig. 2 in this embodiment of the present invention.
FIG. 7 is a schematic diagram of another resource processing device according to an embodiment of the invention. As shown in fig. 7, the processing device 60 of the resource may include: a determination unit 61 and a transmission unit 62.
A determining unit 61 for causing the second engine to determine a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, the original prefabricated resource comprising original resource information.
And a sending unit 62, configured to enable the second engine to send the target prefabricated variant resource to the first engine, where the target resource information in the target prefabricated variant resource has the same attribute as the original resource information, and the target resource information is used to enable the first engine to modify the original resource information.
Alternatively, the determination unit 61 includes: a fourth obtaining module, configured to enable the second engine to obtain an original prefabricated variant resource from the target folder, where the original prefabricated variant resource is created by the first engine based on the original prefabricated resource, and includes resource information that allows modification in the original prefabricated resource; and the modification module is used for enabling the second engine to modify the original prefabricated variant resource to obtain the target prefabricated variant resource.
Alternatively, the transmission unit 62 includes: and the storage module is used for enabling the second engine to store the target prefabricated variant resource into the target folder so as to enable the first engine to acquire the target prefabricated variant resource from the target folder.
Optionally, the storage module includes: and the storage sub-module is used for enabling the second engine to store the target prefabricated variant resource into the target folder through the co-collaboration tool.
Embodiments of the present invention also provide a computer-readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to control a device in which the computer readable storage medium is located to execute a method for processing resources according to an embodiment of the present invention.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
The embodiment of the invention also provides an electronic device. The power plant may include a memory and a processor. The memory has stored therein a computer program, and the processor is arranged to run the computer program to perform the method of processing resources of an embodiment of the invention.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. A method for processing resources, comprising:
The method comprises the steps that a first engine obtains target prefabricated variant resources, wherein the target prefabricated variant resources are determined by a second engine and are used for modifying original prefabricated resources, and the original prefabricated resources comprise original resource information;
the first engine acquires target resource information from the target prefabricated variant resource, wherein the target resource information and the original resource information have the same attribute;
the first engine modifying the original resource information based on the target resource information;
wherein the first engine modifies the original resource information based on the target resource information, comprising: the first engine determining at least one attribute indicated by the target resource information; the first engine acquires original resource information corresponding to the at least one attribute; and the first engine updates the original resource information corresponding to the at least one attribute through the target resource information.
2. The method of claim 1, wherein prior to the first engine obtaining the target prefabricated variant resource, the method further comprises:
the first engine determining the original prefabricated resource;
the first engine creates an original prefabricated variant resource based on the original prefabricated resource, wherein the original prefabricated variant resource comprises resource information allowing modification in the original prefabricated resource;
The first engine stores the original prefabricated variant resource into a target folder, wherein the original prefabricated variant resource is acquired in the target folder by the second engine and is modified into the target prefabricated variant resource.
3. The method of claim 2, wherein the first engine creating an original prefabricated variant resource based on the original prefabricated resource comprises:
the first engine acquires the identification of the original prefabricated resource;
the first engine generates the original prefabricated variant resource based on the identification and the modification-allowed resource information.
4. The method of claim 2, wherein the first engine obtaining the target prefabricated variant resource comprises:
the first engine obtains the target prefabricated variant resource from the target folder.
5. The method of claim 4, wherein the first engine obtaining the target prefabricated variant resource from the target folder comprises:
the first engine obtains the target prefabricated variant resource from the target folder through a co-collaboration tool.
6. A method for processing resources, comprising:
A second engine determines a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information;
the second engine sends the target prefabricated variant resource to a first engine, wherein target resource information in the target prefabricated variant resource has the same attribute as the original resource information, and the target resource information is used for enabling the first engine to modify the original resource information;
the first engine is used for acquiring original resource information corresponding to at least one attribute, wherein the at least one attribute indicated by the target resource information is determined by the first engine, the original resource information corresponding to the at least one attribute is acquired by the first engine, and the original resource information corresponding to the at least one attribute is updated by the first engine through the target resource information.
7. The method of claim 6, wherein the second engine determining the target prefabricated variant resource comprises:
the second engine acquires original prefabricated variant resources from a target folder, wherein the original prefabricated variant resources are created by the first engine based on the original prefabricated resources and comprise resource information allowing modification in the original prefabricated resources;
And the second engine modifies the original prefabricated variant resource to obtain the target prefabricated variant resource.
8. The method of claim 6, wherein the second engine sending the target prefabricated variant resource to a first engine comprises:
the second engine stores the target prefabricated variant resource into a target folder so that the first engine obtains the target prefabricated variant resource from the target folder.
9. The method of claim 8, wherein the second engine storing the target prefabricated variant resource into a target folder comprises:
the second engine stores the target prefabricated variant resource into a target folder through a co-collaboration tool.
10. A method for processing resources, comprising:
a second engine determines a target prefabricated variant resource, wherein the target prefabricated variant resource is used for modifying an original prefabricated resource, and the original prefabricated resource comprises original resource information;
a first engine acquires the target prefabricated variant resource and modifies the original resource information based on target resource information in the target prefabricated variant resource, wherein the target resource information and the original resource information have the same attribute;
Wherein the first engine modifies the original resource information based on target resource information in the target prefabricated variant resource, comprising: the first engine determining at least one attribute indicated by the target resource information; the first engine acquires original resource information corresponding to the at least one attribute; and the first engine updates the original resource information corresponding to the at least one attribute through the target resource information.
11. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when run by a processor, controls a device in which the computer readable storage medium is located to perform the method according to any of the claims 1 to 10.
12. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 10.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010525186.8A CN111569427B (en) | 2020-06-10 | 2020-06-10 | Resource processing method and device, storage medium and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010525186.8A CN111569427B (en) | 2020-06-10 | 2020-06-10 | Resource processing method and device, storage medium and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111569427A CN111569427A (en) | 2020-08-25 |
| CN111569427B true CN111569427B (en) | 2023-04-25 |
Family
ID=72116150
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010525186.8A Active CN111569427B (en) | 2020-06-10 | 2020-06-10 | Resource processing method and device, storage medium and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111569427B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112546633B (en) * | 2020-12-10 | 2024-06-21 | 网易(杭州)网络有限公司 | Virtual scene processing method, device, equipment and storage medium |
| CN113797554B (en) * | 2021-09-22 | 2023-12-26 | 北京有竹居网络技术有限公司 | Game engine resource processing method and device, storage medium and electronic equipment |
| CN114130016B (en) * | 2021-12-07 | 2023-07-14 | 腾讯科技(深圳)有限公司 | Control resource management method and related device |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006136055A1 (en) * | 2005-06-22 | 2006-12-28 | Zte Corporation | A text data mining method |
| CN103430150A (en) * | 2010-11-22 | 2013-12-04 | 瑞典爱立信有限公司 | Technique for resource creation in a cloud computing system |
| CN107436787A (en) * | 2017-07-31 | 2017-12-05 | 腾讯科技(深圳)有限公司 | Method for processing resource, device, storage medium and electronic installation |
| CN108304178A (en) * | 2018-01-17 | 2018-07-20 | 珠海金山网络游戏科技有限公司 | A kind of data set quoting method and system based on Unity3D |
| CN108829422A (en) * | 2018-06-28 | 2018-11-16 | 中国建设银行股份有限公司 | A kind of dynamic deployment method and device |
| CN109902246A (en) * | 2019-02-12 | 2019-06-18 | 宙谷(上海)数字科技有限公司 | Resource sharing method and system based on internet virtual Reality-Engine technology |
| CN110838166A (en) * | 2019-10-21 | 2020-02-25 | 腾讯科技(深圳)有限公司 | Special effect data detection method, device, equipment and storage medium |
-
2020
- 2020-06-10 CN CN202010525186.8A patent/CN111569427B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006136055A1 (en) * | 2005-06-22 | 2006-12-28 | Zte Corporation | A text data mining method |
| CN103430150A (en) * | 2010-11-22 | 2013-12-04 | 瑞典爱立信有限公司 | Technique for resource creation in a cloud computing system |
| CN107436787A (en) * | 2017-07-31 | 2017-12-05 | 腾讯科技(深圳)有限公司 | Method for processing resource, device, storage medium and electronic installation |
| CN108304178A (en) * | 2018-01-17 | 2018-07-20 | 珠海金山网络游戏科技有限公司 | A kind of data set quoting method and system based on Unity3D |
| CN108829422A (en) * | 2018-06-28 | 2018-11-16 | 中国建设银行股份有限公司 | A kind of dynamic deployment method and device |
| CN109902246A (en) * | 2019-02-12 | 2019-06-18 | 宙谷(上海)数字科技有限公司 | Resource sharing method and system based on internet virtual Reality-Engine technology |
| CN110838166A (en) * | 2019-10-21 | 2020-02-25 | 腾讯科技(深圳)有限公司 | Special effect data detection method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111569427A (en) | 2020-08-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106843828B (en) | Interface display and loading method and device | |
| US11733973B2 (en) | Interactive graphic design system to enable creation and use of variant component sets for interactive objects | |
| CN109636301A (en) | Workflow configuration method, system, terminal and the readable storage medium storing program for executing of financial business | |
| US11983154B2 (en) | Recipe management system | |
| CN111569427B (en) | Resource processing method and device, storage medium and electronic device | |
| CN107402747B (en) | A method for dynamically generating application pages supporting multiple terminal types | |
| KR20190038750A (en) | Multi-task scheduling method, system, application server and computer-readable storage medium | |
| CN114564924B (en) | Data insertion method, device, equipment and storage medium | |
| WO2020233058A1 (en) | Code download method and apparatus, and electronic device and computer storage medium | |
| CN104077131A (en) | Component deployment system and method | |
| CN111176646A (en) | Method and device for generating emergency plan web page | |
| CN113467922B (en) | Resource management method, device, equipment and storage medium | |
| KR20200046769A (en) | Method for providing business process management system based on automatic report generation | |
| EP4538869A1 (en) | Application management method and related device | |
| CN105159718A (en) | Firmware updating method and device | |
| CN110515620B (en) | Automatic resource processing method and system | |
| CN110245128B (en) | Meta-model establishing method and device, storage medium and electronic device | |
| WO2021051341A1 (en) | System operation method, system, mobile platform and storage medium | |
| CN110138582A (en) | Information processing method, device and O&M environmental improvement system | |
| CN116450156A (en) | Model training method and device | |
| CN105608108A (en) | Universal GIS data collaborative collection method and apparatus as well as server | |
| CN112181409A (en) | Application construction method, application rendering method and device | |
| CN117908980A (en) | Quick configuration method and system based on Kubernetes resource object | |
| CN119005657A (en) | Dynamic business process processing method and device, storage medium and electronic equipment | |
| CN113838171B (en) | Data processing method, data processing device, storage medium and electronic device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |