Digital content object generation method and device
By using the digital content object pool manager to manage the digital content object pool in the game development environment, the problem of low digital content object generation efficiency in the existing technology is solved, and more efficient resource management and simplification of the development process are achieved.
Patent Information
- Application Number
- CN202310927062.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2025-01-21
AI Technical Summary
During the development of existing games, the generation efficiency of digital content objects is low, resulting in high development costs, poor versatility, and frequent resource recycling increases system performance consumption.
In the visual game development environment, the digital content object pool is managed through the digital content object pool manager, responds to the creation instructions of the development node, obtains target digital content object information, determines and uses or recycles digital content object data containers, and optimizes resource use.
It improves the generation efficiency of digital content objects, reduces development costs and performance consumption, enhances the object's versatility, adapts to a wider range of devices, and simplifies the development process.
Smart Images

Figure CN119336316A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of game development, and in particular to a method and device for generating a digital content object. Background Art
[0002] In the development process of multiplayer large-scale online games, some digital content objects are usually created based on game requirements, so as to perform corresponding game operations through the digital content objects and achieve game effects.
[0003] At present, in the existing game development process, the technical development of the creation, recycling, and use of digital content objects in different game projects requires a lot of underlying code support. However, the writing of underlying code makes the game development cost of different game projects high and the versatility is poor. The frequent creation, use, and recycling of object development methods also greatly increases the consumption of system resources and cannot meet the usage requirements of low-performance clients, thereby greatly reducing the generation efficiency of digital content objects. Summary of the invention
[0004] In view of this, the present invention provides a method and device for generating a digital content object, the main purpose of which is to solve the problem of low efficiency in generating digital content objects.
[0005] According to one aspect of the present invention, a method for generating a digital content object is provided, comprising:
[0006] In a visual game development environment, in response to a target digital content object creation instruction at a development node, determining the development node;
[0007] Acquire target digital content object information, and acquire a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is used to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object;
[0008] A target digital content object data container is determined from the digital content object pool, and based on the target digital content object data container, the target digital content object is generated at the development node.
[0009] Furthermore, the target digital content object data container is determined based on a matching digital content object data container already stored in the digital content object pool, or is determined based on a created real-time digital content object data container when no matching digital content object data container is stored in the digital content object pool.
[0010] Furthermore, the method further comprises:
[0011] Under the condition of a visual game development environment, creating the digital content object pool manager;
[0012] The digital content object pool is bound to the digital content object pool manager in a key-value pair manner, so that at least one management operation of creating, acquiring, and recycling the digital content object pool is performed at the development node through the digital content object pool manager.
[0013] Further, the step of determining a target digital content object data container from the digital content object pool includes:
[0014] Retrieving a container queue in the digital content object pool through the digital content object pool manager, wherein the container queue stores a plurality of digital content object data containers in a sequential order;
[0015] Under the condition that the first digital content object data container in the container queue is in an idle state, the first digital content object data container is determined as the target digital content object data container.
[0016] Furthermore, the method further comprises:
[0017] Under the condition that the first digital content object data container in the container queue is in a non-idle state, removing the first digital content object data container from the container queue, promoting the second digital content object data container to the first digital content object data container in the sequence based on the sequence order, and determining the development state of the digital content object data container;
[0018] Under the condition that the development state is an idle state, the first digital content object data container is determined as a target digital content object data container.
[0019] Furthermore, after generating the target digital content object at the development node based on the target digital content object data container, the method further includes:
[0020] Under the condition that the digital content object is determined to be in a revoked state by the digital content object pool manager, the target digital content object data container is revoked from the digital content object pool by the digital content object pool manager, and a container queue in the digital content object pool is updated; and / or
[0021] Under the condition that the digital content object is determined to be in a recycling state by the digital content object pool manager, the target digital content object data container is recycled from the digital content object pool by the digital content object pool manager, and the container queue in the digital content object pool is updated.
[0022] Furthermore, after the target digital content object data container is revoked from the digital content object pool by the digital content object pool manager and the container queue in the digital content object pool is updated, the method further comprises:
[0023] Acquire object development data for generating the digital content object, wherein the object development data is used to represent all data generated by at least one management operation of creating, acquiring, and recycling the digital content object data container in the digital content object pool by the digital content object pool manager;
[0024] After the target digital content object data container is revoked in the digital content object pool, the object development data is deleted through the digital content object pool manager to optimize the visual game development environment.
[0025] According to another aspect of the present invention, there is provided a device for generating a digital content object, comprising:
[0026] A determination module, for determining the development node in response to a target digital content object creation instruction at the development node under the condition of a visual game development environment;
[0027] an acquisition module, configured to acquire target digital content object information, and acquire a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is configured to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and the digital content object pool is configured to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object;
[0028] The generating module is used to determine a target digital content object data container from the digital content object pool, and generate the target digital content object at the developing node based on the target digital content object data container.
[0029] Furthermore, the target digital content object data container is determined based on a matching digital content object data container already stored in the digital content object pool, or is determined based on a created real-time digital content object data container when no matching digital content object data container is stored in the digital content object pool.
[0030] Furthermore, the device also includes:
[0031] A creation module, used to create the digital content object pool manager under the condition of a visual game development environment;
[0032] The configuration module is used to bind and configure the digital content object pool and the digital content object pool manager in a key-value pair manner, so that the digital content object pool manager can perform at least one management operation of creating, acquiring, and recycling the digital content object pool at the development node.
[0033] Furthermore, the generating module comprises:
[0034] A calling unit, used for calling a container queue in the digital content object pool through the digital content object pool manager, wherein the container queue stores a plurality of digital content object data containers in a sequential order;
[0035] The determining unit is used to determine the first digital content object data container as the target digital content object data container under the condition that the first digital content object data container in the container queue is in an idle state.
[0036] Furthermore, the determination module is specifically used to remove the first digital content object data container from the container queue under the condition that the first digital content object data container in the container queue is in a non-idle state, promote the second digital content object data container to the first digital content object data container in the sequence based on the sequence order, and determine the development state of the digital content object data container; under the condition that the development state is an idle state, determine the first digital content object data container as the target digital content object data container.
[0037] Furthermore, the device also includes:
[0038] a revocation module, for revoking the target digital content object data container from the digital content object pool through the digital content object pool manager and updating the container queue in the digital content object pool, under the condition that the digital content object is determined to be in a revoked state through the digital content object pool manager; and / or
[0039] The recycling module is used to recycle the target digital content object data container from the digital content object pool through the digital content object pool manager and update the container queue in the digital content object pool under the condition that the digital content object is determined to be in a recycling state through the digital content object pool manager.
[0040] Furthermore, the device also includes:
[0041] A deletion module is used to obtain object development data for generating the digital content object, wherein the object development data is used to represent all data generated by at least one management operation of creating, acquiring, and recycling the digital content object data container in the digital content object pool through the digital content object pool manager; after revoking the target digital content object data container in the digital content object pool, the object development data is deleted by the digital content object pool manager to optimize the visual game development environment.
[0042] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned method for generating a digital content object.
[0043] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0044] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned method for generating a digital content object.
[0045] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0046] The present invention provides a method and device for generating a digital content object. Compared with the prior art, the embodiment of the present invention determines the development node in response to a target digital content object creation instruction at the development node under the condition of a visual game development environment; obtains target digital content object information, obtains a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, the digital content object pool manager is used to perform at least one management operation of creating, obtaining, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, the digital content object data container includes a digital content object and a script code associated with the digital content object; determines a target digital content object data container from the digital content object pool, generates the target digital content object at the development node based on the target digital content object data container, enhances the versatility of the digital content object, avoids developers from spending extra understanding costs and logic costs, and at the same time greatly reduces the performance consumption caused by frequent resource recycling, reduces the performance overhead of development equipment, adapts to a wider range of equipment, and facilitates developers to quickly and low-cost game development work.
[0047] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0049] Figure 1 A flow chart of a method for generating a digital content object provided by an embodiment of the present invention is shown;
[0050] Figure 2 A block diagram showing a digital content object generation device provided by an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0053] The embodiment of the present invention provides a method for generating a digital content object, such as Figure 1 As shown, the method includes:
[0054] 101. Under the condition of a visual game development environment, in response to a target digital content object creation instruction at a development node, determine the development node.
[0055] In the embodiment of the present invention, the current execution subject is a development processing end for executing a large-scale online game, such as a development server. At the same time, the development of the game can be started through a visual interface for game development, such as a graphical editor, so as to provide developers with an editing and development environment for executing development operations. The developer instructs the current execution subject to create a target digital content object at the development node by triggering a creation instruction at the development node. At this time, the development node is a node of the digital content object to be created. The current execution subject can use the node that receives the target digital content object creation instruction in the visual interface as the development node of the target digital content object to be created. For example, if a creation instruction is received at the game character acquisition reward node, the game character acquisition reward node is determined as the development node of the target digital content object to be created, so as to create a cute pet as the target digital content object. The embodiment of the present invention does not make specific limitations.
[0056] It should be noted that the visualization interface, as an editing interface of a visualization game development environment (such as a graphical editor), is pre-configured with multiple development nodes for different large-scale online games, and the creation events of the corresponding development nodes, and is displayed to receive the creation instructions of the target digital content object, and the creation and development of the target digital content object is performed at this development node, which is not specifically limited in the embodiment of the present invention. Among them, the digital content in the embodiment of the present invention includes real-time 3D and real-time 2D digital content produced by real-time digital content production tools, for example, 3D games and 2D games produced by game engines and similar real-time digital content production tools, digital twins, 3D human-computer interfaces, AR, VR, MR and other real-time digital content produced by game engines, and digital content objects are objects used to represent the above digital content, including but not limited to game objects, etc., which are not specifically limited in the embodiment of the present invention.
[0057] 102. Obtain target digital content object information, and obtain a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager.
[0058] In the embodiment of the present invention, after determining the development node, the current execution subject obtains the target digital content object information, that is, the target digital content object information is used to characterize the specific information of the target digital content object to be created, including but not limited to the digital content object name, digital content object identifier, digital content object model and other information. At this time, it can be determined by the digital content object name pre-configured for the game content at the development node, or it can be determined by the target digital content object identifier entered in real time by the developer at the development node, which is not specifically limited in the embodiment of the present invention. Furthermore, after obtaining the target digital content object information, the current execution subject obtains the digital content object pool corresponding to the target digital content object information based on the digital content object pool manager, wherein the digital content object pool manager is used to perform at least one management operation of creating, obtaining, and recycling the digital content object pool, that is, the development operator can create a non-existent digital content object through the digital content object pool manager, and obtain or recycle an existing digital content object, which is not specifically limited in the embodiment of the present invention. At the same time, the digital content object pool is used to perform at least one management operation of creating, using, and destroying the digital content object data container, that is, the development operator can create a non-existent digital content object data container through the digital content object pool, and use or destroy the existing digital content object data container, which is not specifically limited in the embodiment of the present invention. In the embodiment of the present invention, the digital content object data container includes a digital content object and a script code associated with the digital content object, so that the current execution subject determines the target digital content object data container from the digital content object pool. Among them, the digital content object data container is a container for carrying digital content objects and script codes associated with digital content objects. In addition to carrying digital content objects and script codes associated with digital content objects, the digital content object includes a prefab as digital content object data, and can also include component object attributes, prefab logical path, inheritance relationship, etc., which are not specifically limited in the embodiment of the present invention.
[0059] 103. Determine a target digital content object data container from the digital content object pool, and generate the target digital content object at the development node based on the target digital content object data container.
[0060] In the embodiment of the present invention, the current execution subject determines the target digital content object data container from the digital content object pool. At this time, the determined target digital content object data container may include the one determined based on the matching digital content object data container stored in the digital content object pool, or the one determined based on the created real-time digital content object data container under the condition that the matching digital content object data container is not stored in the digital content object pool, that is, when the current execution subject finds that there is a digital content object data container that can be used as the target digital content object data container in the digital content object pool, the matching digital content object data container is determined as the target digital content object data container, or when the current execution subject finds that there is no digital content object data container that can be used as the target digital content object data container, a new digital content object data container is created in the digital content object pool in real time as the target digital content object data container. Furthermore, the current execution subject generates the target digital content object at this development node based on the target digital content object data container. At this time, the target digital content object can be used to represent the object that performs control operations in the game, such as the controllable character object, and can also be used to represent the object of non-control operations such as fixed form, fixed position, fixed animation, etc. in the game, such as the building in the game scene, the non-controllable character object in the game scene, which is not specifically limited in the embodiment of the present invention.
[0061] It should be noted that, since the target digital content object data container Actor contains the digital content object and the script code associated with the digital content object, when generating the target digital content object, the game engine can be called to generate the digital content object by running the script code, and the embodiment of the present invention does not make specific limitations.
[0062] In addition, after determining the target digital content object data container, it is also necessary to call this target digital content object data container from the digital content object pool. When calling the target digital content object data container, it can be realized through the object acquisition method node Spawn Actor From Pool or Spawn Actor From Pool ByActorname in the digital content object pool. This node can also be used to pass in the digital content object data container, which is not specifically limited in the embodiment of the present invention. Specifically, when the digital content object data container is obtained through the above node, the container sequence in the management class of the digital content object pool is searched according to the container name, and the idle digital content object data container is started from the container sequence according to the sequence order. When starting the digital content object data container, the digital content object data, such as the path position Position, angle Rotation, parent class Parent and other data content of the prefab Prefab, can be obtained through the above node, and all GameObject and Component parameters in the prefab Prefab as the digital content object data will be reset to the initial state. In addition, when obtaining a digital content object data container, the current execution subject detects whether there are increases or decreases in the GameObject and Component in the digital content object data container. If there are increases or decreases, the current execution subject will discard and recreate a new digital content object data container, wherein the default variables, logic, time and other contents of the logic code in the digital content object data container are initialized or not enabled by default when created, and are immediately enabled and execute related execution logic after acquisition. In addition, if there are no idle digital content object data containers in the digital content object pool, a new digital content object data container is created in real time, and is configured to be enabled at the same time, and the execution logic such as Start and Update is executed.
[0063] In the embodiment of the present invention, when obtaining the digital content object pool, the current size of the digital content object pool corresponding to the specific digital content object data Prefab can be obtained through the management class PoolManager of the digital content object. When the size needs to be obtained, the queue length in the current specified digital content object pool can be directly obtained through the Get Idle Num Of Pool node. If the digital content object pool does not exist, the queue length value is 0. When creating the digital content object pool, it is also necessary to set the size of the digital content object pool. The current size of the specified digital content object pool can be set through the SetMaxsize Of Pool node of the management class PoolManager of the digital content object pool. When setting the size, the queue length of the container queue in the digital content object pool can be modified. If the current queue length exceeds the specified value, the redundant digital content object data container Actor is directly destroyed. If the queue length is insufficient, a new digital content object data container Actor is created to supplement the container queue in the digital content object pool. When the game is running, if the size of the digital content object pool that has been set cannot meet the actual demand, new digital content object data container Actor will be automatically generated one by one in the digital content object pool to dynamically fill and enable until the demand is met.
[0064] In another embodiment of the present invention, for further definition and description, the steps further include:
[0065] Under the condition of a visual game development environment, creating the digital content object pool manager;
[0066] The digital content object pool is bound and configured with the digital content object pool manager in a key-value pair manner.
[0067] In order to achieve efficient management of the digital content object pool, thereby reducing the game development cost and improving the efficiency of the development of digital content objects, the current execution subject creates a digital content object pool manager in a visual game development environment. Among them, the current execution subject creates a digital content object manager for the development needs of different games through a graphical editor, which can be a component for managing each digital content object pool. The embodiment of the present invention does not specifically limit the specific form of the digital content object pool manager. After the current execution subject creates the digital content object pool manager, the digital content object pool is bound to perform at least one management operation of creating, acquiring, and recycling the digital content object pool at the development node through the object pool manager. Among them, the digital content object manager uses Dictionary as an index, that is, the Key in the Dictionary is the prefab path in the digital content object data container, and the Value in the Dictionary is the generated digital content object pool. At this time, at least one management operation of creating, acquiring, and recycling the digital content object pool needs to be performed by the development technician through the digital content object manager to achieve centralized management of the game pool and accelerate the generation speed and efficiency of the digital content object.
[0068] It should be noted that the multiple digital content object pools bound to a digital content object pool manager can be pre-asynchronously created based on game characters, environments, and running requirements, or can be created in real time synchronously based on game characters, environments, and running requirements. In addition, since the digital content object pool is used to perform at least one management operation of creating, using, and destroying the digital content object data container, when creating the digital content object pool, it is also necessary to pre-create the digital content object data container. At this time, since the digital content object data container includes the digital content object and the script code associated with the digital content object, when creating the digital content object data container, the prefab Prefab object corresponding to the digital content object data container Actor can be created through the resource loading path of the prefab Prefab in the digital content object data container Actor and initialize the information, components and default state, initialize the inheritance relationship between the prefabs Prefabs, and the code logic, variables and function methods existing on the prefabs Prefabs, so that all the created digital content object data containers can be configured by default to be not enabled, that is, the OnDisable state. In addition, after creating a digital content object data container, a digital content object pool can be created through the digital content object pool creation node of the graphical editor, and the initial state of the digital content object data container in the digital content object pool can be configured, and the digital content objects and code logic and other data in the digital content object data container can be initialized through code. As for the digital content object pool, if the digital content object pool is not created through the digital content object pool creation node (pre-asynchronous creation in this case), the current execution subject does not have a digital content object pool for creating, using, and destroying digital content object data containers by default, and a digital content object pool for creating, using, and destroying digital content object data containers is created synchronously, and an initial number of digital content object pools of 1 is created by default, and the digital content object data container Actor as a single data unit is configured to be enabled, that is, the OnEnable state.
[0069] In another embodiment of the present invention, for further definition and explanation, the step of determining a target digital content object data container from the digital content object pool includes:
[0070] Retrieving the container queue in the digital content object pool through the digital content object pool manager;
[0071] Under the condition that the first digital content object data container in the container queue is in an idle state, the first digital content object data container is determined as the target digital content object data container.
[0072] In order to realize the flexible generation of digital content objects and reduce the system resource consumption of development operations such as frequent creation, when the current execution subject determines the target digital content object data container, specifically, firstly calls the container object in the digital content object pool at the development node through the digital content object pool manager. Among them, the container queue stores multiple digital content object data containers in sequence order, that is, the digital content object data containers are stored in the digital content object pool in the form of container queues. Therefore, when determining the target digital content object data container, firstly call the container object in the digital content object pool. Furthermore, the current execution subject firstly queries the development status of the first digital content object data container in the container queue in sequence order. If the development status is idle, it means that the first digital content object data container is available at this time. Therefore, the current execution subject determines this first digital content object data container as the target digital content object data container.
[0073] It should be noted that the digital content object data containers stored in the digital content object pool according to the container queue are stored in a serial order. At this time, the serial order can be stored in a time order or a sorting order. It can be configured based on storage requirements and is not specifically limited in the embodiment of the present invention.
[0074] In another embodiment of the present invention, for further definition and description, the steps further include:
[0075] Under the condition that the first digital content object data container in the container queue is in a non-idle state, removing the first digital content object data container from the container queue, promoting the second digital content object data container to the first digital content object data container in the sequence based on the sequence order, and determining the development state of the digital content object data container;
[0076] Under the condition that the development state is an idle state, the first digital content object data container is determined as a target digital content object data container.
[0077] In order to reduce the system resource consumption of frequent creation and other development operations, and to improve the efficiency of generating target digital content objects based on digital content object data containers, if the first digital content object data container is in a non-idle state, the object data container will be automatically removed from the container queue, and the object pool enabled mark will be added, and the second object data container in the current container queue will be automatically promoted to the first object data container, and this cycle will continue until the first object data container is an idle object data container. At this time, the current execution subject only needs to query the development status of the first object data container in the container queue and determine it as the target object data container. In another specific scenario, if the development status of all digital content object data containers is found to be non-idle, a real-time digital content object data container is created in the digital content object pool through the digital content object pool manager to determine the real-time digital content object data container as the target digital content object data container.
[0078] In another embodiment of the present invention, for further definition and explanation, the step is based on the target digital content object data container, after the target digital content object is generated at the development node, the method further includes:
[0079] Under the condition that the digital content object is determined to be in a revoked state by the digital content object pool manager, the target digital content object data container is revoked from the digital content object pool by the digital content object pool manager, and a container queue in the digital content object pool is updated; and / or
[0080] Under the condition that the digital content object is determined to be in a recycling state by the digital content object pool manager, the target digital content object data container is recycled from the digital content object pool by the digital content object pool manager, and the container queue in the digital content object pool is updated.
[0081] In order to reduce the frequency of use of the system recycling channel, thereby reducing the performance impact caused by the frequent creation of digital content objects, in a specific implementation scenario, if the digital content object is revoked through the digital content object pool manager, the digital content object data container is revoked through the digital content object pool manager. Specifically, in the graphical editor, it can be determined whether to revoke the digital content object data container according to the node that creates the digital content object data container. If the digital content object data container Actor is obtained using the Spawn Actor From Pool or Spawn Actor From Pool ByActorname node, the digital content object pool that creates, uses, and revokes the digital content object data container Actor must exist. Therefore, when the digital content object data container is destroyed using the Destroy Actor node, the digital content object data container Actor is put back into the digital content object pool by default and the state is changed to idle, that is, the OnDisable state. All code logics running on the digital content object data container Actor are automatically initialized to the initial state, and other functional code operations (such as timers) on the digital content object data container Actor will be cleared or stopped. The embodiment of the present invention does not make specific restrictions. If the digital content object data container Actor created by the Spawn Actor or Spawn Actor ByActorname node is destroyed using the Destroy Actor node, the prefab in the digital content object data container Actor that serves as the digital content object data will enter the resource recycling system of the game engine Unity and its attached code logic will be cleared.
[0082] In order to reduce the frequency of use of the system recycling channel, thereby reducing the performance impact caused by the frequent creation of digital content objects, in a specific implementation scenario, if the recycling operation is performed on the digital content object through the digital content object pool manager, the digital content object data container is recycled through the digital content object pool manager. Specifically, after the specified digital content object data container Actor is passed in through the Destroy Pool node in the graphical editor, the digital content object pool that recycles this digital content object data container Actor is removed and emptied from the management class PoolManager of the digital content object pool, and all idle digital content object data container Actors in this digital content object pool will be destroyed, that is, the prefab Prefab as the digital content object data in the digital content object data container Actor is destroyed, and enters the resource recycling system of the game engine Unity for recycling. At the same time, the code of the digital content object data container Actor will be cleared, and the digital content object data container Actor will be enabled from the digital content object pool. When destroyed, if there is no digital content object pool of the newly created digital content object data container Actor in the game, it will enter the resource recycling system of Unity for recycling. At the same time, Destroy All Pool can also be used to remove the digital content object pools of all digital content object data container Actors from the digital content object pool management class PoolManager, and directly clear and recycle all digital content object pools, release all idle and unactivated digital content object data container Actors, and all digital content object data container Actors activated from the digital content object pool will enter the resource recycling system of the game system Unity for recycling when destroyed.
[0083] In another embodiment of the present invention, for further definition and explanation, after the step of revoking the target digital content object data container from the digital content object pool by the digital content object pool manager and updating the container queue in the digital content object pool, the method further comprises:
[0084] Acquire object development data for generating the digital content object;
[0085] After the target digital content object data container is revoked in the digital content object pool, the object development data is deleted through the digital content object pool manager to optimize the visual game development environment.
[0086] Since the digital content object pool manager is used to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and it is also necessary to perform at least one management operation of creating, using, and destroying the digital content object data container through the digital content object pool, a lot of operation data will be generated in this process. Therefore, in order to reduce the cost of game development and reduce system resource consumption, the current execution subject revokes the target digital content object data container from the digital content object pool through the digital content object pool manager, and then obtains the object development data for generating the digital content object. At this time, the object development data is used to represent all the data generated by at least one management operation of creating, acquiring, and recycling the digital content object data container in the digital content object pool through the digital content object pool manager, such as initializing prefab and creating code logic content, which is not specifically limited in the embodiment of the present invention. Furthermore, the current execution subject deletes the object development data through the digital content object pool manager to optimize the visual game development environment, without the need for developers to perform manual processing, reducing the cost of manual understanding, and improving the generation efficiency of digital content objects.
[0087] The embodiment of the present invention provides a method for generating a digital content object. Compared with the prior art, the embodiment of the present invention determines the development node in response to a target digital content object creation instruction at the development node under the condition of a visual game development environment; obtains target digital content object information, and obtains a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is used to perform at least one management operation of creating, obtaining, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object; determines a target digital content object data container from the digital content object pool, and generates the target digital content object at the development node based on the target digital content object data container, thereby enhancing the versatility of the digital content object, avoiding developers from spending extra understanding costs and logic costs, and at the same time greatly reducing performance consumption caused by frequent resource recycling, reducing performance overhead of development equipment, and adapting to a wider range of equipment, so as to facilitate developers to quickly and low-costly carry out game development work.
[0088] Furthermore, as a response to the above Figure 1 The embodiment of the present invention provides a device for generating a digital content object, such as Figure 2 As shown, the device comprises:
[0089] A determination module 21, for determining the development node in response to a target digital content object creation instruction at the development node under the condition of a visual game development environment;
[0090] An acquisition module 22 is used to acquire target digital content object information, and acquire a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is used to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object;
[0091] The generating module 23 is used to determine a target digital content object data container from the digital content object pool, and generate the target digital content object at the developing node based on the target digital content object data container.
[0092] Furthermore, the target digital content object data container is determined based on a matching digital content object data container already stored in the digital content object pool, or is determined based on a created real-time digital content object data container when no matching digital content object data container is stored in the digital content object pool.
[0093] Furthermore, the device also includes:
[0094] A creation module, used to create the digital content object pool manager under the condition of a visual game development environment;
[0095] The configuration module is used to bind and configure the digital content object pool and the digital content object pool manager in a key-value pair manner, so that at least one management operation of creating, acquiring, and recycling the digital content object pool can be performed on the development node through the digital content object pool manager.
[0096] Furthermore, the generating module comprises:
[0097] A calling unit, used for calling a container queue in the digital content object pool through the digital content object pool manager, wherein the container queue stores a plurality of digital content object data containers in a sequential order;
[0098] The determining unit is used to determine the first digital content object data container as the target digital content object data container under the condition that the first digital content object data container in the container queue is in an idle state.
[0099] Furthermore, the determination module is specifically used to remove the first digital content object data container from the container queue under the condition that the first digital content object data container in the container queue is in a non-idle state, promote the second digital content object data container to the first digital content object data container in the sequence based on the sequence order, and determine the development state of the digital content object data container; under the condition that the development state is an idle state, determine the first digital content object data container as the target digital content object data container.
[0100] Furthermore, the device also includes:
[0101] a revocation module, for revoking the target digital content object data container from the digital content object pool through the digital content object pool manager and updating the container queue in the digital content object pool, under the condition that the digital content object is determined to be in a revoked state through the digital content object pool manager; and / or
[0102] The recycling module is used to recycle the target digital content object data container from the digital content object pool through the digital content object pool manager and update the container queue in the digital content object pool under the condition that the digital content object is determined to be in a recycling state through the digital content object pool manager.
[0103] Furthermore, the device also includes:
[0104] A deletion module is used to obtain object development data for generating the digital content object, wherein the object development data is used to represent all data generated by at least one management operation of creating, acquiring, and recycling the digital content object data container in the digital content object pool through the digital content object pool manager; after revoking the target digital content object data container in the digital content object pool, the object development data is deleted by the digital content object pool manager to optimize the visual game development environment.
[0105] The embodiment of the present invention provides a device for generating a digital content object. Compared with the prior art, the embodiment of the present invention determines the development node in response to a target digital content object creation instruction at the development node under the condition of a visual game development environment; obtains target digital content object information, obtains a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, the digital content object pool manager is used to perform at least one management operation of creating, obtaining, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, the digital content object data container includes a digital content object and a script code associated with the digital content object; determines a target digital content object data container from the digital content object pool, generates the target digital content object at the development node based on the target digital content object data container, enhances the versatility of the digital content object, avoids developers from spending extra understanding costs and logic costs, and at the same time greatly reduces the performance consumption caused by frequent resource recycling, reduces the performance overhead of development equipment, adapts to a wider range of equipment, and facilitates developers to quickly and low-cost game development work.
[0106] According to an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the method for generating a digital content object in any of the above method embodiments.
[0107] Figure 3 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0108] like Figure 3 As shown, the terminal may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .
[0109] The processor 302 , the communication interface 304 , and the memory 306 communicate with each other via the communication bus 308 .
[0110] The communication interface 304 is used to communicate with other devices such as clients or other servers.
[0111] The processor 302 is used to execute the program 310, and specifically can execute the relevant steps in the above-mentioned embodiment of the method for generating a digital content object.
[0112] Specifically, the program 310 may include program codes, which include computer operation instructions.
[0113] The processor 302 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0114] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0115] The program 310 may be specifically configured to enable the processor 302 to perform the following operations:
[0116] In a visual game development environment, in response to a target digital content object creation instruction at a development node, determining the development node;
[0117] Acquire target digital content object information, and acquire a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is used to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object;
[0118] A target digital content object data container is determined from the digital content object pool, and based on the target digital content object data container, the target digital content object is generated at the development node.
[0119] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating a digital content object, characterized in that: include: In a visual game development environment, in response to a target digital content object creation instruction at a development node, determining the development node; Acquire target digital content object information, and acquire a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is used to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and the digital content object pool is used to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object; A target digital content object data container is determined from the digital content object pool, and based on the target digital content object data container, the target digital content object is generated at the development node.
2. The method according to claim 1, characterized in that The target digital content object data container is determined based on a matching digital content object data container already stored in the digital content object pool, or is determined based on a created real-time digital content object data container when no matching digital content object data container is stored in the digital content object pool.
3. The method according to claim 2, characterized in that The method further comprises: Under the condition of a visual game development environment, creating the digital content object pool manager; The digital content object pool is bound to the digital content object pool manager in a key-value pair manner, so that at least one management operation of creating, acquiring, and recycling the digital content object pool is performed at the development node through the digital content object pool manager.
4. The method according to claim 3, characterized in that Determining a target digital content object data container from the digital content object pool comprises: Retrieving a container queue in the digital content object pool through the digital content object pool manager, wherein the container queue stores a plurality of digital content object data containers in a sequential order; Under the condition that the first digital content object data container in the container queue is in an idle state, the first digital content object data container is determined as the target digital content object data container.
5. The method according to claim 4, characterized in that The method further comprises: Under the condition that the first digital content object data container in the container queue is in a non-idle state, removing the first digital content object data container from the container queue, promoting the second digital content object data container to the first digital content object data container in the sequence based on the sequence order, and determining the development state of the digital content object data container; Under the condition that the development state is an idle state, the first digital content object data container is determined as a target digital content object data container.
6. The method according to any one of claims 1 to 5, characterized in that: After generating the target digital content object at the development node based on the target digital content object data container, the method further comprises: Under the condition that the digital content object is determined to be in a revoked state by the digital content object pool manager, the target digital content object data container is revoked from the digital content object pool by the digital content object pool manager, and a container queue in the digital content object pool is updated; and / or Under the condition that the digital content object is determined to be in a recycling state by the digital content object pool manager, the target digital content object data container is recycled from the digital content object pool by the digital content object pool manager, and the container queue in the digital content object pool is updated.
7. The method according to claim 6, characterized in that After the target digital content object data container is revoked from the digital content object pool by the digital content object pool manager and the container queue in the digital content object pool is updated, the method further comprises: Acquire object development data for generating the digital content object, wherein the object development data is used to represent all data generated by at least one management operation of creating, acquiring, and recycling the digital content object data container in the digital content object pool by the digital content object pool manager; After the target digital content object data container is revoked in the digital content object pool, the object development data is deleted through the digital content object pool manager to optimize the visual game development environment.
8. A method for generating a digital content object, characterized in that: include: A determination module, for determining the development node in response to a target digital content object creation instruction at the development node under the condition of a visual game development environment; an acquisition module, configured to acquire target digital content object information, and acquire a digital content object pool corresponding to the target digital content object information based on a digital content object pool manager, wherein the digital content object pool manager is configured to perform at least one management operation of creating, acquiring, and recycling the digital content object pool, and the digital content object pool is configured to perform at least one management operation of creating, using, and destroying a digital content object data container, wherein the digital content object data container includes a digital content object and a script code associated with the digital content object; The generating module is used to determine a target digital content object data container from the digital content object pool, and generate the target digital content object at the developing node based on the target digital content object data container.
9. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the method for generating a digital content object according to any one of claims 1 to 7.
10. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method for generating a digital content object according to any one of claims 1-7.