Method, device and equipment for selecting interactive object of virtual scene and storage medium
By setting a detection range within a virtual scene to detect and select target interactive objects, the problem of users having difficulty selecting target objects in a virtual scene is solved, achieving accurate and rapid selection of interactive objects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- UBTECH ROBOTICS CORP LTD
- Filing Date
- 2022-12-29
- Publication Date
- 2026-06-19
AI Technical Summary
In virtual scenarios, it is difficult for users to precisely control virtual characters to interact with numerous objects, especially when there is a large number of objects, making it difficult to select the target object.
The system detects interactive objects for the virtual character within a pre-set detection range, selects the target interactive object in response to user selection commands, displays the virtual scene and character using the display module, and selects the target interactive object using the selection module.
It enables precise and rapid selection of target interactive objects in virtual scenes, improving the accuracy and efficiency of user control.
Smart Images

Figure CN116099197B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for selecting interactive objects in a virtual scene. Background Technology
[0002] Currently, in some virtual scene applications, user-controlled characters need to interact with objects within the virtual scene. Users often need to control their characters to approach the objects they want to interact with and perform actions to do so. When there are many objects or objects in the virtual scene and they are relatively concentrated, it can be difficult for users to accurately control which object to interact with. Summary of the Invention
[0003] In view of the above, this application provides a method, apparatus, device and storage medium for selecting interactive objects in a virtual scene, the purpose of which is to solve the above-mentioned technical problems.
[0004] Firstly, this application provides a method for selecting interactive objects in a virtual scene, the method comprising:
[0005] A graphical user interface is output on the display screen of an electronic device, in which a virtual scene and virtual characters located in the virtual scene are displayed;
[0006] Within a pre-set detection range, objects that can interact with the virtual character are detected;
[0007] In response to a user's selection instruction for choosing an interactive object for the virtual character, the system selects the target interactive object for the virtual character from the interactive objects based on the selection instruction.
[0008] Secondly, this application provides an interactive object selection device for a virtual scene, the device comprising:
[0009] Display module: used to output a graphical user interface on the display screen of an electronic device, and to display a virtual scene and virtual characters located in the virtual scene in the graphical user interface;
[0010] Detection module: used to detect objects that can interact with the virtual character within a pre-set detection range;
[0011] Selection module: used to respond to the user's selection instruction for the virtual character to select an interactive object, and select the target interactive object of the virtual character from the interactive objects based on the selection instruction.
[0012] Thirdly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0013] Memory, used to store computer programs;
[0014] When a processor executes a program stored in memory, it implements the method for selecting interactive objects in a virtual scene as described in any embodiment of the first aspect.
[0015] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method for selecting interactive objects in a virtual scene as described in any embodiment of the first aspect.
[0016] The technical solutions provided in this application have the following advantages compared with the prior art:
[0017] This application detects interactive objects with virtual characters within a pre-set detection range. When there are many virtual objects or objects in a virtual scene, it can accurately determine which virtual objects are interactive with the virtual character. It responds to the user's selection command for the virtual character to select an interactive object, and selects the target interactive object for the virtual character from the interactive objects based on the selection command. This allows the user to accurately and quickly control the virtual character to select the target interactive object from the interactive objects, thereby completing the interaction with the target interactive object. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating an embodiment of the method for selecting interactive objects in the virtual scene of this application;
[0021] Figure 2 This is a schematic diagram illustrating the testing scope of this application;
[0022] Figure 3 This is a schematic diagram of the interactive objects in this application;
[0023] Figure 4 This is a schematic diagram of the default target interaction object in the embodiments of this application;
[0024] Figure 5 This is a schematic diagram illustrating the switching of the target interaction object in an embodiment of this application;
[0025] Figure 6 This is a schematic diagram of the operation buttons corresponding to the interactive objects in the embodiments of this application;
[0026] Figure 7 This is a schematic diagram showing the target interactive object being located within the detached area in an embodiment of this application;
[0027] Figure 8 This is a schematic diagram showing the target interactive object located outside the detachment range in an embodiment of this application;
[0028] Figure 9 A schematic diagram of a preferred embodiment of the interaction object selection device for the virtual scene of this application;
[0029] Figure 10 This is a schematic diagram of a preferred embodiment of the electronic device of this application;
[0030] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0032] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0033] This application provides a method for selecting interactive objects in a virtual scene. (Refer to...) Figure 1 The diagram shown is a flowchart illustrating an embodiment of the virtual scene interaction object selection method of this application. This method can be executed by an electronic device (e.g., a mobile terminal or PC), which can be implemented in software and / or hardware. The virtual scene interaction object selection method includes:
[0034] Step S1: Output a graphical user interface on the display screen of the electronic device, and display a virtual scene and a virtual character located in the virtual scene in the graphical user interface;
[0035] Step S2: Detect objects that can interact with the virtual character within a pre-set detection range;
[0036] Step S3: In response to the user's selection instruction for the virtual character to select an interactive object, select the target interactive object of the virtual character from the interactive objects based on the selection instruction.
[0037] In this embodiment, a graphical user interface (GUI) is output on the display screen of the electronic device. A GUI is a computer user interface displayed graphically. The GUI displays a virtual scene and virtual characters within that scene. The virtual scene can be a game scene, and it includes multiple virtual characters that can be operated by the user or controlled by the system AI. The virtual characters can be controlled by the user, for example, a player character controlled by the main player (user) or a player-controlled character (PCC). This solution is illustrated using a game scene as an example. It is understood that the actual application scenarios of this solution are not limited to this; the virtual scene can also be a virtual teaching scene or a virtual demonstration scene, etc. The virtual scene can be two-dimensional or three-dimensional.
[0038] Interactive objects refer to virtual objects within a virtual scene that a virtual character can interact with when the character is positioned anywhere within the scene, provided the interaction falls within a corresponding detection range. Interaction can include dialogue, greetings, and other interactive behaviors between the virtual character and the virtual object. Virtual objects include player characters and / or non-player characters. Game systems installed on electronic devices can pre-configure default detection ranges, and users can also adjust the detection range as needed, such as expanding or shrinking it. Figure 2 The diagram shown is a schematic representation of the detection scope of this application. In the diagram, "Actor" represents a virtual character.
[0039] Within a pre-set detection range, objects that can interact with the virtual character can be detected. If a virtual object in the virtual scene is within the detection range, then that virtual object is an interactive object for the virtual character. For example, if virtual object M is within the detection range, then virtual object M is an interactive object for the virtual character. If virtual object N is not within the detection range, then virtual object N is not an interactive object for the virtual character. When the virtual character moves within the virtual scene, the interactive objects corresponding to the virtual character will change, such as... Figure 3 The diagram shown is a schematic representation of the interactive objects in this application.
[0040] After detecting interactive objects within the detection range, the object closest to the front of the virtual character can be selected as the default target interaction object, such as... Figure 4 The diagram shown is a schematic of the default target interactive object in an embodiment of this application. Users can also select the actual target interactive object by issuing a selection command. For example, a user can issue a selection command via virtual buttons on the screen. Specifically, the electronic device responds to the user's selection command for the virtual character's interactive object, selecting the virtual character's target interactive object from the interactive objects according to the selection command, thus completing the selection of the target interactive object from the interactive objects.
[0041] This application detects interactive objects with virtual characters within a pre-set detection range. When there are many virtual objects or objects in a virtual scene, it can accurately determine which virtual objects are interactive with the virtual character. It responds to the user's selection command for the virtual character to select an interactive object, and selects the target interactive object for the virtual character from the interactive objects based on the selection command. This allows the user to accurately and quickly control the virtual character to select the target interactive object from the interactive objects, thereby completing the interaction with the target interactive object.
[0042] In one embodiment, before detecting an object interactive with the virtual character within a pre-set detection range, the method further includes:
[0043] In response to a first setting instruction from the user to set the detection range, the detection range is set with the virtual character as the center based on the first setting instruction.
[0044] When a user controls a virtual character to move within a virtual scene, certain areas may contain a high density of virtual objects, making the interactive objects within the detection range too dense and hindering the user's selection of a target object. Therefore, the user can set the size of the detection range. The user can issue a first setting command via virtual buttons on the screen. This command sets the detection range, and the electronic device responds by setting the size of the detection range centered on the virtual character. The detection range can be a circular area with the virtual character as its center. When setting the detection range, the user can re-enter the size or increase / decrease it using the virtual buttons from the default setting. The user can adjust the detection range based on the density of virtual objects in the virtual scene.
[0045] In one embodiment, after detecting an object interactive with the virtual character within a pre-set detection range, the method further includes:
[0046] The interactive objects are marked with a first color.
[0047] After detecting objects that can interact with the virtual character within the detection range, in order to allow users to better distinguish between interactive and non-interactive objects in the virtual scene with their naked eyes, interactive objects can be marked with a first color (e.g., blue), thus creating different visual effects between interactive and non-interactive objects. Users can quickly determine which objects are currently interactive with the virtual character.
[0048] In one embodiment, after selecting the target interactive object of the virtual character from the interactive objects based on the selection instruction, the method further includes:
[0049] In response to a user's command to switch the interactive object of the virtual character, the system switches the target interactive object of the virtual character from the interactive objects based on the command.
[0050] Because the number of interactive objects within the detection range is relatively dense, users may make the wrong selection when choosing a target interactive object. Therefore, after selecting the target interactive object for the virtual character, the user can also issue a switch command to change the target interactive object for the virtual character from among the interactive objects. For example Figure 5 The diagram shown is a schematic representation of switching the target interactive object in an embodiment of this application. The user can issue a switching command via virtual buttons on the screen. The electronic device responds to the switching command and switches the virtual character's target interactive object from among the interactive objects according to the command.
[0051] In one embodiment, the method further includes:
[0052] The target interactive object is marked with a second color.
[0053] The default target interaction object, the target interaction object selected by the user, and the target interaction object switched by the user can all be marked with a second color (e.g., red), so that the interactive objects and the target interaction objects produce different visual effects, allowing the user to quickly identify the target interaction object of the virtual character with the naked eye, and then control the virtual character to interact with the target interaction object.
[0054] Furthermore, for different interactive objects, the virtual character and the interactive object may have different interactive actions. To make the interaction easier for users to operate, visual aids such as text or icons can be used to indicate the corresponding operation buttons for each interactive object, such as... Figure 6The diagram shown is a schematic of the operation buttons corresponding to the interactive objects in an embodiment of this application. Figure 6 The "press A" option indicates that the user can interact with the object by pressing the "A" button.
[0055] In one embodiment, the method further includes:
[0056] Responding to the user's movement command to move the virtual character, and controlling the virtual character to move based on the movement command;
[0057] Determine whether the target interactive object is within the detachment range of the virtual character after it has moved;
[0058] If not, deselect the target interactive object;
[0059] If so, keep the target interactive object selected.
[0060] After a user selects or switches to a target interactive object, due to user error or actual control needs within the game, the virtual character moves out of the detection range, thus deselecting the target interactive object. In other words, the electronic device responds to the user's movement command to move the virtual character, controlling the character to move accordingly. At this point, it can determine whether the target interactive object is within the virtual character's out-of-range after movement. The game system installed on the electronic device can pre-configure a default out-of-range, which can be a circular area centered on the virtual character, larger than the detection range. For example... Figure 7 The diagram shown illustrates a target interactive object within the detachment range in an embodiment of this application. If the target interactive object is within the detachment range of the virtual character, it remains the target interactive object and its selected state continues to be maintained. Figure 8 The diagram illustrates a scenario where the target interactive object is outside the detachment range in an embodiment of this application. If the target interactive object is outside the detachment range of the virtual character, it becomes a non-interactive object, and its selection is deselected. After the target interactive object is determined, the user can maintain the selection of the target interactive object while controlling the virtual character to move within a certain range, thus maintaining the continuity of user operation and preventing the target interactive object from being deselected when the virtual object undergoes a very small movement due to user error.
[0061] Furthermore, the escape range is preset, and the process of setting the escape range includes:
[0062] In response to a second setting instruction from the user to set an escape range, the escape range is set with the virtual character as the center based on the second setting instruction.
[0063] Users can issue a second setting command via virtual buttons on the screen. This command sets the escape range. The electronic device responds to the command, setting the size of the escape range centered on the virtual character. The escape range can be a circular area centered on the virtual character, and it must be larger than the detection range. Users can re-enter the size of the escape range when setting it, or increase or decrease it using the virtual buttons from the default setting. This allows users to adjust the size of the escape range according to their needs.
[0064] Reference Figure 9 The diagram shown is a functional module schematic of the virtual scene interaction object selection device 100 of this application.
[0065] The virtual scene interactive object selection device 100 described in this application can be installed in an electronic device. Depending on the functions implemented, the virtual scene interactive object selection device 100 may include a display module 110, a detection module 120, and a selection module 130. The module described in this application can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0066] In this embodiment, the functions of each module / unit are as follows:
[0067] Display module 110: used to output a graphical user interface on the display screen of an electronic device, and to display a virtual scene and a virtual character located in the virtual scene in the graphical user interface;
[0068] Detection module 120: used to detect objects that can interact with the virtual character within a pre-set detection range;
[0069] Selection module 130: used to respond to the user's selection instruction for selecting an interactive object for the virtual character, and select the target interactive object of the virtual character from the interactive objects based on the selection instruction.
[0070] In one embodiment, the virtual scene interaction object selection device further includes a first setting module, the first setting module being used for:
[0071] In response to a first setting instruction from the user to set the detection range, the detection range is set with the virtual character as the center based on the first setting instruction.
[0072] In one embodiment, the virtual scene interactive object selection device further includes a first marking module, the first marking module being used for:
[0073] The interactive objects are marked with a first color.
[0074] In one embodiment, the virtual scene interactive object selection device further includes a switching module, which is used for:
[0075] In response to a user's command to switch the interactive object of the virtual character, the system switches the target interactive object of the virtual character from the interactive objects based on the command.
[0076] In one embodiment, the virtual scene interactive object selection device further includes a second marking module, the second marking module being used for:
[0077] The target interactive object is marked with a second color.
[0078] In one embodiment, the virtual scene interactive object selection device further includes a switching module, which is used for:
[0079] Responding to the user's movement command to move the virtual character, and controlling the virtual character to move based on the movement command;
[0080] Determine whether the target interactive object is within the detachment range of the virtual character after it has moved;
[0081] If not, deselect the target interactive object;
[0082] If so, keep the target interactive object selected.
[0083] In one embodiment, the escape range is preset, and the process of setting the escape range includes:
[0084] In response to a second setting instruction from the user to set an escape range, the escape range is set with the virtual character as the center based on the second setting instruction.
[0085] Reference Figure 10 The diagram shown is a schematic diagram of a preferred embodiment of the electronic device 1 of this application.
[0086] The electronic device 1 includes, but is not limited to, a memory 11, a processor 12, a display 13, and a communication interface 14. The electronic device 1 can connect to a network via the communication interface 14. The network can be an intranet, the Internet, a Global System for Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA) network, a 4G network, a 5G network, Bluetooth, Wi-Fi, a voice communication network, or other wireless or wired networks.
[0087] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as the hard disk or memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. of the electronic device 1. Of course, the memory 11 may include both the internal storage unit and the external storage device of the electronic device 1. In this embodiment, the memory 11 is typically used to store the operating system and various computer programs installed on the electronic device 1, such as the program code of the interactive object selection program 10 of the virtual scene. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
[0088] In some embodiments, processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. This processor 12 is typically used to control the overall operation of the electronic device 1, such as performing data interaction or communication-related control and processing. In this embodiment, processor 12 is used to run program code stored in the memory 11 or process data, such as running the program code of the virtual scene's interactive object selection program 10.
[0089] The display 13 may be referred to as a display screen or display unit. In some embodiments, the display 13 may be an LED display, a liquid crystal display, a touch liquid crystal display, or an organic light-emitting diode (OLED) touch screen, etc. The display 13 is used to display information processed in the electronic device 1 and to display a visual working interface.
[0090] The communication interface 14 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface), which is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
[0091] Figure 10 Only an electronic device 1 with components 11-14 and an interactive object selection program 10 for a virtual scene is shown. However, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0092] In the above embodiments, when the processor 12 executes the virtual scene interactive object selection program 10 stored in the memory 11, it can perform the following steps:
[0093] A graphical user interface is output on the display screen of an electronic device, in which a virtual scene and virtual characters located in the virtual scene are displayed;
[0094] Within a pre-set detection range, objects that can interact with the virtual character are detected;
[0095] In response to a user's selection instruction for choosing an interactive object for the virtual character, the system selects the target interactive object for the virtual character from the interactive objects based on the selection instruction.
[0096] The storage device can be the memory 11 of the electronic device 1, or it can be other storage devices that are communicatively connected to the electronic device 1.
[0097] For a detailed explanation of the above steps, please refer to the above. Figure 9 Functional block diagram of the embodiment of the interactive object selection device 100 for virtual scenes and Figure 1 A flowchart illustrating an embodiment of a method for selecting interactive objects in a virtual scene.
[0098] Furthermore, this application also proposes a computer-readable storage medium, which can be non-volatile or volatile. This computer-readable storage medium can be any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium includes a data storage area and a program storage area. The program storage area stores an interactive object selection program 10 for a virtual scene. When the interactive object selection program 10 for the virtual scene is executed by the processor, it performs the following operations:
[0099] A graphical user interface is output on the display screen of an electronic device, in which a virtual scene and virtual characters located in the virtual scene are displayed;
[0100] Within a pre-set detection range, objects that can interact with the virtual character are detected;
[0101] In response to a user's selection instruction for choosing an interactive object for the virtual character, the system selects the target interactive object for the virtual character from the interactive objects based on the selection instruction.
[0102] The specific implementation of the computer-readable storage medium in this application is largely the same as the specific implementation of the interactive object selection method in the virtual scene described above, and will not be repeated here.
[0103] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0104] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware simulation platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, electronic device, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0105] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for selecting an interaction object of a virtual scene, characterized in that, The method includes: A graphical user interface is output on the display screen of an electronic device, in which a virtual scene and virtual characters located in the virtual scene are displayed; In response to a first setting instruction from the user to set the detection range, the detection range is set based on the first setting instruction with the virtual character as the center. The detection range is a circular range with the virtual character as the center, and the detection range is adjusted by the user according to the density of virtual objects in the virtual scene. Within a pre-set detection range, objects that can interact with the virtual character are detected; In response to a user's selection instruction for choosing an interactive object for the virtual character, the system selects the target interactive object for the virtual character from the interactive objects based on the selection instruction. Responding to the user's movement command to move the virtual character, and controlling the virtual character to move based on the movement command; Determine whether the target interactive object is within the detachment range of the moved virtual character, wherein the detachment range is preset, and the process of setting the detachment range includes responding to a second setting instruction from the user to set the detachment range, and setting the detachment range with the virtual character as the center based on the second setting instruction; If not, deselect the target interactive object.
2. The method of claim 1, wherein, After detecting objects that can interact with the virtual character within a pre-set detection range, the method further includes: The interactive objects are marked with a first color.
3. The method of claim 1, wherein, After selecting the target interactive object of the virtual character from the interactive objects based on the selection instruction, the method further includes: In response to a user's command to switch the interactive object of the virtual character, the system switches the target interactive object of the virtual character from the interactive objects based on the command.
4. The method of claim 1 or 3, wherein, The method further includes: The target interactive object is marked with a second color.
5. The method of claim 1 or 3, wherein, The method further includes: If the target interactive object is within the range of the virtual character after it has moved, the selected state of the target interactive object is maintained.
6. A device for selecting interactive objects in a virtual scene, characterized in that, The device includes: Display module: used to output a graphical user interface on the display screen of an electronic device, and to display a virtual scene and virtual characters located in the virtual scene in the graphical user interface; Setting module: used to respond to the user's first setting instruction to set the detection range, and set the detection range with the virtual character as the center based on the first setting instruction. The detection range is a circular range with the virtual character as the center, and the detection range is adjusted by the user according to the density of virtual objects in the virtual scene. Detection module: used to detect objects that can interact with the virtual character within a pre-set detection range; Selection module: used to respond to the user's selection instruction for the virtual character to select an interactive object, and select the target interactive object of the virtual character from the interactive objects based on the selection instruction; The virtual scene interaction object selection device is also used to respond to the user's movement command to move the virtual character, and control the virtual character to move based on the movement command; Determine whether the target interactive object is within the detachment range of the moved virtual character, wherein the detachment range is preset, and the process of setting the detachment range includes responding to a second setting instruction from the user to set the detachment range, and setting the detachment range with the virtual character as the center based on the second setting instruction; If not, deselect the target interactive object.
7. An electronic device, comprising: It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method for selecting interactive objects in a virtual scene as described in any one of claims 1 to 5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the interactive object selection method for the virtual scene as described in any one of claims 1 to 5.