Virtual object copying method and device, electronic equipment and storage medium
Through the terminal device's graphical user interface and drag operation extension control technology, the problems of cumbersome virtual object replication operations and limited direction are solved, and efficient and flexible virtual object replication is achieved, which is suitable for replication requirements in UGC.
Patent Information
- Application Number
- CN202411271076.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, the duplication operation of virtual objects is complicated and can only be carried out along the coordinate axis direction. The replication efficiency is low and the flexibility is insufficient, making it difficult to meet the frequent copying needs in UGC, especially when building game tracks and level settings.
Provide a graphical user interface through the terminal device, generate controls in response to touch operations, and extend controls by dragging operations to determine the number and direction of copying, enabling flexible copying of virtual objects.
It improves the replication efficiency and flexibility of virtual objects, supports rapid replication in any direction, and meets the convenience and flexibility of replication requirements in UGC.
Smart Images

Figure CN119045715A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of virtual object replication, and in particular to a virtual object replication method, device, electronic device and storage medium. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] At present, frequent duplication operations of virtual objects are often required in UGC (User Generated Content), especially the construction of game tracks and levels, which are very dependent on the duplication function, for example, quickly planting a row of trees on both sides of the road. However, in the current related technologies, the duplication operation of virtual objects is relatively cumbersome, and can only be copied in a set direction, generally along the direction of the coordinate axis. Therefore, not only is the duplication efficiency low, but the duplication flexibility is also low. Summary of the invention
[0004] In view of this, the purpose of the present application is to propose a virtual object copying method, device, electronic device and storage medium to solve or partially solve the problems in the above-mentioned background technology.
[0005] Based on the above purpose, the present application provides a method for copying a virtual object, wherein a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes at least a virtual object; the method comprises:
[0006] In response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied;
[0007] Generating a first control at a corresponding position of the target subject; wherein the target virtual subject includes at least one virtual object;
[0008] In response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation, and determining an extension length and an extension direction of the first control;
[0009] The number of copies of the target virtual body is determined based on the extension length, and the target virtual body is copied along the extension direction based on the number of copies.
[0010] Based on the same inventive concept, the exemplary embodiment of the present application further provides a virtual object copying device, which provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface at least includes a virtual object; the device includes:
[0011] a determination module, in response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied;
[0012] A generating module generates a first control at a corresponding position of the target subject; wherein the target virtual subject includes at least one virtual object;
[0013] an extension module, in response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation, and determining an extension length and an extension direction of the first control;
[0014] The copy module determines the number of copies of the target virtual body based on the extension length, and copies the target virtual body along the extension direction based on the number of copies.
[0015] Based on the same inventive concept, an exemplary embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the virtual object copying method as described above when executing the program.
[0016] Based on the same inventive concept, an exemplary embodiment of the present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the virtual object copying method as described above.
[0017] Based on the same inventive concept, an exemplary embodiment of the present application further provides a computer program product, which includes a computer program. The computer program is executed by one or more processors so that the processor executes the virtual object replication method as described above.
[0018] As can be seen from the above, the virtual object copying method, device, electronic device and storage medium provided in the present application provide a graphical user interface through a terminal device, and the content displayed by the graphical user interface includes at least virtual objects; in response to a first touch operation on one or more virtual objects, a target virtual subject to be copied is determined, and a first control is generated at a corresponding position of the target object subject; wherein the target virtual subject includes at least one virtual object; in response to a first drag operation on the first control, the first control is controlled to extend with the first drag operation, and the extension length and extension direction of the first control are determined; the number of copies of the target virtual subject is determined based on the extension length, and the target virtual subject is copied along the extension direction based on the number of copies, so that the number of copies and the copy direction of the target virtual subject can be quickly determined through the extension of the first control, thereby improving the copying efficiency of virtual objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of an application scenario of an embodiment of the present application;
[0021] Figure 2 A schematic diagram of a flow chart of a method for copying a virtual object according to an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of a first control in an embodiment of the present application;
[0023] Figure 4 This is a schematic diagram of determining the number of copies by extending the length in an embodiment of the present application;
[0024] Figure 5 This is a schematic diagram of adjusting the spacing by a spacing module in an embodiment of the present application;
[0025] Figure 6 This is a schematic diagram of adjusting the extension direction of a first control through a sliding operation in an embodiment of the present application;
[0026] Figure 7 A schematic diagram of an extended shape of a first control in an embodiment of the present application;
[0027] Figure 8 is a schematic diagram of another extended shape of a first control in an embodiment of the present application;
[0028] Fig. 9 This is a schematic diagram of an effect of implementing the copying of a target virtual subject through a first control in an embodiment of the present application;
[0029] Fig.10 A schematic diagram of the structure of a virtual object copying device according to an embodiment of the present application;
[0030] Fig.11 A schematic diagram of the structure of a specific electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0032] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. In addition, in the description of this application, unless otherwise specified, the term "several" refers to two or more. The term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0033] According to an embodiment of the present application, a method, device, electronic device and storage medium for copying a virtual object are proposed.
[0034] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0035] The principles and spirit of the present application are explained in detail below with reference to several representative implementations of the present application.
[0036] Application Scenario Overview
[0037] In some specific application scenarios, the virtual object replication method of the present application can be applied to various replication systems involving virtual objects. Optionally, the system can be a game system. As an example, refer to Figure 1 , the application scenario includes at least one server 102 and at least one terminal 101. Terminal devices include but are not limited to desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, personal digital assistants (PDA) or other electronic devices that can realize the above functions. The server can be an independent physical server, or a server cluster or distributed system composed of several physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (content distribution network), and big data and artificial intelligence platforms. The server and the terminal can communicate through the network to realize data transmission. Among them, the network can be a wired network or a wireless network, which is not specifically limited in this application.
[0038] The server may be a server that provides various services. Specifically, the server may be used to provide background services for applications running on the terminal. Optionally, in some implementations, the method for copying virtual objects provided in the embodiment of the present application may be executed by a terminal device or a server. When executed by the server, in response to a first touch operation on one or more virtual objects, a target virtual subject to be copied is determined, and a first control is generated at a corresponding position of the target object subject; wherein the target virtual subject includes at least one virtual object; in response to a first drag operation on the first control, the first control is controlled to extend with the first drag operation, and the extension length and extension direction of the first control are determined; the number of copies of the target virtual subject is determined based on the extension length, and the target virtual subject is copied along the extension direction based on the number of copies. Optionally, the server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster consisting of several servers, or it may be implemented as a single server. When the server is software, it may be implemented as several software or software modules (for example, software or software modules used to provide distributed services), or it may be implemented as a single software or software module. The embodiment of the present application does not specifically limit this.
[0039] Optionally, the wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including hypertext mark-up language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure socket layer (SSL), transport layer security (TLS), virtual private network (VPN), and Internet protocol security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0040] The following describes the method for copying a virtual object according to an exemplary embodiment of the present application in conjunction with a specific application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0041] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include several sub-steps or several stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0042] Exemplary Methods
[0043] refer to Figure 2 The embodiment of the present application provides a method for copying a virtual object. The method provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface includes at least a virtual object. The method includes the following steps:
[0044] S101 : In response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied.
[0045] In specific implementation, in order to facilitate users to copy one or more virtual objects at the same time, in an embodiment of the present application, the parent to be copied is the target virtual subject, and the target virtual subject includes at least one virtual object, that is, the target virtual subject can be a single virtual object or a whole composed of multiple virtual objects. Optionally, the specific target virtual subject can be determined by a first touch operation on one or more virtual objects. Optionally, the specific first touch operation can be set as needed, and there is no limitation on this. For example, all virtual objects that need to be copied can be directly selected.
[0046] In order to accurately determine the target virtual subject, in some embodiments, in response to a first touch operation on one or more virtual objects, determining the target virtual subject to be copied specifically includes:
[0047] In response to continuous touch operations on each virtual object, each virtual object that is continuously touched is determined as the target virtual subject; wherein the continuous touch operation includes a continuous click operation or a continuous double-click operation, and the time between two adjacent touch operations is less than or equal to a preset time.
[0048] In specific implementation, in this embodiment, the target virtual subject can be determined according to the continuous touch operation, that is, the first touch operation is performed by the continuous touch operation. It should be noted that when performing the continuous touch operation, the time between two adjacent touch operations is less than or equal to the preset time, that is, after the first touch operation is performed, if the second touch operation is performed within the preset time, it is determined that the continuous touch operation is being performed at this time, and the timing is restarted from the second touch operation. If the second touch operation is not performed within the preset time after the first touch operation is performed, it is determined that the continuous touch operation is over, and the target virtual subject is determined by the touch operation that has been performed currently, that is, the current continuous touch operation is one time, and the corresponding target virtual subject is the virtual object confirmed by the first touch operation. Optionally, in some embodiments, the continuous touch operation includes a continuous click operation or a continuous double-click operation. In order to avoid interference with other touch operations, in some embodiments, when performing the continuous touch operation, a certain mode can be entered first, for example, a copy mode, and the continuous touch operation performed in this mode is determined as the first touch operation to determine the target virtual subject to be copied.
[0049] In order to help the user quickly determine multiple virtual objects corresponding to the target virtual subject, in some embodiments, in response to a first touch operation on one or more virtual objects, determining the target virtual subject to be copied specifically includes:
[0050] In response to a frame selection operation on each virtual object, each virtual object subjected to the frame selection operation is determined as a target virtual subject.
[0051] In specific implementation, in this embodiment, the first touch operation on one or more virtual objects can be performed through a frame selection operation. Optionally, when performing the frame selection operation, a sliding operation can be performed starting from any point in the graphical user interface, and the sliding trajectory of the sliding operation is used as the diagonal of the frame selection rectangle. When the above sliding operation is completed, the frame selection operation is performed with the frame selection rectangle determined at this time, that is, all virtual objects in the frame selection rectangle can be determined as virtual objects included in the target virtual subject. Optionally, in some embodiments, when the frame selection operation is performed in a three-dimensional space, the corresponding sliding trajectory of the sliding operation can be used as the diagonal of the frame selection rectangle. Optionally, in some embodiments, the user can also select other forms of frame selection operations as needed, without limitation, for example, using the sliding trajectory of the sliding operation as any side of the frame selection rectangle.
[0052] S102, generating a first control at a corresponding position of the target virtual subject; wherein the target virtual subject includes at least one virtual object.
[0053] In a specific implementation, after determining the target virtual subject, the first control can be directly generated at the corresponding position of the target subject, or after determining the target virtual subject, the first control can be further generated according to the user's virtual object editing operation. Optionally, when generating the first control, the center point of the target virtual subject can be used as the starting point to extend in a certain set direction to generate the first control. Figure 3 , where the current target virtual subject 01 is a rectangle, and the first control is an arrow control 02 extending outward from the center point of the rectangle. It should be noted that when the target virtual subject includes multiple virtual objects, the center point of the target virtual subject may not be on any virtual object. Fig. 9 , wherein the center point of the current target virtual subject 01 is between the two virtual objects (trees). Optionally, in some embodiments, the corresponding position of the first control and the target virtual subject can be set as needed, and there is no limitation on this.
[0054] S103: In response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation, and determining an extension length and an extension direction of the first control.
[0055] In a specific implementation, after the first control is generated, when a first drag operation for the first control is received, the first control is controlled to extend along with the first drag operation, and the extension length and extension direction of the first control are determined. Optionally, the first drag operation can be set as needed, and there is no limitation on this. For example, it can be a sliding operation for a certain point of the first control, or it can be a discrete click operation, that is, the first control is extended to the click location according to the click location.
[0056] In order to conveniently and quickly control the extension length and extension direction of the first control through the first drag operation, in some embodiments, in response to the first drag operation on the first control, controlling the first control to extend along with the first drag operation specifically includes:
[0057] Determining a target angle between a sliding direction of the first drag operation and the first control;
[0058] In response to the target angle being smaller than a preset angle, controlling the first control to adjust its length along with the first drag operation;
[0059] In response to the target angle being greater than or equal to a preset angle, the first control is controlled to adjust its direction along with the first drag operation.
[0060] In specific implementation, the sliding direction of the first drag operation and the target angle of the first control mainly refer to the acute angle generated between the two. The preset angle can be set as needed, and there is no limitation on this. For example, the preset angle can be set to 30 degrees. Optionally, when performing the first drag operation, when it is determined that the target angle is greater than or equal to the preset angle, the first control is controlled to adjust the direction along with the first drag operation; when it is determined that the target angle is less than the preset angle, the first control is controlled to adjust the length along with the first drag operation, so that the user can quickly achieve extended control of the first control without interrupting the sliding operation.
[0061] In some embodiments, in response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation specifically includes:
[0062] Determining an extension mode of the first control; wherein the extension mode includes an elongation mode and a rotation mode, and the extension mode is switched by a second touch operation;
[0063] In response to determining that the extension mode of the first control is the stretch mode, controlling the first control to adjust its length along a current direction of the first control based on the first drag operation;
[0064] In response to determining that the extension mode of the first control is the rotation mode, the first control is controlled to adjust its direction based on the first drag operation.
[0065] In the specific implementation, considering that in some embodiments, the user wishes to copy the virtual body along a fixed direction first, and then adjust the overall direction, therefore, in the embodiment of the present application, when performing a sliding operation, it is necessary to first determine the extension mode of the first control, which includes an elongation mode and a rotation mode, and the extension mode can be switched by a second touch operation. Optionally, the second touch operation can be set as needed, and there is no limitation on this. For example, the second touch operation can be set to a double-click operation, so that if the current extension mode of the first control is the elongation mode, double-clicking the first control can switch the extension mode to the rotation mode. Reference Figure 6 , wherein the user first copied 5 target virtual subjects in the horizontal direction through the stretching mode to obtain 5 copied target virtual subjects 03, and then switched to the rotation mode to adjust the overall direction.
[0066] Optionally, in some embodiments, considering the user's operating habits, after the first control is generated, the current extension mode can be set to the stretch mode by default, and then when the user's second touch operation is received, the stretch mode is switched to the rotation mode.
[0067] In some embodiments, the first control includes a mobile module, and the first drag operation is an operation acting on the mobile module. Figure 4 , where 01 represents the target virtual subject before copying, 03 represents the target virtual subject after copying, 02 represents the first control, and 022 represents the mobile module. The user implements the first drag operation by sliding the mobile module 022, thereby extending the first control. It should be noted that, in some embodiments, the first drag operation may also be a sliding operation on other parts of the first control, for example, Figure 4 Sliding operations on other parts of the first control except the mobile module 022.
[0068] S104: Determine the number of copies of the target virtual body based on the extension length, and copy the target virtual body along the extension direction based on the number of copies.
[0069] In a specific implementation, when the extension of the first control is controlled by the first drag operation, the number of copies of the target virtual body can be determined according to the extension length, and the target virtual body can be copied along the extension direction based on the number of copies. Optionally, when the target virtual body is copied along the extension direction based on the number of copies, the center point of the copied target virtual body can be located in the extension direction.
[0070] In order to accurately determine the number of copies, in some embodiments, determining the number of copies of the target virtual subject based on the extension length specifically includes:
[0071] Acquire a first size of the target virtual body along the extending direction;
[0072] The number of copies of the target virtual body is determined based on the first size and the extension length.
[0073] In a specific implementation, the number of copies of the target virtual body may be determined by using the length relationship between the first dimension of the target virtual body along the extension direction and the extension length.
[0074] In some embodiments, determining the number of copies of the target virtual subject based on the first size and the extension length specifically includes:
[0075] determining an integer portion of a ratio of the extended length to the first dimension;
[0076] The number of copies of the target virtual subject is determined based on the integer portion.
[0077] In a specific implementation, in order to ensure that the copied target virtual bodies do not overlap each other, the number of copies of the target virtual body may be determined by the integer part of the ratio of the extension length to the first size. Figure 4 , where M represents the first size, and D represents the extension length. Since the integer part of the ratio of the extension length to the first size is 5, the current number of copies is 5, that is, 5 target virtual bodies are copied.
[0078] In some embodiments, the first control includes a spacing module, and the spacing module is used to adjust the spacing between adjacent target virtual bodies after duplication. Optionally, in some embodiments, the first size includes: the first size is the distance between the target virtual body and the spacing module; or the first size is the size of the target virtual body.
[0079] During specific implementation, in order to accurately determine the first size, optionally, the straight-line distance between the spacing module and the target virtual subject can be determined as the first size. Optionally, the straight-line distance between the spacing module and the target virtual subject can be the straight-line distance from the center of the target virtual subject to the spacing module, or the straight-line distance from the edge of the target virtual subject to the spacing module. Optionally, in order to ensure that there is a certain initial spacing between the copied target virtual subjects, the edge of the target virtual subject generally refers to the edge away from the spacing module. It should be noted that when the first size is the distance between the target virtual subject and the spacing module, it mainly refers to the distance between the target virtual subject and the spacing module when the first control is not extended. Optionally, in some embodiments, the distance from other reference points of the target virtual subject to the spacing module can be selected as needed to determine the first size, and there is no limitation on this. Optionally, in some embodiments, the size of the target virtual subject can also be directly used as the first size, with reference to Figure 4 , where M represents the first size.
[0080] In some embodiments, the method further comprises:
[0081] In response to a second drag operation on the first control, the spacing between the adjacent target virtual entities after being copied is adjusted based on the second drag operation. In a specific implementation, in order to accurately adjust the spacing between the adjacent target virtual entities, in an embodiment of the present application, the user can adjust the spacing between the adjacent target virtual entities after being copied by a second drag operation on the first control. It should be noted that the second drag operation can be an operation mode completely different from the first drag operation, or it can be the same operation on different parts or modules of the first control, and there is no limitation on this.
[0082] In some embodiments, the first control includes a spacing module; and the second drag operation is an operation acting on the spacing module.
[0083] In a specific implementation, in order to facilitate the user to distinguish the first drag operation from the second drag operation, the first control further includes a spacing module, and the operation acting on the spacing module is identified as the second drag operation, and the operation acting on the mobile module is identified as the first drag operation. Figure 5 , wherein the small square 021 in the first control (arrow) is a spacing module, and the user can adjust the distance between two adjacent copied target virtual bodies by sliding the spacing module 021 left and right.
[0084] In some embodiments, reference Figure 4The first control 02 includes a line segment starting from the target virtual body 01 and a spacing module 021 and a moving module 022 arranged in sequence on the line segment.
[0085] In some embodiments, controlling the first control to extend along with the first drag operation specifically includes:
[0086] Determine an extended shape corresponding to the first control;
[0087] The first control is controlled to extend along with the first drag operation based on the extended shape.
[0088] In the specific implementation, in order to provide users with more abundant copying methods, in the embodiment of the present application, the first control corresponds to a variety of extended shapes, refer to Figure 7 , the extension shape corresponding to the first control 02 is a broken line. When the user performs a first drag operation to the right in the horizontal direction, the first control moves to the right in the form of a broken line, thereby forming a replica of the target virtual body with different heights. Figure 8 , the extension shape corresponding to the first control 02 is an arc shape. Optionally, the user can set a variety of extension shapes for the first control in advance as needed, and select the extension shape when controlling the first control to extend with the first drag operation. Optionally, for ease of operation, the extension shape corresponding to the first control can generally be set to a straight line. After determining the extension shape corresponding to the first control, the first control can be controlled to extend with the first drag operation according to the extension shape.
[0089] The virtual object copying method provided in the present application provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface includes at least virtual objects; in response to a first touch operation on one or more virtual objects, a target virtual body to be copied is determined, and a first control is generated at a corresponding position of the target object body; wherein the target virtual body includes at least one virtual object; in response to a first drag operation on the first control, the first control is controlled to extend along with the first drag operation, and the extension length and extension direction of the first control are determined; the number of copies of the target virtual body is determined based on the extension length, and the target virtual body is copied along the extension direction based on the number of copies, so that the number of copies and the copy direction of the target virtual body can be quickly determined by extending the first control, thereby improving the copying efficiency of the virtual object. At the same time, since the first control can be extended in any direction, it can effectively realize the rapid copying of objects in any direction in space, providing flexibility and convenience in copying virtual objects.
[0090] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or several steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0091] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0092] Exemplary Devices
[0093] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a virtual object duplication device, wherein the device provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface at least includes a virtual object.
[0094] refer to Fig.10 , the virtual object copying device comprises:
[0095] A determination module 201, in response to a first touch operation on one or more virtual objects, determines a target virtual subject to be copied;
[0096] A generating module 202 generates a first control at a corresponding position of the target subject; wherein the target virtual subject includes at least one virtual object;
[0097] An extension module 203, in response to a first drag operation on the first control, controls the first control to be extended along with the first drag operation, and determines an extension length and an extension direction of the first control;
[0098] The copy module 204 determines the number of copies of the target virtual body based on the extension length, and copies the target virtual body along the extension direction based on the number of copies.
[0099] In some embodiments, the determining module is specifically configured to:
[0100] In response to continuous touch operations on each virtual object, each virtual object that is continuously touched is determined as the target virtual subject; wherein the continuous touch operation includes a continuous click operation or a continuous double-click operation, and the time between two adjacent touch operations is less than or equal to a preset time.
[0101] In some embodiments, the determining module is specifically configured to:
[0102] In response to a frame selection operation on each virtual object, each virtual object subjected to the frame selection operation is determined as a target virtual subject.
[0103] In some embodiments, the extension module is specifically used to:
[0104] Determining a target angle between a sliding direction of the first drag operation and the first control;
[0105] In response to the target angle being smaller than a preset angle, controlling the first control to adjust its length along with the first drag operation;
[0106] In response to the target angle being greater than or equal to a preset angle, the first control is controlled to adjust its direction along with the first drag operation.
[0107] In some embodiments, the extension module is specifically used to:
[0108] Determining an extension mode of the first control; wherein the extension mode includes an elongation mode and a rotation mode, and the extension mode is switched by a second touch operation;
[0109] In response to determining that the extension mode of the first control is the stretch mode, controlling the first control to adjust its length along a current direction of the first control based on the first drag operation;
[0110] In response to determining that the extension mode of the first control is the rotation mode, the first control is controlled to adjust its direction based on the first drag operation.
[0111] In some embodiments, the first control includes a mobile module, and the first drag operation is an operation acting on the mobile module.
[0112] In some embodiments, the copy module includes:
[0113] An acquiring unit, configured to acquire a first size of the target virtual body along the extending direction;
[0114] A determining unit determines a number of copies of the target virtual subject based on the first size and the extension length.
[0115] In some embodiments, the determining unit is specifically configured to:
[0116] determining an integer portion of a ratio of the extended length to the first dimension;
[0117] The number of copies of the target virtual subject is determined based on the integer portion.
[0118] In some embodiments, the first control includes a spacing module, and the spacing module is used to adjust the spacing between adjacent target virtual bodies after replication.
[0119] In some embodiments, the first size includes at least one of the following:
[0120] The first size is the distance between the target virtual subject and the spacing module;
[0121] The first size is the size of the target virtual subject.
[0122] In some embodiments, the apparatus further comprises a spacing module for:
[0123] In response to a second drag operation on the first control, the spacing between the copied adjacent target virtual bodies is adjusted based on the second drag operation.
[0124] In some embodiments, the first control includes a spacing module; and the second drag operation is an operation acting on the spacing module.
[0125] In some embodiments, the first control includes a line segment starting from the target virtual body and a spacing module and a movement module sequentially arranged on the line segment.
[0126] In some embodiments, the extension module is specifically used to:
[0127] Determine an extended shape corresponding to the first control;
[0128] The first control is controlled to extend along with the first drag operation based on the extended shape.
[0129] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0130] The virtual object copying device of the above embodiment is used to implement the corresponding virtual object copying method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0131] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for copying a virtual object described in any of the above embodiments is implemented.
[0132] Fig.11 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0133] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0134] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0135] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0136] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0137] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0138] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0139] The electronic device of the above embodiment is used to implement the corresponding virtual object copying method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0140] The memory 1020 stores machine-readable instructions executable by the processor 1010. When the electronic device is running, the processor 1010 communicates with the memory 1020 through the bus 1050, so that the processor 1010 executes the following instructions when running: in response to a first touch operation on one or more virtual objects, determine a target virtual body to be copied, and generate a first control at a corresponding position of the target object body; wherein the target virtual body includes at least one virtual object; in response to a first drag operation on the first control, control the first control to extend along with the first drag operation, and determine the extension length and extension direction of the first control; determine the number of copies of the target virtual body based on the extension length, and copy the target virtual body along the extension direction based on the number of copies.
[0141] In a possible implementation, in the instructions executed by the processor 1010, in response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied specifically includes:
[0142] In response to continuous touch operations on each virtual object, each virtual object that is continuously touched is determined as the target virtual subject; wherein the continuous touch operation includes a continuous click operation or a continuous double-click operation, and the time between two adjacent touch operations is less than or equal to a preset time.
[0143] In a possible implementation, in the instructions executed by the processor 1010, in response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied specifically includes:
[0144] In response to a frame selection operation on each virtual object, each virtual object subjected to the frame selection operation is determined as a target virtual subject.
[0145] In a possible implementation manner, in the instructions executed by the processor 1010, in response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation specifically includes:
[0146] Determining a target angle between a sliding direction of the first drag operation and the first control;
[0147] In response to the target angle being smaller than a preset angle, controlling the first control to adjust its length along with the first drag operation;
[0148] In response to the target angle being greater than or equal to a preset angle, the first control is controlled to adjust its direction along with the first drag operation.
[0149] In a possible implementation manner, in the instructions executed by the processor 1010, in response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation specifically includes:
[0150] Determining an extension mode of the first control; wherein the extension mode includes an elongation mode and a rotation mode, and the extension mode is switched by a second touch operation;
[0151] In response to determining that the extension mode of the first control is the stretch mode, controlling the first control to adjust its length along a current direction of the first control based on the first drag operation;
[0152] In response to determining that the extension mode of the first control is the rotation mode, the first control is controlled to adjust its direction based on the first drag operation.
[0153] In a possible implementation, in the instruction executed by the processor 1010, the first control includes a mobile module, and the first drag operation is an operation acting on the mobile module.
[0154] In a possible implementation manner, the instructions executed by the processor 1010, determining the number of copies of the target virtual subject based on the extension length, specifically includes:
[0155] Acquire a first size of the target virtual body along the extending direction;
[0156] The number of copies of the target virtual body is determined based on the first size and the extension length.
[0157] In a possible implementation, in the instructions executed by the processor 1010, the first control includes a spacing module, and the spacing module is used to adjust the spacing between adjacent target virtual bodies after replication.
[0158] In a possible implementation, in the instruction executed by the processor 1010, the first size includes at least one of the following: the first size is the distance between the target virtual body and the spacing module; the first size is the size of the target virtual body.
[0159] In a possible implementation manner, the instructions executed by the processor 1010 include determining the number of copies of the target virtual subject based on the first size and the extension length, specifically including:
[0160] determining an integer portion of a ratio of the extended length to the first dimension;
[0161] The number of copies of the target virtual subject is determined based on the integer portion.
[0162] In a possible implementation, in the instruction executed by the processor 1010, the first control further includes a spacing module; and the method further includes:
[0163] In response to a second drag operation on the spacing module, the spacing between the copied adjacent target virtual bodies is adjusted based on the second drag operation.
[0164] In a possible implementation manner, in the instructions executed by the processor 1010, controlling the first control to extend along with the first drag operation specifically includes:
[0165] Determine an extended shape corresponding to the first control;
[0166] The first control is controlled to extend along with the first drag operation based on the extended shape.
[0167] Through the above method, when the electronic device is running, in response to a first touch operation on one or more virtual objects, a target virtual body to be copied is determined, and a first control is generated at the corresponding position of the target object body; wherein the target virtual body includes at least one virtual object; in response to a first drag operation on the first control, the first control is controlled to extend along with the first drag operation, and the extension length and extension direction of the first control are determined; based on the extension length, the number of copies of the target virtual body is determined, and based on the number of copies, the target virtual body is copied along the extension direction, so that the number of copies and the copy direction of the target virtual body can be quickly determined through the extension of the first control, thereby improving the copying efficiency of the virtual object. At the same time, since the first control can be extended in any direction, it can effectively realize the rapid copying of objects in any direction in space, providing flexibility and convenience in virtual object copying.
[0168] Exemplary Program Products
[0169] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the virtual object copying method described in any of the above embodiments.
[0170] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0171] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the virtual object copying method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0172] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a computer program product, which includes a computer program. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the virtual object copying method described in the above-mentioned embodiment. Corresponding to the execution subject corresponding to each step in each embodiment of the scene editing method, the processor that executes the corresponding step can belong to the corresponding execution subject.
[0173] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the virtual object copying method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0174] It is understandable that before using the technical solutions of each embodiment of the present application, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0175] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium or other software or hardware that performs the operation of the technical solution of the present application according to the prompt message.
[0176] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0177] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of this application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of this application.
[0178] It should be understood by those skilled in the art that the embodiments of the present application can be implemented as a system, method or computer program product. Therefore, the present application can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as "circuit", "module" or "system". In addition, in some embodiments, the present application can also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0179] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media can include, for example: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0180] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0181] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0182] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0183] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.
[0184] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0185] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0186] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0187] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into several modules or units to be embodied.
[0188] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; based on the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other adjustments to the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0189] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are adjusted. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0190] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0191] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for copying a virtual object, characterized in that: Providing a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least a virtual object; the method includes: In response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied; Generating a first control at a corresponding position of the target subject; wherein the target virtual subject includes at least one virtual object; In response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation, and determining an extension length and an extension direction of the first control; The number of copies of the target virtual body is determined based on the extension length, and the target virtual body is copied along the extension direction based on the number of copies.
2. The method according to claim 1, characterized in that In response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied specifically includes: In response to continuous touch operations on each virtual object, each virtual object that is continuously touched is determined as the target virtual subject; wherein the continuous touch operation includes a continuous click operation or a continuous double-click operation, and the time between two adjacent touch operations is less than or equal to a preset time.
3. The method according to claim 1, characterized in that In response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied specifically includes: In response to a frame selection operation on each virtual object, each virtual object subjected to the frame selection operation is determined as a target virtual subject.
4. The method according to claim 1, characterized in that: In response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation specifically includes: Determining a target angle between a sliding direction of the first drag operation and the first control; In response to the target angle being smaller than a preset angle, controlling the first control to adjust its length along with the first drag operation; In response to the target angle being greater than or equal to a preset angle, the first control is controlled to adjust its direction along with the first drag operation.
5. The method according to claim 1, characterized in that In response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation specifically includes: Determining an extension mode of the first control; wherein the extension mode includes an elongation mode and a rotation mode, and the extension mode is switched by a second touch operation; In response to determining that the extension mode of the first control is the stretch mode, controlling the first control to adjust its length along a current direction of the first control based on the first drag operation; In response to determining that the extension mode of the first control is the rotation mode, the first control is controlled to adjust its direction based on the first drag operation.
6. The method according to claim 1 or 5, characterized in that: The first control includes a mobile module, and the first drag operation is an operation acting on the mobile module.
7. The method according to claim 1, characterized in that Determining the number of copies of the target virtual subject based on the extension length specifically includes: Acquire a first size of the target virtual body along the extending direction; The number of copies of the target virtual body is determined based on the first size and the extension length.
8. The method according to claim 7, characterized in that The first control includes a spacing module, and the spacing module is used to adjust the spacing between adjacent target virtual bodies after replication.
9. The method according to claim 8, characterized in that The first size includes at least one of the following: The first size is the distance between the target virtual subject and the spacing module; The first size is the size of the target virtual subject.
10. The method according to claim 7, characterized in that Determining the number of copies of the target virtual subject based on the first size and the extension length specifically includes: determining an integer portion of a ratio of the extended length to the first dimension; The number of copies of the target virtual subject is determined based on the integer portion.
11. The method according to claim 1, characterized in that: The method further comprises: In response to a second drag operation on the first control, the spacing between the copied adjacent target virtual bodies is adjusted based on the second drag operation.
12. The method according to claim 11, characterized in that The first control includes a spacing module; the second drag operation is an operation acting on the spacing module.
13. The method according to claim 1, characterized in that The first control includes a line segment starting from the target virtual body and a spacing module and a moving module sequentially arranged on the line segment.
14. The method according to claim 1, characterized in that Controlling the first control to extend along with the first drag operation specifically includes: Determine an extended shape corresponding to the first control; The first control is controlled to extend along with the first drag operation based on the extended shape.
15. A virtual object copying device, characterized in that: Providing a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface at least includes a virtual object; the apparatus comprises: a determination module, in response to a first touch operation on one or more virtual objects, determining a target virtual subject to be copied; A generating module generates a first control at a corresponding position of the target subject; wherein the target virtual subject includes at least one virtual object; an extension module, in response to a first drag operation on the first control, controlling the first control to extend along with the first drag operation, and determining an extension length and an extension direction of the first control; The copy module determines the number of copies of the target virtual body based on the extension length, and copies the target virtual body along the extension direction based on the number of copies.
16. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 14 when executing the program.
17. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 14.
