Special effect configuration method, device, storage medium and electronic device for virtual objects
By creating a special effect blueprint that only contains special effect function events and configuring it in the data table of virtual objects, the problem of low blueprint reusability in the existing technology is solved, and more efficient virtual object special effect configuration and use is achieved.
Patent Information
- Application Number
- CN202111577611.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2041-12-22
AI Technical Summary
In the prior art, there are many complex function events in the blueprint of the virtual object, resulting in low reusability of the blueprint, and developers need to frequently adjust the functional events in the blueprint.
By creating a special effect blueprint for the target virtual object, only the specified special effect display location, special effect effects and trigger events are configured, and they are configured in the data table corresponding to the target virtual object to achieve automatic display and control of special effects.
Improves the reusability of the blueprint, reduces developers' need to adjust complex function events in the blueprint, and simplifies the configuration and use of virtual object effects.
Smart Images

Figure CN114432696B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and particularly to a method and device for configuring special effects of virtual objects, a computer-readable storage medium, and an electronic device. Background Art
[0002] In recent years, with the development and popularization of computer device technology, more and more games with three-dimensional virtual environments have emerged, such as First Person Shooting Games (FPS), Multiplayer Online Battle Arena Games (MOBA), etc.
[0003] In the prior art, games with three-dimensional virtual environments are generally made using the Unreal Engine, and the blueprint visualization system in the Unreal Engine is a complete game scripting system. Its concept is to create game playability elements from the Unreal Editor using a node-based interface. This system is very flexible and very powerful because it provides designers with all the concepts and tools that are generally only available to programmers. It is a special type of resource. For virtual objects, all possible behavior logics, trigger modules for different events, and special effects and other functional events that may occur in the game can be configured for them in the blueprint.
[0004] In the process of researching and practicing the prior art, the inventors of the present application found that there are many complex functional events such as behavior logics and trigger modules at different times in the blueprint for virtual objects in the prior art. When other virtual objects use the special effects of this virtual object, it is necessary to adjust many complex functional events in the blueprint, and the reusability of the blueprint is relatively low. Summary of the Invention
[0005] Embodiments of the present application provide a method and device for configuring special effects of virtual objects, which can improve the reusability of blueprints.
[0006] To solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0007] A method for configuring special effects of a virtual object, comprising:
[0008] In response to a blueprint creation operation, create a special effect blueprint for a target virtual object, where the special effect blueprint is configured with a specified special effect display part, a specified special effect for the target virtual object, and a specified trigger event for triggering the specified special effect display part to display the specified special effect;
[0009] Based on the object type of the target virtual object, configure the special effect blueprint in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, control the special effect display part of the virtual object to display the special effect.
[0010] A special effect configuration device for a virtual object, comprising:
[0011] A creation module, configured to create a special effect blueprint for a target virtual object in response to a blueprint creation operation, where the special effect blueprint is configured with a specified special effect display part, a specified special effect for the target virtual object, and a specified trigger event for triggering the specified special effect display part to display the specified special effect;
[0012] A first configuration module, configured to configure the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object, so that when the specified trigger event is triggered, control the special effect display part of the virtual object to display the special effect.
[0013] In some embodiments, the device further comprises:
[0014] A second configuration module, configured to configure the special effect blueprint in the data table corresponding to the other virtual object if there is another virtual object that meets the reuse condition of the special effect blueprint.
[0015] In some embodiments, the object type of the virtual object is a virtual character object type, and the creation module comprises:
[0016] A first creation sub-module, configured to create a virtual character special effect blueprint template in response to a first blueprint creation operation;
[0017] A second creation sub-module, configured to create a trigger event window configured with a first sub-specified trigger event in the virtual character special effect blueprint template in response to a trigger event window creation operation;
[0018] A third creation sub-module, configured to, in response to a special effect configuration window creation operation, read, from the business logic code according to the specified trigger event, a first sub-specified special effect triggered when the first sub-specified trigger event is triggered and a first sub-specified special effect display part for displaying the first sub-specified special effect, and create a special effect configuration window configured with the first sub-specified special effect display part and the first sub-specified special effect in the virtual character special effect blueprint template;
[0019] A connection sub-module, configured to connect the trigger event window and the special effect configuration window in the virtual character special effect blueprint in response to a window connection operation, to obtain a special effect blueprint for a target virtual object whose object type is a virtual character object type.
[0020] In some embodiments, the first configuration module includes:
[0021] A determination sub-module, configured to, when the object type of the target virtual object is a virtual character object type, determine the blueprint storage directories of each first sub-specified special effect display part from the data table corresponding to the target virtual object according to the first sub-specified special effect display part;
[0022] A first configuration sub-module, configured to configure the special effect blueprint under the blueprint storage directories of each first sub-specified special effect display part.
[0023] In some embodiments, the first configuration module further includes:
[0024] A first reading sub-module, configured to, when detecting that the target virtual object triggers the first sub-specified trigger event, read the special effect blueprint configured under the blueprint storage directories of each first sub-specified special effect display part through a first specified reading tool.
[0025] In some embodiments, the object type of the virtual object is a virtual accessory object type, and the creation module includes:
[0026] A fourth creation sub-module, configured to create a virtual accessory special effect blueprint template in response to a second blueprint creation operation;
[0027] An import sub-module, configured to import the selected target virtual accessory into the virtual accessory special effect blueprint template in response to a virtual accessory import operation;
[0028] A second configuration sub-module, configured to screen out the second sub-specified special effect configured for the target virtual accessory from the service configuration file based on the target virtual accessory, and configure the second sub-specified special effect in the virtual accessory special effect blueprint template;
[0029] A third configuration sub-module, configured to read the second sub-specified special effect display part configured for the target virtual accessory from the service logic code according to the target virtual accessory, and configure the second sub-specified special effect display part in the virtual accessory special effect blueprint template;
[0030] A generation sub-module, configured to read the effect trigger logic and the second sub-specified trigger event configured for the second sub-specified special effect from the service logic code according to the second sub-specified special effect and the second sub-specified special effect display part, generate an effect trigger logic label, and configure the effect trigger logic label in the virtual accessory special effect blueprint template to obtain a special effect blueprint for the target virtual object whose object type is a virtual accessory object type.
[0031] In some embodiments, the first configuration module includes:
[0032] A fourth configuration sub-module, configured to, when the object type of the target virtual object is a virtual accessory object type, configure the special effect blueprint in the blueprint storage directory of the data table corresponding to the target virtual accessory.
[0033] In some embodiments, the first configuration module further includes:
[0034] A second reading sub-module, configured to, when detecting a second sub-designated trigger event corresponding to the effect trigger logic tag, read, through a second designated reading tool, the special effect blueprint configured in the blueprint storage directory of the data table corresponding to the target virtual accessory, so that the second sub-designated special effect display part of the target virtual accessory displays the second sub-designated special effect according to the effect trigger logic.
[0035] A computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the above-mentioned special effect configuration method for virtual objects.
[0036] An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned special effect configuration method for virtual objects are implemented.
[0037] In the embodiments of the present application, by responding to a blueprint creation operation, a special effect blueprint for a target virtual object is created. The special effect blueprint is configured with a designated special effect display part, a designated special effect for the target virtual object, and a designated trigger event for triggering the designated special effect display part to display the designated special effect. Based on the object type of the target virtual object, the special effect blueprint is configured in the data table corresponding to the target virtual object, so that when the designated trigger event is triggered, the special effect display part of the virtual object is controlled to display the special effect. In this way, by creating a special effect blueprint with only special effect function events, since there are no other complex function events in the special effect blueprint, developers can be prevented from adjusting numerous complex function events in the blueprint, thereby improving the reusability of the blueprint. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0039] Figure 1aSystem schematic diagram of the special effect configuration system for virtual objects provided by the embodiments of the present application.
[0040] Figure 1b Flow schematic diagram of the special effect configuration method for virtual objects provided by the embodiments of the present application.
[0041] Figure 1c First creation schematic diagram of the virtual object with the object type of virtual character object type provided by the embodiments of the present application.
[0042] Figure 1d Second creation schematic diagram of the virtual object with the object type of virtual character object type provided by the embodiments of the present application.
[0043] Figure 1e Third creation schematic diagram of the virtual object with the object type of virtual character object type provided by the embodiments of the present application.
[0044] Figure 1f Fourth creation schematic diagram of the virtual object with the object type of virtual character object type provided by the embodiments of the present application.
[0045] Figure 1g First reading schematic diagram of the special effect blueprint provided by the embodiments of the present application.
[0046] Figure 1h Second reading schematic diagram of the special effect blueprint provided by the embodiments of the present application.
[0047] Figure 2 Structural schematic diagram of the special effect configuration device for virtual objects provided by the embodiments of the present application.
[0048] Figure 3 Structural schematic diagram of the electronic device provided by the embodiments of the present application. Detailed implementation manners
[0049] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0050] The embodiments of the present application provide a special effect configuration method, device and computer-readable storage medium for virtual objects.
[0051] Please refer to Figure 1a , Figure 1aSystem schematic diagram of the special effect configuration system for virtual objects provided by the embodiments of the present application. The system may include at least one user 1000, at least one electronic device 2000, at least one database 3000, and a network 4000. The user 1000 can control the electronic device 2000 through physical input devices such as a mouse and a keyboard, so as to control the Unreal Engine software installed in the electronic device 2000 to perform tasks such as game editing. Among them, the network 4000 can be a wireless network or a wired network. For example, the wireless network is a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, the system may include a database 3000, and the database 3000 can be used to store information such as resource files edited by the user 1000 in the electronic device 2000.
[0052] The embodiments of the present application provide a special effect configuration method for virtual objects, and this method can be executed by an electronic device. Among them, game engine software can be installed in the electronic device, such as Figure 1a As shown, the game engine software creates a special effect blueprint for the target virtual object in response to the blueprint creation operation of the user 1000. The special effect blueprint is configured with a specified special effect display part, a specified special effect for the target virtual object, and a specified trigger event for triggering the specified special effect display part to display the specified special effect; based on the object type of the target virtual object, the special effect blueprint is configured in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the special effect display part of the virtual object is controlled to display the special effect. Based on this, by creating a special effect blueprint with only special effect function events, since there are no other complex function events in the special effect blueprint, developers can avoid adjusting the numerous complex function events in the blueprint, and improve the reusability of the blueprint.
[0053] It should be noted that Figure 1a The scene schematic diagram of the special effect configuration system for virtual objects shown is only an example. The special effect configuration system and scene described in the embodiments of the present application are for more clearly explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation to the technical solutions provided by the embodiments of the present application. Those of ordinary skill in the art know that with the evolution of the special effect configuration system for virtual objects and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0054] In this embodiment, the description will be made from the perspective of the special effect configuration device for virtual objects. The special effect configuration device for virtual objects can be specifically integrated in a computer device with a storage unit and a microprocessor and having computing capabilities.
[0055] Please refer to Figure 1b , Figure 1b , which is a schematic flowchart of a special effect configuration method for a virtual object provided by an embodiment of the present application. The special effect configuration method for the virtual object includes:
[0056] In step 101, in response to a blueprint creation operation, a special effect blueprint for a target virtual object is created. In the special effect blueprint, a specified special effect display part, a specified special effect, and a specified trigger event for triggering the specified special effect display part to display the specified special effect are configured for the target virtual object.
[0057] Among them, during the process of editing the blueprint for the target virtual object, a special effect blueprint can be created separately for a special effect function event, and the created special effect blueprint includes a specified special effect display part, a specified special effect, and a specified trigger event for triggering the specified special effect display part to display the specified special effect configured for the target virtual object.
[0058] Specifically, during the development process of the game, developers will produce special effects for the target virtual object, and by controlling the specified special effect display part of the target virtual object to display the specified special effect when the specified trigger event is triggered. For example, when the specified virtual character is walking, there will be a wind effect on the feet. Therefore, walking is the specified trigger event, the specified special effect display part is the feet, and the specified special effect is the wind effect.
[0059] In some embodiments, the object type of the target virtual object is a virtual character object type. The step of creating a special effect blueprint for the target virtual object in response to a blueprint creation operation includes:
[0060] (1) In response to a first blueprint creation operation, create a virtual character special effect blueprint template;
[0061] (2) In response to a trigger event window creation operation, create a trigger event window configured with a first sub-specified trigger event within the virtual character special effect blueprint template;
[0062] (3) In response to a special effect configuration window creation operation, read, according to the first sub-specified trigger event, a first sub-specified special effect triggered when the first sub-specified trigger event is triggered and a first sub-specified special effect display part for displaying the first sub-specified special effect from business logic code, and create a special effect configuration window configured with the first sub-specified special effect display part and the first sub-specified special effect within the virtual character special effect blueprint template;
[0063] (4) In response to a window connection operation, connect the trigger event window and the special effect configuration window within the virtual character special effect blueprint to obtain a special effect blueprint for the target virtual object of the virtual character object type.
[0064] Among them, for the object type of the target virtual object, it can be divided into two types: virtual character object type and virtual accessory object type. For the target virtual object of the virtual character object type, as Figure 1c shown Figure 1c This is the first creation schematic diagram of the virtual object with the virtual character object type provided by the embodiment of the present application. Taking Unreal Engine 4 as an example, developers can create a virtual character special effect blueprint template (BP_BaseitemVFX) in the parent class list selected under this software. This virtual character special effect blueprint template is used for configuring virtual characters and permanent special effects. Therefore, when receiving a first blueprint creation operation, a virtual character special effect blueprint template is created. The first blueprint creation operation is the creation operation used to create BP_BaseitemVFX.
[0065] Specifically, as Figure 1d shown Figure 1d This is the second creation schematic diagram of the virtual object with the virtual character object type provided by the embodiment of the present application. Among them, the trigger event window creation operation is used to add a trigger event within the virtual character special effect blueprint template, so that when the first sub-specified trigger event configured in the trigger event window is triggered, a special effect can be generated. The special effect configuration window creation operation is used to configure the first sub-specified special effect and the first sub-specified special effect display part of the first sub-specified special effect when the first sub-specified trigger event is triggered within the special effect configuration window. The window connection operation is used to connect the configured trigger event window and the special effect configuration window.
[0066] Among them, since before blueprint production, the business logic code written for the game development project needs to be imported into the UE software, after the first sub-specified trigger event is configured and triggered in the trigger event window, the first sub-specified special effect and the first sub-specified special effect display part displayed by the target virtual character when the first sub-specified trigger event is triggered can be determined by reading the business logic code. It can also be automatically adjusted by developers for the required special effect and special effect display part, which is not limited here.
[0067] Specifically, if the virtual character is divided into multiple parts, such as: head, torso, and feet, etc., and the special effects of different parts are different, then a special effect blueprint needs to be configured separately for each part.
[0068] In some embodiments, the object type of the target virtual object is a virtual accessory object type. The step of creating a special effect blueprint for the target virtual object in response to a blueprint creation operation includes:
[0069] (1) In response to a second blueprint creation operation, create a virtual accessory special effect blueprint template;
[0070] (2) In response to a virtual accessory import operation, import the selected target virtual accessory into the virtual accessory special effect blueprint template;
[0071] (3) Based on the target virtual accessory, screen out the second sub-specified special effect configured for the target virtual accessory from the service configuration file, and configure the second sub-specified special effect in the virtual accessory special effect blueprint template;
[0072] (4) According to the target virtual accessory, read the second sub-specified special effect display part configured for the target virtual accessory from the service logic code, and configure the second sub-specified special effect display part in the virtual accessory special effect blueprint template;
[0073] (5) According to the second sub-specified special effect and the second sub-specified special effect display part, read the effect trigger logic and the second sub-specified trigger event configured for the second sub-specified special effect from the service logic code, and generate an effect trigger logic label, and configure the effect trigger logic label in the virtual accessory special effect blueprint template to obtain a special effect blueprint for the target virtual object whose object type is a virtual accessory object type.
[0074] Among them, for the target virtual object of the virtual accessory object type, as Figure 1e shown, Figure 1e This is the third creation schematic diagram of the virtual object whose object type is a virtual character object type provided by the embodiments of the present application. Developers can create a virtual accessory special effect blueprint template (itemBlueprint) in the selected parent class list under this software. This virtual accessory special effect blueprint template is used for virtual accessories and special effects that need to be flexibly controlled. Therefore, when a second blueprint creation operation is received, a virtual accessory special effect blueprint template is created. The second blueprint creation operation is the creation operation used to create itemBlueprint.
[0075] Specifically, as Figure 1f shown, Figure 1fThis is the fourth creation schematic diagram of the object type of the virtual object provided by the embodiment of the present application, where the object type is the virtual character object type. The virtual accessories may include virtual ornaments, virtual pendants, etc. The developer can directly import the virtual accessories that have been artistically processed into the virtual accessory special effect blueprint template, so that the UE software, in response to the virtual accessory import operation, imports the selected target virtual accessory into the virtual accessory special effect blueprint template. And after the target virtual accessory is imported into the virtual accessory special effect blueprint template, the second sub-specified special effect configured for the target virtual accessory can be filtered out from the service configuration file. The filtering step can be manually filtered by the developer from the service configuration file, or the UE software can read it from the service logic code according to the accessory name of the target virtual accessory, etc., which is not limited here. And the second sub-specified special effect display part configured for the target virtual accessory is also read from the service logic code according to information such as the accessory name of the target virtual accessory, and the required second sub-special effect display part is configured at the "part" of the virtual accessory special effect blueprint template.
[0076] Among them, for the special effect display of virtual accessories, multiple special effect display methods can be set, such as hiding, superimposing, and replacing of special effects. Taking superimposing as an example, a red halo will be displayed on the head of the virtual character in the moving state, and a blue halo will be displayed on the virtual accessory hat. When the virtual character wears the hat in the moving state, a superimposed halo of the red halo and the blue halo will be displayed. The same is true for anomalies and replacements, which will not be elaborated here. Therefore, for multiple special effect situations, the effect trigger logic and the second sub-specified trigger event can be pre-configured for the second sub-specified special effect from the service logic code. Therefore, in the virtual accessory special effect blueprint template, the effect trigger logic and the second sub-specified trigger event configured for the second sub-specified special effect can be read from the service logic code, and an effect trigger logic label is generated, and the effect trigger logic label is configured in the virtual accessory special effect blueprint template. For example, if the second sub-specified special effect is a blue halo, and the effect trigger logic is to superimpose and display the blue halo of the hat on the basis of the red halo displayed on the head of the virtual character, the effect trigger logic label can be named "superimpose", so that "superimpose" is displayed at the Figure 1f label position.
[0077] In step 102, based on the object type of the target virtual object, the special effect blueprint is configured in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the special effect display part of the target virtual object is controlled to display the special effect.
[0078] Among them, using data-driven for game development is generally an essential step. A data table is a table that classifies various relevant data in a meaningful and useful way. Among them, the data fields can be any valid UObject properties, including asset references, etc. Since the object types of the target virtual objects include virtual character object types and virtual accessory object types, the storage methods of the special effect blueprints are different for different object types. Therefore, it is necessary to store the special effect blueprints in the data table corresponding to the target virtual object according to the object type of the target virtual object, so that when a specified trigger event is triggered, the special effect is displayed on the special effect display part of the target virtual object.
[0079] In some embodiments, the step of configuring the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object includes:
[0080] (1) When the object type of the target virtual object is a virtual character object type, determine the blueprint storage directories of each first sub-specified special effect display part from the data table corresponding to the target virtual object according to the first sub-specified special effect display part;
[0081] (2) Configure the special effect blueprint under the blueprint storage directories of each first sub-specified special effect display part.
[0082] Among them, since different special effect blueprints are created for different parts of the virtual character, when storing the special effect blueprint in the data table of the virtual character, it is necessary to determine the blueprint storage directories of each first sub-specified special effect display part from the data table corresponding to the target virtual object according to the first sub-specified special effect display part, and store the special effect blueprint corresponding to each part in its corresponding blueprint storage directory.
[0083] In some embodiments, the step of configuring the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object includes:
[0084] When the object type of the target virtual object is a virtual accessory object type, configure the special effect blueprint under the blueprint storage directory in the data table corresponding to the target virtual accessory.
[0085] Among them, for a target virtual object with an object type of a virtual accessory object type, the special effect blueprint can be directly configured under the blueprint storage directory in the data table corresponding to the target virtual accessory.
[0086] In some embodiments, after the step of configuring the special effect blueprint under the blueprint storage directories of each first sub-specified special effect display part, it further includes:
[0087] When it is detected that the target virtual object triggers the first sub-specified trigger event, the special effect blueprint in the blueprint storage directory configured at each first sub-specified special effect display part is read by a first specified reading tool.
[0088] Among them, please refer to Figure 1g , Figure 1g which is the first reading schematic diagram of the special effect blueprint provided by the embodiment of the present application. After configuring the special effect blueprint in the blueprint storage directory of each first sub-specified special effect display part, when it is detected that the target virtual object triggers the first sub-specified trigger event, the special effect blueprint in the blueprint storage directory configured at each first sub-specified special effect display part can be read through an item blueprint.
[0089] In some embodiments, after the step of configuring the special effect blueprint in the blueprint storage directory in the data table corresponding to the target virtual accessory, it further includes:
[0090] When it is detected that the second sub-specified trigger event corresponding to the effect trigger logic label is triggered, the special effect blueprint in the blueprint storage directory in the data table corresponding to the target virtual accessory is read by a second specified reading tool, so that the second sub-specified special effect display part of the target virtual accessory displays the second sub-specified special effect according to the effect trigger logic.
[0091] Among them, please refer to Figure 1h , Figure 1h which is the second reading schematic diagram of the special effect blueprint provided by the embodiment of the present application. After configuring the special effect blueprint in the blueprint storage directory in the data table corresponding to the target virtual accessory, when it is detected that the second sub-specified trigger event corresponding to the effect trigger logic label is triggered, the special effect blueprint in the blueprint storage directory in the data table corresponding to the target virtual accessory can be read through Socket Attachements.
[0092] Specifically, Socket Attachements is an interface for adding character accessories (character attachment parts (glasses, backpacks, etc.)), so that the pendant blueprint with the attached effect can be added here in Socket Attachements and read to take effect.
[0093] For example, if it is necessary to configure a hat for the head (the hat is an ornament), then we need to open the function bar of the head in the UE4 DataTable, find Socket Attachements, add the hat pendant blueprint with the attached effect here and read it to take effect.
[0094] In some embodiments, after the step of configuring the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object, the following steps are further included:
[0095] If there are other virtual objects that meet the reuse conditions of the special effect blueprint, the special effect blueprint is configured in the data tables corresponding to the other virtual objects.
[0096] Among them, since the business logic code has been imported into the UE software, when the user configures and enables a special effect blueprint for a certain virtual character or a certain virtual accessory, it is possible to read from the business logic code whether there are other virtual characters or other virtual accessories that also use any one of the special effect display parts, specified special effect effects, and specified trigger events configured in the special effect blueprint. If so, the special effect blueprint can be directly configured in the data tables corresponding to the other virtual characters or other virtual accessories.
[0097] Specifically, if the other virtual objects are only the same as one or two of the special effect display parts, specified special effect effects, and specified trigger events configured in the configured special effect blueprint, the configuration content of the differential configuration can be read according to the business logic code, and the corresponding configuration in the special effect blueprint can be modified to achieve reuse. Therefore, the reuse condition can be that at least one of the special effect display parts, specified special effect effects, and specified trigger events corresponding to the other virtual objects written in the business logic code is the same as the special effect display parts, specified special effect effects, and specified trigger events in the special effect blueprint.
[0098] For example, the special effect blueprint configured for virtual character A is that when virtual character A starts walking, there will be a wind effect on the feet. And in the business logic code, it is written that when virtual character B starts walking, there will be a fire effect on the feet. Then, the specified special effect effect in the special effect blueprint configured for virtual character A can be modified to the corresponding fire effect, and the modified special effect blueprint can be configured into the data table corresponding to virtual character B to achieve reuse.
[0099] As can be seen from the above, in the embodiment of the present application, in response to a blueprint creation operation, an effect blueprint for a target virtual object is created. In the effect blueprint, a specified effect display part, a specified effect, and a specified trigger event for triggering the specified effect display part to display the specified effect are configured for the target virtual object. Based on the object type of the target virtual object, the effect blueprint is configured in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the effect display part of the target virtual object is controlled to display the effect. In this way, by creating an effect blueprint with only effect function events, since there are no other complex function events in the effect blueprint, developers can be prevented from adjusting numerous complex function events in the blueprint, and the reusability of the blueprint is improved.
[0100] To facilitate better implementation of the method for configuring effects of virtual objects provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above method for configuring effects of virtual objects. The meanings of the nouns are the same as those in the above method for configuring effects of virtual objects, and the specific implementation details can refer to the description in the method embodiment.
[0101] Please refer to Figure 2 , Figure 2 which is a schematic structural diagram of the device for configuring effects of virtual objects provided in the embodiment of the present application. The device for configuring effects of virtual objects may include a creation module 201, a first configuration module 202, etc.
[0102] The creation module 201 is configured to create an effect blueprint for a target virtual object in response to a blueprint creation operation. In the effect blueprint, a specified effect display part, a specified effect, and a specified trigger event for triggering the specified effect display part to display the specified effect are configured for the target virtual object.
[0103] The first configuration module 202 is configured to configure the effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object, so that when the specified trigger event is triggered, the effect display part of the target virtual object is controlled to display the effect.
[0104] In some embodiments, the device further includes:
[0105] A second configuration module, configured to, if there are other virtual objects that meet the reuse conditions of the effect blueprint, configure the effect blueprint in the data tables corresponding to the other virtual objects.
[0106] In some embodiments, the object type of the target virtual object is a virtual character object type. The creation module 201 includes:
[0107] The first creation sub-module is used to create a virtual character special effect blueprint template in response to a first blueprint creation operation;
[0108] The second creation sub-module is used to create a trigger event window configured with a first sub-specified trigger event in the virtual character special effect blueprint template in response to a trigger event window creation operation;
[0109] The third creation sub-module is used to, in response to a special effect configuration window creation operation, read, from business logic code according to the first sub-specified trigger event, a first sub-specified special effect and a first sub-specified special effect display part for displaying the first sub-specified special effect when the first sub-specified trigger event is triggered, and create a special effect configuration window configured with the first sub-specified special effect display part and the first sub-specified special effect in the virtual character special effect blueprint template;
[0110] The connection sub-module is used to connect the trigger event window and the special effect configuration window in the virtual character special effect blueprint in response to a window connection operation, so as to obtain a special effect blueprint for a target virtual object whose object type is a virtual character object type.
[0111] In some embodiments, the first configuration module 202 includes:
[0112] The determination sub-module is used to, when the object type of the target virtual object is a virtual character object type, determine, according to the first sub-specified special effect display part, a blueprint storage directory for each first sub-specified special effect display part from a data table corresponding to the target virtual object;
[0113] The first configuration sub-module is used to configure the special effect blueprint under the blueprint storage directory for each first sub-specified special effect display part.
[0114] In some embodiments, the first configuration module 202 further includes:
[0115] The first reading sub-module is used to, when it is detected that the target virtual object triggers the first sub-specified trigger event, read the special effect blueprint configured under the blueprint storage directory for each first sub-specified special effect display part through a first specified reading tool.
[0116] In some embodiments, the object type of the target virtual object is a virtual accessory object type, and the creation module includes:
[0117] The fourth creation sub-module is used to create a virtual accessory special effect blueprint template in response to a second blueprint creation operation;
[0118] An import sub-module for importing a selected target virtual accessory into the virtual accessory special effect blueprint template in response to a virtual accessory import operation;
[0119] A second configuration sub-module for screening out a second sub-specified special effect configured for the target virtual accessory from a service configuration file based on the target virtual accessory, and configuring the second sub-specified special effect in the virtual accessory special effect blueprint template;
[0120] A third configuration sub-module for reading a second sub-specified special effect display part configured for the target virtual accessory from service logic code based on the target virtual accessory, and configuring the second sub-specified special effect display part in the virtual accessory special effect blueprint template;
[0121] A generation sub-module for reading an effect trigger logic and a second sub-specified trigger event configured for the second sub-specified special effect from service logic code according to the second sub-specified special effect and the second sub-specified special effect display part, generating an effect trigger logic label, and configuring the effect trigger logic label in the virtual accessory special effect blueprint template to obtain a special effect blueprint for a target virtual object of the virtual accessory object type.
[0122] In some embodiments, the first configuration module 202 includes:
[0123] A fourth configuration sub-module for, when the object type of the target virtual object is the virtual accessory object type, configuring the special effect blueprint in the blueprint storage directory of the data table corresponding to the target virtual accessory.
[0124] In some embodiments, the first configuration module 202 further includes:
[0125] A second reading sub-module for, when detecting the second sub-specified trigger event corresponding to the effect trigger logic label, reading the special effect blueprint configured in the blueprint storage directory of the data table corresponding to the target virtual accessory through a second specified reading tool, so that the second sub-specified special effect display part of the target virtual accessory displays the second sub-specified special effect according to the effect trigger logic.
[0126] As can be seen from the above, in the embodiment of the present application, the creation module 201 responds to the blueprint creation operation to create a special effect blueprint for the target virtual object. The special effect blueprint is configured with a specified special effect display part, a specified special effect for the target virtual object, and a specified trigger event for triggering the display of the specified special effect on the specified special effect display part. The first configuration module 202 configures the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object, so that when the specified trigger event is triggered, the special effect display part of the target virtual object is controlled to display the special effect. In this way, by creating a special effect blueprint with only special effect function events, since there are no other complex function events in the special effect blueprint, developers can be prevented from adjusting the numerous complex function events in the blueprint, thereby improving the reusability of the blueprint.
[0127] For the specific implementation of each of the above operations, reference may be made to the previous embodiments and will not be elaborated here.
[0128] Correspondingly, the embodiment of the present application also provides an electronic device, as Figure 3 shown, Figure 3 which is a schematic structural diagram of the electronic device provided by the embodiment of the present application. The electronic device 2000 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. Among them, the processor 401 is electrically connected to the memory 402. Those skilled in the art can understand that the structural diagram of the electronic device shown in the figure does not constitute a limitation on the electronic device, and it may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0129] The processor 401 is the control center of the electronic device 2000, connecting various parts of the entire electronic device 2000 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 402, and by calling the data stored in the memory 402, it executes various functions of the electronic device 2000 and processes data, thereby monitoring the entire electronic device 2000.
[0130] In the embodiment of the present application, the processor 401 in the electronic device 2000 will load the instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 will run the application programs stored in the memory 402 to implement various functions:
[0131] In response to a blueprint creation operation, an effect blueprint for a target virtual object is created. In the effect blueprint, a specified effect display part, a specified effect, and a specified trigger event for triggering the specified effect display part to display the specified effect are configured for the target virtual object. Based on the object type of the target virtual object, the effect blueprint is configured in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the effect display part of the virtual object is controlled to display the effect.
[0132] For the specific implementation of each of the above operations, reference can be made to the previous embodiments, which will not be elaborated here.
[0133] Optionally, as Figure 3 shown, the electronic device 2000 further includes: an input unit 403 and a power supply 404. Among them, the processor 401 is electrically connected to the input unit 403 and the power supply 404 respectively. Those skilled in the art can understand that Figure 3 the structure of the electronic device shown in
[0134] does not constitute a limitation on the electronic device, and it may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0135] The input unit 403 can be used to receive input digital, character information or user characteristic information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0136] Although Figure 3 not shown in
[0137] the electronic device 2000 may further include a camera, a sensor, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.
[0138] As described above, the electronic device provided in this embodiment can, in response to a blueprint creation operation, create a special effect blueprint for a target virtual object. In the special effect blueprint, a specified special effect display part, a specified special effect, and a specified trigger event for triggering the specified special effect display part to display the specified special effect are configured for the target virtual object. Based on the object type of the target virtual object, the special effect blueprint is configured in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the special effect display part of the virtual object is controlled to display the special effect. In this way, by creating a special effect blueprint with only special effect function events, since there are no other complex function events in the special effect blueprint, developers can be prevented from adjusting numerous complex function events in the blueprint, thereby improving the reusability of the blueprint.
[0139] Those of ordinary skill in the art can understand that all or part of the steps in the above various methods can be completed by instructions or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0140] For this reason, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute the steps in any of the special effect configuration methods for virtual objects provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0141] In response to a blueprint creation operation, create a special effect blueprint for a target virtual object. In the special effect blueprint, a specified special effect display part, a specified special effect, and a specified trigger event for triggering the specified special effect display part to display the specified special effect are configured for the target virtual object. Based on the object type of the target virtual object, the special effect blueprint is configured in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the special effect display part of the virtual object is controlled to display the special effect.
[0142] For the specific implementation of each of the above operations, reference can be made to the previous embodiments and will not be elaborated here.
[0143] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc.
[0144] Since the computer program stored in the storage medium can execute the steps in any of the special effect configuration methods for virtual objects provided in the embodiments of the present application, the beneficial effects achievable by any of the special effect configuration methods for virtual objects provided in the embodiments of the present application can be realized. For details, refer to the previous embodiments and will not be elaborated herein.
[0145] The above has introduced in detail a special effect configuration method, device, computer-readable storage medium, and electronic device for a virtual object provided in the embodiments of the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for configuring special effects of a virtual object, characterized in that, The method includes: In response to a blueprint creation operation, creating a special effect blueprint for a target virtual object, where the special effect blueprint is configured with a specified special effect display part, a specified special effect, and a specified trigger event for triggering the specified special effect display part to display the specified special effect for the target virtual object; Based on the object type of the target virtual object, configuring the special effect blueprint in the data table corresponding to the target virtual object, so that when the specified trigger event is triggered, the special effect display part of the target virtual object is controlled to display the special effect; If it is determined according to the business logic code that there are other virtual objects that meet the reuse conditions of the special effect blueprint, then configure the special effect blueprint in the data table corresponding to the other virtual objects, where the business logic code is located in the UE software, and the reuse condition is that at least one of the special effect display part, the specified special effect, and the specified trigger event corresponding to the other virtual objects written in the business logic code is the same as the special effect display part, the specified special effect, and the specified trigger event in the special effect blueprint.
2. The method for configuring special effects of a virtual object according to claim 1, characterized in that, The object type of the target virtual object is a virtual character object type, and the step of creating a special effect blueprint for the target virtual object in response to a blueprint creation operation includes: In response to a first blueprint creation operation, creating a virtual character special effect blueprint template; In response to a trigger event window creation operation, creating a trigger event window configured with a first sub-specified trigger event in the virtual character special effect blueprint template; In response to a special effect configuration window creation operation, according to the first sub-specified trigger event, reading from the business logic code the first sub-specified special effect triggered when the first sub-specified trigger event is triggered and the first sub-specified special effect display part for displaying the first sub-specified special effect, and creating a special effect configuration window configured with the first sub-specified special effect display part and the first sub-specified special effect in the virtual character special effect blueprint template; In response to a window connection operation, connecting the trigger event window and the special effect configuration window in the virtual character special effect blueprint to obtain a special effect blueprint for a target virtual object whose object type is a virtual character object type.
3. The method for configuring special effects of a virtual object according to claim 2, characterized in that, The step of configuring the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object includes: When the object type of the target virtual object is a virtual character object type, determining the blueprint storage directory of each first sub-specified special effect display part from the data table corresponding to the target virtual object according to the first sub-specified special effect display part; Configuring the special effect blueprint under the blueprint storage directory of each first sub-specified special effect display part.
4. The method for configuring special effects of a virtual object according to claim 3, characterized in that, After the step of configuring the special effect blueprint under the blueprint storage directory of each first sub-specified special effect display part, it further includes: When it is detected that the target virtual object triggers the first sub-specified trigger event, reading the special effect blueprint configured under the blueprint storage directory of each first sub-specified special effect display part through a first specified reading tool.
5. The method for configuring special effects of a virtual object according to claim 1, characterized in that, The object type of the target virtual object is the virtual accessory object type. The step of creating a special effect blueprint for the target virtual object in response to a blueprint creation operation includes: In response to a second blueprint creation operation, creating a virtual accessory special effect blueprint template; In response to a virtual accessory import operation, importing the selected target virtual accessory into the virtual accessory special effect blueprint template; Based on the target virtual accessory, screening out the second sub-specified special effect configured for the target virtual accessory from the service configuration file, and configuring the second sub-specified special effect in the virtual accessory special effect blueprint template; Reading the second sub-specified special effect display part configured for the target virtual accessory from the service logic code according to the target virtual accessory, and configuring the second sub-specified special effect display part in the virtual accessory special effect blueprint template; According to the second sub-specified special effect and the second sub-specified special effect display part, reading the effect trigger logic and the second sub-specified trigger event configured for the second sub-specified special effect from the service logic code, and generating an effect trigger logic label, and configuring the effect trigger logic label in the virtual accessory special effect blueprint template to obtain a special effect blueprint for the target virtual object with the object type of the virtual accessory object type.
6. The method for configuring special effects of a virtual object according to claim 5, characterized in that, The step of configuring the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object includes: When the object type of the target virtual object is the virtual accessory object type, configuring the special effect blueprint in the blueprint storage directory of the data table corresponding to the target virtual accessory.
7. The method for configuring special effects of a virtual object according to claim 6, characterized in that, After the step of configuring the special effect blueprint in the blueprint storage directory of the data table corresponding to the target virtual accessory, it further includes: When detecting the second sub-specified trigger event corresponding to the effect trigger logic label, reading the special effect blueprint configured in the blueprint storage directory of the data table corresponding to the target virtual accessory through a second specified reading tool, so that the second sub-specified special effect display part of the target virtual accessory displays the second sub-specified special effect according to the effect trigger logic.
8. A device for configuring special effects of a virtual object, characterized in that, Including: A creation module for creating a special effect blueprint for a target virtual object in response to a blueprint creation operation. The special effect blueprint is configured with a specified special effect display part, a specified special effect, and a specified trigger event for triggering the specified special effect display part to display the specified special effect for the target virtual object; A first configuration module for configuring the special effect blueprint in the data table corresponding to the target virtual object based on the object type of the target virtual object, so that when the specified trigger event is triggered, controlling the special effect display part of the virtual object to display the special effect; A second configuration module, configured to, if it is determined according to business logic code that there are other virtual objects satisfying the reuse conditions of the special effect blueprint, configure the special effect blueprint in the data table corresponding to the other virtual objects, where the business logic code is located in UE software, and the reuse conditions are that at least one of the special effect display parts, specified special effect effects, and specified trigger events corresponding to the other virtual objects written in the business logic code is the same as the special effect display parts, specified special effect effects, and specified trigger events in the special effect blueprint.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the special effect configuration method of the virtual object according to any one of claims 1 to 7.
10. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the special effect configuration method of the virtual object according to any one of claims 1 to 7.
Citation Information
Patent Citations
Visualized game logic editing method and system
CN108021363A