Virtual object animation processing method and device, electronic equipment and storage medium
By providing the playback setting interface of animation files in the Legacy animation system of Unity engine, creating multiple animation processes and adding virtual objects and their animation files, the problem of cumbersome and inefficient animation production steps in the existing technology is solved, and the more Efficient animation production process and serial playback of virtual object animations.
Patent Information
- Application Number
- CN202411479030.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, when using the Legacy animation system of the Unity engine to create animations for multiple virtual objects, the steps are complicated and the process is complicated, and the animation of multiple virtual objects cannot be continuously previewed and observed, resulting in low animation production efficiency.
Provide a play setting interface for animation files, through which multiple animation processes are created, multiple virtual objects and their corresponding animation files are added to multiple animation processes, and playback control parameters are set to control the playback order of animation processes and Point of time.
Save time for game producers to set animations for virtual objects, reduce the steps of animations for multiple virtual objects, simplify the animation production process, and enable the animations of multiple virtual objects to be played serially, improving animation production efficiency.
Smart Images

Figure CN119512427A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a method, device, electronic device and storage medium for processing animation of a virtual object. Background Art
[0002] In order to meet people's pursuit of spiritual life, entertainment games that can be operated on terminals have emerged. For example, multiplayer online tactical competitive games and massively multiplayer online games developed based on client or server architecture are deeply loved by users due to their high fluency, good operating feel, real-time combat, etc. In the game, players can manipulate virtual objects on the screen to play in a virtual game scene, allowing players to experience the visual impact of the game in person, greatly enhancing the initiative and realism of the game.
[0003] At present, game developers usually use game engines (Unity engines) to create object animations of virtual objects in games. For example, a three-dimensional model animation of a virtual character can be created in the Unity engine, such as an animation of a virtual character running in a virtual scene. In the prior art, when using the Legacy animation system of the Unity engine to create animations of virtual objects, usually only animation components can be configured for a single virtual object. When multiple virtual objects need to be animated, multiple animation components also need to be set, resulting in cumbersome steps and complicated processes when animating multiple virtual objects. In addition, it is impossible to continuously preview and observe the animations of multiple virtual objects, and it is impossible to adjust the animations of multiple virtual objects as a whole, resulting in low efficiency in the animation of virtual objects. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for processing animation of virtual objects, by providing a playback setting interface of an animation file, so as to create multiple animation processes through the playback setting interface, and add multiple virtual objects and corresponding animation files to the multiple animation processes, thereby saving the production time of setting animations for virtual objects for game producers, reducing the steps of producing animations for multiple virtual objects, and simplifying the animation production process; and, through the multiple target animation processes set by a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, so as to be able to adjust the animations of multiple virtual objects as a whole, and improve the efficiency of animation production of virtual objects.
[0005] In a first aspect, an embodiment of the present application provides a method for processing an animation of a virtual object, comprising:
[0006] Displaying a playback setting interface of the animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points of the multiple animation processes and between the animation processes;
[0007] Add at least one target animation process in the playback setting interface, and obtain the target adding order of each target animation process;
[0008] Adding at least one target virtual object in the target animation process through the play setting interface, and adding at least one target animation file for each target virtual object;
[0009] Setting the target playback control parameters corresponding to each target animation process through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process;
[0010] Based on the target adding order of each animation process, the target animation file and the target playback control parameter, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled.
[0011] In a second aspect, an embodiment of the present application provides an animation processing device for a virtual object, comprising:
[0012] A display unit, used to display a playback setting interface of an animation file, wherein the playback setting interface can be used to set a plurality of animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate a playback order and a playback time point between the plurality of animation processes and the animation processes;
[0013] An acquisition unit, configured to add at least one target animation process in the play setting interface, and acquire a target adding sequence of each target animation process;
[0014] An adding unit, used to add at least one target virtual object in the target animation process through the play setting interface, and to add at least one target animation file for each target virtual object;
[0015] A setting unit, used to set the target playback control parameters corresponding to each of the target animation processes through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process;
[0016] The control unit is used to control the playback of the target animation file of the target virtual object corresponding to the animation process based on the target adding order of each animation process, the target animation file and the target playback control parameter.
[0017] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; a processor loads the instructions from the memory to execute the steps of any virtual object animation processing method provided in the embodiment of the present application.
[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps of any virtual object animation processing method provided in the embodiment of the present application.
[0019] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in any one of the virtual object animation processing methods provided in the embodiments of the present application.
[0020] By adopting the solution of the embodiment of the present application, a playback setting interface for an animation file is provided to create multiple animation processes through the playback setting interface, and multiple virtual objects and corresponding animation files are added to the multiple animation processes, thereby saving the production time of game producers for setting animations for virtual objects, reducing the steps of making animations for multiple virtual objects, and simplifying the animation production process; and, through the multiple target animation processes set by a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, so that the animations of multiple virtual objects can be adjusted as a whole, thereby improving the efficiency of animation production of virtual objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a scene schematic diagram of a virtual object animation processing system provided in an embodiment of the present application;
[0023] Figure 2 This is a flowchart of an embodiment of a method for processing an animation of a virtual object provided in an embodiment of the present application;
[0024] Figure 3 This is a schematic diagram of a scenario of the animation processing method of a virtual object provided in an embodiment of the present application;
[0025] Figure 4ais another scenario schematic diagram of the virtual object animation processing method provided in an embodiment of the present application;
[0026] Figure 4b is another scenario schematic diagram of the virtual object animation processing method provided in an embodiment of the present application;
[0027] Figure 5 is a structural schematic diagram of a virtual object animation processing device provided in an embodiment of the present application;
[0028] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0030] In the prior art, when using the Legacy animation system of the Unity engine to produce animations for virtual objects, usually only an animation component can be configured for a single virtual object. When it is necessary to produce animations for multiple virtual objects, multiple animation components also need to be set. For example, when using the Legacy animation system to configure animations, only a corresponding Animation component can be configured for a single virtual object (such as a virtual object), that is, an Animation component must be set for each three-dimensional model of a virtual object before animation can be produced for it, resulting in cumbersome steps and complicated processes when producing animations for multiple virtual objects. In addition, since an Animation component must be set for each three-dimensional model of a virtual object, the animations of multiple virtual objects cannot be played serially. When adjusting the animation, it is necessary to view the animation of the corresponding virtual object individually to make adjustments, and it is impossible to continuously preview and observe the animations of multiple virtual objects, and it is impossible to adjust the animations of multiple virtual objects as a whole, resulting in low efficiency in the production of virtual object animations.
[0031] Among them, the Unity engine is a cross-platform game development engine developed and maintained by Unity Technologies. It provides an integrated development environment for creating 2D and 3D games, interactive experiences, and other virtual reality applications. The Unity engine has powerful graphics rendering capabilities, physical simulation, collision detection, animation systems, and script programming. It also provides a visual editor that allows developers to easily create scenes, set materials, adjust lighting effects, design game logic, etc. Unity also supports multi-person collaborative development, and developers can share resources, collaborate on editing, and version control. The Unity engine is widely used in game development, virtual reality, augmented reality, simulation training, visualization effects, and other fields.
[0032] The Legacy animation system is an animation system used in earlier versions of the Unity engine. In the Legacy animation system, developers can use the animation view in the Unity editor to create and edit animations. The Legacy animation system uses an object-based animation control method, that is, animation effects are achieved by directly manipulating the transformation properties of objects (such as position, rotation, and scale). Developers can set keyframes in the animation view, and then use interpolation algorithms to make smooth transitions between keyframes.
[0033] Based on the above problems, an embodiment of the present application provides an animation processing method, device, electronic device and computer-readable storage medium for virtual objects, by displaying a playback setting interface of an animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points between the multiple animation processes and the animation processes; then, at least one target animation process is added in the playback setting interface, and the target addition order of each target animation process is obtained; then, at least one target virtual object is added to the target animation process through the playback setting interface, and at least one target animation file is added to each target virtual object; thereafter, the target playback control parameters corresponding to each target animation process are set through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; finally, based on the target addition order of each animation process, the target animation file and the target playback control parameters, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled. In an embodiment of the present application, a playback setting interface for an animation file is provided to create multiple animation processes through the playback setting interface, and multiple virtual objects and corresponding animation files are added to the multiple animation processes, thereby saving game producers the production time for setting animations for virtual objects, reducing the steps for producing animations for multiple virtual objects, and simplifying the animation production process; and, by setting multiple target animation processes through a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, thereby being able to adjust the animations of multiple virtual objects as a whole, thereby improving the efficiency of animation production of virtual objects.
[0034] The embodiments of the present application provide a method, device, electronic device, and computer-readable storage medium for processing an animation of a virtual object. Specifically, the present embodiment will be described from the perspective of a virtual object animation processing device, which can be integrated into an electronic device, that is, the virtual object animation processing method of the present application embodiment can be executed by an electronic device, and optionally, the electronic device can include: a terminal device. The terminal device can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a game console, or a personal computer (PC) and other devices.
[0035] The virtual object animation processing method provided in the embodiment of the present application can be applied to, for example, a virtual object animation processing system. The virtual object animation processing system may include a player terminal device and a server, and the terminal may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. The player terminal device and the server may perform two-way communication via a network.
[0036] Optionally, the server may be an independent server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0037] The virtual object animation processing method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the virtual object animation processing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0038] For example, when the animation processing method of the virtual object is run on the terminal, the terminal device stores a game application and is used to present a virtual scene in the game screen. The terminal device is used to interact with the user through a graphical user interface, for example, the game application is downloaded and installed by the terminal device and run. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0039] For example, when the animation processing method of the virtual object runs on the server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game application and the game screen presentation body are separated, and the storage and operation of the animation processing method of the virtual object are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, etc., but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0040] See also Figure 1 , Figure 1 A scene diagram of an animation processing system for a virtual object provided by an embodiment of the present application. The system may include at least one terminal, at least one server, at least one database, and a network. The terminal held by the user can be connected to the servers of different games through the network. The terminal is any device with computing hardware that can support and execute software products corresponding to the game. In addition, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless network such as 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, different terminals can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminals and connected and synchronized with each other through appropriate networks to support multi-player games. In addition, the system may include multiple databases, multiple databases coupled to different servers, and information related to the game environment can be continuously stored in the database when different users are online for multi-player games.
[0041] The embodiment of the present application provides an animation processing method for a virtual object, which can be executed by a terminal or a server. The embodiment of the present application takes the execution of the animation processing method for a virtual object by a terminal as an example for explanation. Among them, the terminal may include a touch display screen and a processor (of course, the terminal may also use peripherals such as a mouse and a keyboard as input devices, and only the touch display screen is used as an example for explanation here), and the touch display screen is used to present a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. When the user operates the graphical user interface through the touch display screen, the graphical user interface can control the local content of the terminal by responding to the received operation instructions, and can also control the content of the opposite server by responding to the received operation instructions. For example, the operation instructions generated by the user acting on the graphical user interface include instructions for starting a game application, and the processor is configured to start the game application after receiving the instructions for starting the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously by multiple points on the screen. The user uses a finger to perform a touch operation on the graphical user interface, and when the graphical user interface detects the touch operation, different virtual objects in the graphical user interface of the game are controlled to perform actions corresponding to the touch operation.
[0042] It should be noted that Figure 1 The scene diagram of the virtual object animation processing system shown is merely an example. The virtual object animation processing system and scene described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0043] The following is a detailed description in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0044] See also Figure 2 , Figure 2 The flowchart of a method for processing an animation of a virtual object provided in an embodiment of the present application is shown in FIG. 1 . The specific flowchart of the method for processing an animation of a virtual object may be as follows: Steps 101 to 105:
[0045] Step 101, displaying a playback setting interface of an animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points of multiple animation processes and between the animation processes.
[0046] In an embodiment of the present application, the playback setting interface may include a process adding control for adding an animation process, at least one object adding control for adding a virtual object, and at least one animation adding control for adding an animation file. Specifically, multiple target animation processes can be newly created through the process adding control in the playback setting interface, at least one virtual object can be set for each target animation process, and at least one target animation file can be set for each virtual object, thereby creating corresponding animations for the virtual objects.
[0047] Among them, the playback control parameter can be the playback delay of the animation, which can specifically include a first playback delay between each of the target animation processes, a second playback delay between each target virtual object in the same target animation process, and a third playback delay for each target animation file corresponding to the target virtual object. The playback delay of an animation refers to the time interval between each animation in an animation sequence, and the playback delay determines when each animation starts playing and the time interval between them. Furthermore, by adjusting the playback delay of the animation, the appearance and disappearance time of the animation, as well as the transition effect between them, can be controlled. For example, a longer playback delay will increase the time interval between animations, while a shorter delay will reduce the time interval between them. Animation playback delay is an important parameter when designing and making animations, and can be used to create a variety of different animation effects.
[0048] Specifically, the step “before displaying the playback setting interface of the animation file” also includes:
[0049] A preset component script is configured for at least one target virtual object, and the component script is used to provide a playback setting interface for the target virtual object that can set multiple animation processes and playback control parameters between the animation processes.
[0050] In an embodiment of the present application, in order to set a serially played animation for a virtual object and its corresponding virtual sub-object, a preset component script can be configured for the virtual object, wherein the component script is a script for defining the behavior and function of the virtual object in the game, which can be added to the virtual object to control its behavior, respond to user input, handle collisions and other functions. The component script may contain the game logic, animation, physical behavior, audio effects, etc. of the virtual object to realize the game function and game interaction of the virtual object when the game is running. Therefore, the virtual object and its corresponding virtual sub-object mounted with this component script in the present application can set different levels and corresponding playback control parameters of different levels through the playback setting interface provided by the component script, so as to realize the serial playback of animations of multiple virtual objects and / or corresponding virtual sub-objects.
[0051] Furthermore, the step “before displaying the playback setting interface of the animation file” also includes:
[0052] Obtain a preset component script, wherein the component script is used to create multiple hierarchical objects of different hierarchical levels, each of the hierarchical objects is nested in sequence according to the corresponding hierarchical level, and the setting order of the hierarchical objects is used to indicate the playback order of the animation flow corresponding to the hierarchical objects.
[0053] In an embodiment of the present application, the element-level logic design can be performed through component scripts. For example, three layers can be set, which can specifically include a first-level process level, a second-level object level, and a third-level animation level. The first level is higher than the second level, and the second level is higher than the third level. Specifically, the process level is used to create a target animation process, specifically for placing multiple objects (i.e., virtual objects), and the animations between objects can be played synchronously or sequentially; the object level is used to add target virtual objects, specifically for adding multiple animation elements to objects to achieve serial playback; the animation level is used to add target animation files, specifically for configuring the assets and types of this animation, and setting whether to play in a loop. Among them, each level requires a delay function to flexibly control the animation connection time between different levels and between the same levels.
[0054] Step 102: Add at least one target animation process in the play setting interface, and obtain the target adding order of each target animation process.
[0055] In the embodiment of the present application, at least one target animation process can be added through the process adding control, so as to obtain the target adding order of the target animation process. For example, if no target animation process has been created before the target animation process is created, the target adding order of the target animation process currently created is set to the first; if a target animation process has been created before the target animation process is created, for example, there are already three target animation processes, the target adding order of the target animation process currently created is set to the fourth.
[0056] Step 103: adding at least one target virtual object to the target animation process through the play setting interface, and adding at least one target animation file for each target virtual object.
[0057] The target virtual object may be a virtual model such as a virtual character, a virtual person, a virtual animal or a virtual object, and the target animation file is used to configure corresponding animation effects for the virtual object.
[0058] Step 104: setting target playback control parameters corresponding to each target animation process through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process.
[0059] In one embodiment, the step of “setting the target playback control parameters corresponding to each target animation process through the playback setting interface” includes:
[0060] The first playback control parameters between the target animation processes, the second playback control parameters between the target virtual objects in the same target animation process, and the third playback control parameters of the target animation files corresponding to the target virtual objects are set through the playback setting interface.
[0061] Among them, the first play control parameter, the second play control parameter and the third play control parameter can all be play delays set for animations, which can specifically include the first play delay between the target animation processes, the second play delay between the target virtual objects in the same target animation process, and the third play delay of the target animation files corresponding to the target virtual objects. Based on the above play delays, the play time point of the target animation file corresponding to the virtual object in each target animation process can be determined.
[0062] Specifically, the first play delay, the second play delay, and the third play delay may be different, the same, or a specified value (eg, 0).
[0063] Step 105 : Based on the target adding order of each animation process, the target animation file and the target playback control parameter, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled.
[0064] In an embodiment of the present application, the animation can be played in sequence or synchronously according to the target addition order of each target animation process, the first playback control parameter of each target animation process (such as the first playback delay), the second playback control parameter of the target virtual object in each target animation process (such as the second playback delay), and the third playback control parameter of the target animation file corresponding to each target virtual object (such as the third playback delay). Specifically, the start and end playback time of each target animation process, target virtual object, and target animation file can be recorded in the code, and then different animation playback events are triggered when the corresponding time arrives.
[0065] Based on the above introduction, the game interaction method of the present application will be further illustrated by examples below. The specific embodiments of the game interaction method are described as follows.
[0066] In one embodiment, the playback setting interface includes a process adding control; the step of "adding at least one target animation process in the playback setting interface and obtaining a target adding order of each target animation process" may include:
[0067] In response to a triggering operation of adding a control to the process, adding a first target animation process in the playback setting interface;
[0068] The order of adding the second target animation processes currently added in the play setting interface is obtained, and the order of adding the first target animation process is determined based on the order of adding each second target animation process.
[0069] Specifically, at least one target animation process can be added through the process adding control, so as to obtain the target adding order of the target animation process. For example, if no target animation process has been created before the target animation process is created, the target adding order of the target animation process currently created is set to the first; if a target animation process has been created before the target animation process is created, for example, there are five second target animation processes, the target adding order of the first target animation process currently created is set to the sixth.
[0070] In a specific embodiment, the step of “adding a first target animation process in the playback setting interface in response to a triggering operation of adding a control to the process” may include:
[0071] In response to a trigger operation for adding controls to the process, a first target animation process is added to the playback setting interface, and a first process control panel corresponding to the first target animation process is displayed in the playback setting interface, wherein the first process control panel is used to set target playback control parameters of the first target animation process.
[0072] For example, see Figure 3 , a playback setting interface can be provided through a computer device, the playback setting interface includes a process adding control "Add Process", a user can perform a trigger operation on the process adding control "Add Process", and the computer device responds to the trigger operation on the process adding control, adds a first target animation process "Process 1" in the playback setting interface, and displays a first process control panel corresponding to the first target animation process in the playback setting interface, wherein the first process control panel is used to set the target playback control parameters of the first target animation process.
[0073] Furthermore, the first process control panel includes a first delay setting interface, and the first delay setting interface can set a first playback delay for the first target animation process and serve as a first playback control parameter of the first target animation process.
[0074] For example, see Figure 3 , a playback setting interface can be provided through a computer device, and a first process control panel corresponding to the first target animation process is displayed on the playback setting interface. The first process control panel includes a first delay setting interface. The first delay setting interface can set a first playback delay "Delay1" for the first target animation process. At this time, the value displayed in the first delay setting interface is the specific value of the first playback delay set for the first target animation process.
[0075] Furthermore, the first process control panel includes an object adding control; the step of "adding at least one target virtual object in the target animation process through the play setting interface" includes:
[0076] In response to a triggering operation for adding a control to the object, at least one target virtual object is added to the first target animation process, and a second delay setting interface and / or an animation adding control is displayed on the first process control panel;
[0077] Among them, the second delay setting interface can set a second playback delay for the target virtual object and serve as a second playback control parameter of the target virtual object; the animation adding control is configured to add a target animation file to the target virtual object after being triggered.
[0078] For example, see Figure 3The first process control panel includes an object adding control "Add Object". The user can perform a trigger operation on the object adding control "Add Object". In response to the trigger operation on the object adding control, the computer device adds a first target virtual object "Process 1 Object 1" to the first target animation process, and displays a second delay setting interface and / or an animation adding control "Add Animation" on the first process control panel. The second delay setting interface can set a second playback delay for the target virtual object. At this time, the value displayed in the second delay setting interface is the specific value for setting the second playback delay for the target virtual object. The animation adding control "Add Animation" is configured to add a target animation file to the target virtual object after being triggered.
[0079] Furthermore, the step of “adding at least one target animation file to each of the target virtual objects” includes:
[0080] In response to a triggering operation for adding the animation control, at least one target animation file is added to the target virtual object, and a third delay setting interface and at least one animation configuration interface are displayed on the first process control panel;
[0081] Among them, the third delay setting interface can set a third playback delay for the target animation file and serve as a third playback control parameter of the target animation file; an animation configuration interface is used to set a type of animation attribute for the target animation file.
[0082] For example, see Figure 3 , the user can perform a trigger operation on the animation adding control "add animation", and the computer device responds to the trigger operation on the animation adding control, adds a first target animation file "Animation 1" to the first target virtual object "Process 1 Object 1", and displays a third delay setting interface and at least one animation configuration interface on the first process control panel, wherein the third delay setting interface can set a third playback delay "Delay" for the first target animation file, and at this time, the value displayed in the third delay setting interface is the specific value of the third playback delay set for the first target animation file "Animation 1". The animation configuration interface may include an object setting interface "Animation Object", a type setting interface "Animation Type", a name setting interface "Animation Name", and a loop setting interface "Loop".
[0083] Furthermore, a deletion control is provided corresponding to each target animation process, target virtual object and target animation file, wherein the deletion control is configured to delete the target animation process, the target virtual object and / or the target animation file after being triggered.
[0084] Specifically, a process deletion control "Delete process" can be set for each target animation process, an object deletion control "Delete object" can be set for each target virtual object, and an animation deletion control "Delete animation" can be set for each target animation file. Figure 3 , a process deletion control "Delete Process" can be set for the first target animation process "Process 1", an object deletion control "Delete Object" can be set for the first target virtual object "Process 1 Object 1", and an animation deletion control "Delete Animation" can be set for the first target animation file "Animation 1".
[0085] Optionally, after creating the first target animation process "Process 1", you can continue to click the process adding control "Add Process" to add a new target animation process "Process 2", thereby creating multiple target animation processes.
[0086] Furthermore, after the first target animation process "Process 1" has been created and the first target virtual object "Process 1 Object 1" has been added to the first target animation process "Process 1", you can continue to click the object adding control "Add Object" to add a second target virtual object "Process 1 Object 2" to the first target animation process "Process 1", thereby creating multiple target virtual objects for the target animation process.
[0087] Specifically, after adding the first target virtual object "Process 1 Object 1" to the first target animation process "Process 1", you can click the animation adding control "Add Animation" to add the first target animation file "Animation 1" to the first target virtual object "Process 1 Object 1". Further, after adding the first target animation file "Animation 1" to the first target virtual object "Process 1 Object 1", you can continue to click the animation adding control "Add Animation" to continue to add the second target animation file "Animation 2" to the first target virtual object "Process 1 Object 1".
[0088] For details, please refer to Figure 4a and Figure 4b In order to allow users to configure animations themselves, the present application embodiment will provide a UI interface for an animation production tool, based on the Unity script framework, to control and configure animations through levels and delays. Specifically, prefabs can be placed in the script as an object managed by the script, and their related configurations can be operated in the script. For example, Figure 4a As shown in the tool design draft, users can drag the child objects that need to be animated into this script, and the prefab above the class will be managed by the script to control the animation related parameters. Figure 4b This is a detailed diagram of step 4.
[0089] In the embodiment of the present application, element-level logic design is required, for example, three layers may be required, which may specifically include process level, object level and animation level. Specifically, the process level is used to create the target animation process, specifically for placing multiple objects (i.e., virtual objects), and the animations between objects can be played synchronously or sequentially; the object level is used to add target virtual objects, specifically for adding multiple animation elements to objects to achieve serial playback; the animation level is used to add target animation files, specifically for configuring the assets and types of this animation, and setting whether to play in a loop. Among them, each level requires a delay function, which is used to flexibly control the animation connection time between different levels and between the same levels.
[0090] In order to realize the above functions, it is necessary to complete this tool under the Unity script framework, so basically all of them use Unity's C# interface, which is mainly written through Unity's Editor script framework. It is divided into two core function script modules: the main program file AnimationPreviewManager.cs and the Editor program file AnimationPreviewManagerEditor.cs. One is mainly the core logic function of the program, such as the classes and methods of the main elements; the other is an interactive interface, which is used to provide users with an interface that can be clicked to perform process setting operations.
[0091] Specifically, the three different levels of objects are implemented as nested relationships, specifically the process level, object level, and animation level are nested in sequence. In addition, users can add functional controls infinitely to implement different functions, or delete corresponding functions. For example, multiple process add controls, object add controls, and animation add controls can be set.
[0092] Specifically, the embodiment of the present application can write a C# script in the Unity engine, which is mounted on an object (i.e., a virtual object) as a component script. This script can select any child object under this object as an object to which animation can be added, and can use code to implement the function of adding runtime animation to this object. The tools provided by the component script can select the animation type, animation assets, set the delay playback duration, and turn the animation object on and off. The embodiment of the present application can enable some projects of old versions of Unity to have their own serial animation playback system at runtime. Compared with the previous configuration of corresponding animations on each individual object, the overall configuration is efficient and convenient. Specifically, a grouping and layering method is adopted to complete the animation serial playback function. Optionally, a timeline similar to editing software can also be implemented in the Unity script framework, and the asset can be dragged on it as a slider, which is more interactive; specifically, a Timeline tool carried by the Unity engine can be set to achieve quick adjustment of animations.
[0093] In summary, an embodiment of the present application provides an animation processing method for a virtual object, which can display a playback setting interface of an animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points between multiple animation processes and the animation processes; then, at least one target animation process is added in the playback setting interface, and the target addition order of each target animation process is obtained; then, at least one target virtual object is added to the target animation process through the playback setting interface, and at least one target animation file is added to each target virtual object; thereafter, the target playback control parameters corresponding to each target animation process are set through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; finally, based on the target addition order of each animation process, the target animation file and the target playback control parameters, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled. In an embodiment of the present application, a playback setting interface for an animation file is provided to create multiple animation processes through the playback setting interface, and multiple virtual objects and corresponding animation files are added to the multiple animation processes, thereby saving game producers the production time for setting animations for virtual objects, reducing the steps for producing animations for multiple virtual objects, and simplifying the animation production process; and, by setting multiple target animation processes through a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, thereby being able to adjust the animations of multiple virtual objects as a whole, thereby improving the efficiency of animation production of virtual objects.
[0094] This embodiment also provides a virtual object animation processing device, which can be integrated into a terminal device. Figure 5 As shown, the animation processing device of the virtual object may include:
[0095] A display unit 201 is used to display a playback setting interface of an animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points of the multiple animation processes and between the animation processes;
[0096] An acquisition unit 202 is used to add at least one target animation process in the play setting interface and acquire a target adding order of each target animation process;
[0097] An adding unit 203, configured to add at least one target virtual object in the target animation process through the play setting interface, and to add at least one target animation file for each target virtual object;
[0098] A setting unit 204, used to set the target playback control parameters corresponding to each of the target animation processes through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process;
[0099] The control unit 205 is used to control the playback of the target animation file of the target virtual object corresponding to the animation process based on the target adding order of each animation process, the target animation file and the target playback control parameter.
[0100] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0101] A preset component script is configured for at least one target virtual object, and the component script is used to provide a playback setting interface for the target virtual object that can set multiple animation processes and playback control parameters between the animation processes.
[0102] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0103] Obtain a preset component script, wherein the component script is used to create multiple hierarchical objects of different hierarchical levels, each of the hierarchical objects is nested in sequence according to the corresponding hierarchical level, and the setting order of the hierarchical objects is used to indicate the playback order of the animation flow corresponding to the hierarchical objects.
[0104] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0105] The first playback control parameters between the target animation processes, the second playback control parameters between the target virtual objects in the same target animation process, and the third playback control parameters of the target animation files corresponding to the target virtual objects are set through the playback setting interface.
[0106] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0107] In response to a triggering operation of adding a control to the process, adding a first target animation process in the playback setting interface;
[0108] The order of adding the second target animation processes currently added in the play setting interface is obtained, and the order of adding the first target animation process is determined based on the order of adding each second target animation process.
[0109] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0110] In response to a trigger operation for adding controls to the process, a first target animation process is added to the playback setting interface, and a first process control panel corresponding to the first target animation process is displayed in the playback setting interface, wherein the first process control panel is used to set target playback control parameters of the first target animation process.
[0111] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0112] In response to a triggering operation for adding a control to the object, at least one target virtual object is added to the first target animation process, and a second delay setting interface and / or an animation adding control is displayed on the first process control panel;
[0113] Among them, the second delay setting interface can set a second playback delay for the target virtual object and serve as a second playback control parameter of the target virtual object; the animation adding control is configured to add a target animation file to the target virtual object after being triggered.
[0114] In some embodiments, the virtual object animation processing device includes a processing subunit, which is used to:
[0115] In response to a triggering operation for adding the animation control, at least one target animation file is added to the target virtual object, and a third delay setting interface and at least one animation configuration interface are displayed on the first process control panel;
[0116] Among them, the third delay setting interface can set a third playback delay for the target animation file and serve as a third playback control parameter of the target animation file; an animation configuration interface is used to set a type of animation attribute for the target animation file.
[0117] An embodiment of the present application discloses an animation processing device for a virtual object, which displays a playback setting interface of an animation file through a display unit 201, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points between the multiple animation processes and the animation processes; an acquisition unit 202 adds at least one target animation process in the playback setting interface, and acquires a target addition order for each of the target animation processes; an adding unit 203 adds at least one target virtual object in the target animation process through the playback setting interface, and adds at least one target animation file for each of the target virtual objects; a setting unit 204 sets target playback control parameters corresponding to each of the target animation processes through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; a control unit 205 controls the playback of the target animation file of the target virtual object corresponding to the animation process based on the target addition order of each of the animation processes, the target animation file, and the target playback control parameters. In an embodiment of the present application, a playback setting interface for an animation file is provided to create multiple animation processes through the playback setting interface, and multiple virtual objects and corresponding animation files are added to the multiple animation processes, thereby saving game producers the production time for setting animations for virtual objects, reducing the steps for producing animations for multiple virtual objects, and simplifying the animation production process; and, by setting multiple target animation processes through a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, thereby being able to adjust the animations of multiple virtual objects as a whole, thereby improving the efficiency of animation production of virtual objects.
[0118] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. Alternatively, the electronic device may be a server.
[0119] like Figure 6 As shown, Figure 6A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0120] The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the electronic device 300 by running or loading software programs and / or units stored in the memory 302, and calling data stored in the memory 302, so as to monitor the electronic device 300 as a whole. The processor 301 can be a central processing unit CPU, a graphics processing unit GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0121] In the embodiment of the present application, the processor 301 in the electronic device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions, such as:
[0122] Displaying a playback setting interface of the animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points of the multiple animation processes and between the animation processes;
[0123] Add at least one target animation process in the playback setting interface, and obtain the target adding order of each target animation process;
[0124] Adding at least one target virtual object in the target animation process through the play setting interface, and adding at least one target animation file for each target virtual object;
[0125] Setting the target playback control parameters corresponding to each target animation process through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process;
[0126] Based on the target adding order of each animation process, the target animation file and the target playback control parameter, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled.
[0127] The electronic device provided in the embodiment of the present application can display a playback setting interface of an animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points between the multiple animation processes and the animation processes; then, at least one target animation process is added in the playback setting interface, and the target addition order of each target animation process is obtained; then, at least one target virtual object is added to the target animation process through the playback setting interface, and at least one target animation file is added for each target virtual object; thereafter, the target playback control parameters corresponding to each target animation process are set through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; finally, based on the target addition order of each animation process, the target animation file and the target playback control parameters, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled. In an embodiment of the present application, a playback setting interface for an animation file is provided to create multiple animation processes through the playback setting interface, and multiple virtual objects and corresponding animation files are added to the multiple animation processes, thereby saving game producers the production time for setting animations for virtual objects, reducing the steps for producing animations for multiple virtual objects, and simplifying the animation production process; and, by setting multiple target animation processes through a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, thereby being able to adjust the animations of multiple virtual objects as a whole, thereby improving the efficiency of animation production of virtual objects.
[0128] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0129] Optional, such as Figure 6 As shown, the electronic device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0130] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.
[0131] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0132] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then sent to another electronic device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earplug jack to provide communication between an external headset and the electronic device.
[0133] The input unit 306 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0134] The power supply 307 is used to supply power to various components of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0135] although Figure 6 Not shown, the electronic device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0136] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0137] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0138] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute any virtual object animation processing method provided in the embodiment of the present application. The computer program can execute the following steps of the virtual object animation processing method:
[0139] Displaying a playback setting interface of the animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points of the multiple animation processes and between the animation processes;
[0140] Add at least one target animation process in the playback setting interface, and obtain the target adding order of each target animation process;
[0141] Adding at least one target virtual object in the target animation process through the play setting interface, and adding at least one target animation file for each target virtual object;
[0142] Setting the target playback control parameters corresponding to each target animation process through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process;
[0143] Based on the target adding order of each animation process, the target animation file and the target playback control parameter, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled.
[0144] Due to the computer program stored in the storage medium, a playback setting interface of an animation file can be displayed, wherein the playback setting interface can be used to set playback control parameters between multiple animation processes and the animation processes, and the playback control parameters are used to indicate the playback order and playback time points between multiple animation processes and the animation processes; then, at least one target animation process is added in the playback setting interface, and the target addition order of each target animation process is obtained; then, at least one target virtual object is added to the target animation process through the playback setting interface, and at least one target animation file is added for each target virtual object; thereafter, the target playback control parameters corresponding to each target animation process are set through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; finally, based on the target addition order of each animation process, the target animation file and the target playback control parameters, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled. In an embodiment of the present application, a playback setting interface for an animation file is provided to create multiple animation processes through the playback setting interface, and multiple virtual objects and corresponding animation files are added to the multiple animation processes, thereby saving game producers the production time for setting animations for virtual objects, reducing the steps for producing animations for multiple virtual objects, and simplifying the animation production process; and, by setting multiple target animation processes through a playback setting interface, multiple animations of multiple virtual objects can be played serially, so that game producers can continuously preview and observe the animations of multiple virtual objects, thereby being able to adjust the animations of multiple virtual objects as a whole, thereby improving the efficiency of animation production of virtual objects.
[0145] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0146] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0147] Since the computer program stored in the computer-readable storage medium can execute any virtual object animation processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any virtual object animation processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0148] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in various optional implementations of the above embodiments.
[0149] In the above-mentioned virtual object animation processing device, computer-readable storage medium, electronic device, and computer program product embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the above-mentioned virtual object animation processing device, computer-readable storage medium, computer program product, electronic device, and the specific working process and beneficial effects that can be brought about can refer to the description of the virtual object animation processing method in the above embodiment, and the specific details will not be repeated here.
[0150] The above is a detailed introduction to a virtual object animation processing method, device, electronic device, computer-readable storage medium and computer program product provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for processing an animation of a virtual object, characterized in that: include: Displaying a playback setting interface of the animation file, wherein the playback setting interface can be used to set multiple animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate the playback order and playback time points of the multiple animation processes and between the animation processes; Add at least one target animation process in the playback setting interface, and obtain the target adding order of each target animation process; Adding at least one target virtual object in the target animation process through the play setting interface, and adding at least one target animation file for each target virtual object; Setting the target playback control parameters corresponding to each target animation process through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; Based on the target adding order of each animation process, the target animation file and the target playback control parameter, the playback of the target animation file of the target virtual object corresponding to the animation process is controlled.
2. The method according to claim 1, characterized in that Before displaying the playback setting interface of the animation file, it also includes: A preset component script is configured for at least one target virtual object, and the component script is used to provide a playback setting interface for the target virtual object that can set multiple animation processes and playback control parameters between the animation processes.
3. The method according to claim 2, characterized in that Before displaying the playback setting interface of the animation file, it also includes: Obtain a preset component script, wherein the component script is used to create multiple hierarchical objects of different hierarchical levels, each of the hierarchical objects is nested in sequence according to the corresponding hierarchical level, and the setting order of the hierarchical objects is used to indicate the playback order of the animation flow corresponding to the hierarchical objects.
4. The method according to claim 1, characterized in that: The target playback control parameters corresponding to each target animation process are set through the playback setting interface, including: The first playback control parameters between the target animation processes, the second playback control parameters between the target virtual objects in the same target animation process, and the third playback control parameters of the target animation files corresponding to the target virtual objects are set through the playback setting interface.
5. The method according to claim 4, characterized in that The playback setting interface includes a process adding control; adding at least one target animation process in the playback setting interface and obtaining the target adding order of each target animation process include: In response to a triggering operation of adding a control to the process, adding a first target animation process in the playback setting interface; The order of adding the second target animation processes currently added in the play setting interface is obtained, and the order of adding the first target animation process is determined based on the order of adding each second target animation process.
6. The method according to claim 5, characterized in that In response to the triggering operation of adding a control to the process, adding a first target animation process in the play setting interface includes: In response to a trigger operation for adding controls to the process, a first target animation process is added to the playback setting interface, and a first process control panel corresponding to the first target animation process is displayed in the playback setting interface, wherein the first process control panel is used to set target playback control parameters of the first target animation process.
7. The method according to claim 6, characterized in that The first process control panel includes a first delay setting interface, and the first delay setting interface can set a first play delay for the first target animation process and serve as a first play control parameter of the first target animation process.
8. The method according to claim 6, characterized in that The first process control panel includes an object adding control; adding at least one target virtual object in the target animation process through the play setting interface includes: In response to a triggering operation for adding a control to the object, at least one target virtual object is added to the first target animation process, and a second delay setting interface and / or an animation adding control is displayed on the first process control panel; Among them, the second delay setting interface can set a second playback delay for the target virtual object and serve as a second playback control parameter of the target virtual object; the animation adding control is configured to add a target animation file to the target virtual object after being triggered.
9. The method according to claim 8, characterized in that The adding at least one target animation file to each of the target virtual objects comprises: In response to a triggering operation for adding the animation control, at least one target animation file is added to the target virtual object, and a third delay setting interface and at least one animation configuration interface are displayed on the first process control panel; Among them, the third delay setting interface can set a third playback delay for the target animation file and serve as a third playback control parameter of the target animation file; an animation configuration interface is used to set a type of animation attribute for the target animation file.
10. The method according to claim 1, characterized in that A deletion control is correspondingly provided for each target animation process, target virtual object and target animation file, wherein the deletion control is configured to perform a deletion operation on the target animation process, the target virtual object and / or the target animation file after being triggered.
11. A virtual object animation processing device, characterized in that: include: A display unit, used to display a playback setting interface of an animation file, wherein the playback setting interface can be used to set a plurality of animation processes and playback control parameters between the animation processes, and the playback control parameters are used to indicate a playback order and a playback time point between the plurality of animation processes and the animation processes; An acquisition unit, configured to add at least one target animation process in the play setting interface, and acquire a target adding sequence of each target animation process; An adding unit, used to add at least one target virtual object in the target animation process through the play setting interface, and to add at least one target animation file for each target virtual object; A setting unit, used to set the target playback control parameters corresponding to each of the target animation processes through the playback setting interface, wherein the target playback control parameters are used to control the playback time point of the target animation file corresponding to the target animation process; The control unit is used to control the playback of the target animation file of the target virtual object corresponding to the animation process based on the target adding order of each animation process, the target animation file and the target playback control parameter.
12. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of the virtual object animation processing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the virtual object animation processing method according to any one of claims 1 to 10.