CN112988810B - Information searching method, device and equipment - Google Patents

Information searching method, device and equipment Download PDF

Info

Publication number
CN112988810B
CN112988810B CN202110251121.3A CN202110251121A CN112988810B CN 112988810 B CN112988810 B CN 112988810B CN 202110251121 A CN202110251121 A CN 202110251121A CN 112988810 B CN112988810 B CN 112988810B
Authority
CN
China
Prior art keywords
component
identifier
target
window
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110251121.3A
Other languages
Chinese (zh)
Other versions
CN112988810A (en
Inventor
占德文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110251121.3A priority Critical patent/CN112988810B/en
Publication of CN112988810A publication Critical patent/CN112988810A/en
Application granted granted Critical
Publication of CN112988810B publication Critical patent/CN112988810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The embodiment of the application provides an information searching method, an information searching device and information searching equipment, wherein the method comprises the following steps: displaying a target component serving a target object in response to a first query instruction input through the target object in the engineering hierarchy window; acquiring a second query instruction input according to the target component; determining a reference path of the target component according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable corresponding to the reference target component and an identifier of a first component where the first variable is located; the reference path is displayed. The method is used for achieving the purpose of inquiring the reference path of the resource object in the engineering window or the scene object in the structural hierarchical window and achieving reverse search of the resource object or the scene object.

Description

Information searching method, device and equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an information searching method, device and equipment.
Background
The game engine (Unity 3D development application) includes an engineering window and a hierarchy window. In the process of secondary development of the game through the game engine, reference paths and the like of resource objects in the engineering window (or scene objects in the hierarchical window) are generally required to be searched.
In the related art, a user clicks a control of a resource object (or a scene object) through a mouse to display a search dependent control, and the user clicks the search dependent control through the mouse to display all resource objects (or all scene objects) of the searched components which refer to the resource object (or the scene object).
In the related art, all resource objects (or all scene objects) of the searched components which refer to the resource object (or the scene object) are displayed, and the purpose of searching the reference path which refers to the resource object in the engineering window (or the scene object in the hierarchical window) cannot be achieved (that is, reverse search for the resource object or the scene object cannot be achieved).
Disclosure of Invention
The embodiment of the application provides an information search method, an information search device and information search equipment, which can achieve the purpose of inquiring a resource object in an engineering window or a reference path of a scene object in a structural hierarchical window, and realize reverse search of the resource object or the scene object.
In a first aspect, an embodiment of the present application provides an information search method, where a game development application interface is provided through an electronic device, where the game development application interface includes an engineering level window, and the method includes:
displaying a target component serving a target object in response to a first query instruction input through the target object in the engineering hierarchy window;
acquiring a second query instruction input according to the target component;
determining a reference path of the target component according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable which references the target component and an identifier of a first component in which the first variable is positioned;
the reference path is displayed.
In one possible design, determining the reference path of the target component according to the second query instruction includes:
acquiring a target identifier of a target component included in the second query instruction;
acquiring a scene identifier of a current activation scene, wherein the current activation scene comprises a scene in which a target object is positioned;
and determining a reference path of the target component according to the target identifier and the scene identifier.
In one possible design, determining a reference path of a target component according to a target identifier and a scene identifier includes:
acquiring a data set corresponding to the scene identification from a preset database;
determining an identifier of the first variable and an identifier of the first component in the data set according to the target identifier;
and combining the identification of the first variable and the identification of the first component to obtain the reference path.
In one possible design, a mapping relationship between the identity of at least one second component included in the dataset, the identity of at least one second variable included in each second group, and the identity of a third component referenced by each second variable is included in the dataset; determining, in the dataset, an identity of the first variable and an identity of the first component based on the target identity, comprising:
determining the mapping relation where the identifier of the third component which is the same as the target identifier is located in the data set as a target mapping relation;
determining the identifier of a second variable in the target mapping relation as the identifier of the first variable, wherein the second variable is the same as the first variable;
and determining the identifier of a second component in the target mapping relation as the identifier of the first component, wherein the second component is the same as the first component.
In one possible design, displaying a target component serving a target object in response to a first query instruction entered through the target object in an engineering hierarchy window includes:
and in response to a first query instruction input through a target object in the engineering level window, displaying a query window in the game development application interface, and displaying a target component serving the target object in the query window, wherein the query window is not overlapped with the engineering level window.
In one possible design, the query window further comprises a component control and a query control of the target component;
obtaining a second query instruction according to the input of the target component, comprising:
and responding to the clicking operation on the component control and the query control, and generating a second query instruction.
In one possible design, a reference path is displayed, including:
displaying the reference path in the query window according to a first display strategy; the first display strategy comprises a first display position and a first display mode of the reference path.
In one possible design, the method further includes:
displaying the identifier of the first component and the identifier of the first object served by the first component in the query window according to a second display strategy, wherein the second display strategy comprises a second display position and a second display mode;
and in response to a positioning display instruction input by the identifier of the first component and the identifier of the first object, displaying the identifier of the first component and/or the identifier of the first object in the engineering level window according to a third display strategy, wherein the third display strategy comprises a third display mode.
In one possible design, the game development application interface is a unified Unity3D application program interface;
the engineering level window is an engineering window or a structure level window in a unified Unity3D application program.
In a second aspect, an embodiment of the present application provides an information search apparatus, which provides a game development application interface through an electronic device, where the game development application interface includes an engineering level window, and the apparatus includes: the device comprises a display module, an acquisition module and a determination module;
the display module is used for responding to a first query instruction input through a target object in the engineering level window and displaying a target assembly serving the target object;
the acquisition module is used for acquiring a second query instruction input according to the target component;
the determining module is used for determining a reference path of the target component according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable corresponding to the reference target component and an identifier of a first component where the first variable is located;
the display module is further configured to display the reference path.
In one possible design, the determining module is specifically configured to:
acquiring a target identifier of a target component included in the second query instruction;
acquiring a scene identifier of a current activated scene, wherein the current activated scene comprises a scene where a target object is located;
and determining a reference path of the target component according to the target identifier and the scene identifier.
In one possible design, the determining module is specifically configured to:
acquiring a data set corresponding to the scene identification from a preset database;
determining an identifier of the first variable and an identifier of the first component in the data set according to the target identifier;
and combining the identification of the first variable and the identification of the first component to obtain the reference path.
In one possible design, a mapping relationship between the identity of at least one second component included in the dataset, the identity of at least one second variable included in each second group, and the identity of a third component referenced by each second variable is included in the dataset; determining, in the dataset, an identity of the first variable and an identity of the first component based on the target identity, comprising:
determining the mapping relation where the identifier of the third component which is the same as the target identifier is located in the data set as a target mapping relation;
determining the identifier of a second variable in the target mapping relation as the identifier of the first variable, wherein the second variable is the same as the first variable;
and determining the identifier of a second component in the target mapping relation as the identifier of the first component, wherein the second component is the same as the first component.
In one possible design, the display module is specifically configured to:
and in response to a first query instruction input through a target object in the engineering level window, displaying a query window in the game development application interface, and displaying a target component serving the target object in the query window, wherein the query window is not overlapped with the engineering level window.
In one possible design, the query window further comprises a component control and a query control of the target component;
the acquisition module is specifically configured to:
and responding to the clicking operation on the component control and the query control, and generating a second query instruction.
In one possible design, the display module is specifically configured to:
displaying the reference path in the query window according to a first display strategy; the first display strategy comprises a first display position and a first display mode of the reference path.
In one possible design, the display module is further configured to:
displaying the identifier of the first component and the identifier of the first object served by the first component in the query window according to a second display strategy, wherein the second display strategy comprises a second display position and a second display mode;
and in response to a positioning display instruction input by the identifier of the first component and the identifier of the first object, displaying the identifier of the first component and/or the identifier of the first object in the engineering level window according to a third display strategy, wherein the third display strategy comprises a third display mode.
In one possible design, the game development application interface is a unified Unity3D application program interface;
the engineering level window is an engineering window or a structural level window in a unified Unity3D application.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
the memory stores computer execution instructions;
the processor executes the computer-executable instructions stored by the memory, causing the processor to perform the information lookup method of any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when the processor executes the computer executing instruction, the information search method according to any one of the first aspect is implemented.
In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the information search method of any one of the first aspect is implemented.
The information searching method, device and equipment provided by the embodiment comprise the following steps: displaying a target component serving a target object in response to a first query instruction input through the target object in the engineering hierarchy window; acquiring a second query instruction input according to the target component; determining a reference path of the target component according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable which references the target component and an identifier of a first component where the first variable is located; the reference path is displayed. In the method, the first component and the reference path of the target component are determined according to the second query instruction, and the first component and the reference path are displayed, so that the purpose of querying the reference path of the resource object in the engineering window or the scene object in the structural hierarchy window can be achieved, and the reverse search of the resource object or the scene object is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic interface diagram of a conventional search method according to an embodiment of the present application;
fig. 2 is a first schematic flow chart of an information search method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a second method for searching information according to an embodiment of the present disclosure;
FIG. 4 is a first schematic view of an interface provided in an embodiment of the present application;
FIG. 5 is a second schematic interface diagram provided in an embodiment of the present application;
FIG. 6 is a third schematic interface diagram provided in an embodiment of the present application;
FIG. 7 is a fourth schematic interface diagram provided by an embodiment of the present application;
fig. 8 is a schematic diagram of a mapping relationship provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an information search apparatus according to an embodiment of the present application;
fig. 10 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In practical applications, in the process of developing a game secondarily through a Unity3D development application, it is generally necessary to know a scene where a resource object in an engineering window (or a scene object in a hierarchical window) is located, which variable refers to the resource object in the engineering window (or the scene object in the hierarchical window), and a component (i.e., a script) where the variable is located. Wherein, the above-mentioned scenes, variables, components, resource objects (or scene objects) may constitute a reference path.
In the prior art, a user clicks a control of a resource object (or a scene object) through a mouse to display a search dependent control, and the user clicks the search dependent control through the mouse to display all resource objects (or all scene objects) of a searched component which refers to the resource object (or the scene object), so that a reference path for searching the resource object (or the scene object) cannot be reached, and reverse search of the resource object (or the scene object) cannot be realized.
In order to achieve the purpose of finding a reference path of a resource object (or a scene object in a hierarchical structure window) in an engineering window and achieve reverse finding of the resource object (or the scene object), an information finding method is provided in the application.
Before explaining the information searching method provided in the present application, the following first explains the above-mentioned prior art with reference to fig. 1.
Fig. 1 is an interface schematic diagram of a conventional search method according to an embodiment of the present application. As shown in fig. 1, includes: game development application interfaces 101, 102, and 103.
Game development application interfaces 101, 102, and 103 are displayed in the electronic device. For example, the electronic device may be a notebook computer, a desktop computer, or the like. The game development application interfaces 101, 102 and 103 include a structure hierarchy window (i.e., hierarchy view) and an engineering window (i.e., engineering view Project).
In a secondarily developed game project, the dependency relationship (i.e. reference path) of the resource object or scene object in the scene is usually searched. In the prior art, the game engine has a search method, specifically, please refer to interfaces 101, 102, and 103.
Please see interface 101. The user mouse clicks (right-clicks) on the control corresponding to the resource object under Project (e.g., "button viewer") to display the information list 1010.
See interface 102. The user clicks (left-clicks) the "find reference in scene" in the information list 1010 by a mouse, and the search result is displayed in the hierarchy in the result display box 1021 in hierarchy, and the search result is displayed in hierarchy in a manner of object (GameObject) filtering.
See interface 103. The user cancels the search result displayed in the result display frame 1021 by right-clicking a control of a certain result (for example, "border") among the search results displayed in hierarchy with a mouse.
The above prior art has the following disadvantages:
the searched objects are limited to the resource objects under Project, but cannot search the scene objects in Hierarchy (Hierarchy is used for showing a plurality of scene objects included in the currently activated scene, and Project is used for showing resource objects included in a plurality of scene objects displayed by Hierarchy), as shown in interface 101;
when the search object is a resource object under Project, the depth of the search result is only to the scene object, the reference path of the resource object (the variable that references the resource object, the component where the variable is located) cannot be known, and the reverse search of the resource object or the scene object cannot be realized, as shown in the interface 102;
when the user clicks a control of a certain result of the search results displayed in hierarchy, the search result displayed in the result display frame 1021 is cancelled, so that the search result cannot be fixedly displayed in the result display frame 1021, as shown in the interface 102 and the interface 103.
In order to avoid the above disadvantages, an information search method is provided for application. The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first schematic flow chart of an information search method according to an embodiment of the present application. As shown in fig. 2, the method includes:
s201, responding to a first query instruction input through a target object in the engineering hierarchical window, and displaying a target assembly serving the target object.
Optionally, the execution main body of the embodiment of the present application may be an electronic device, and may also be an information query apparatus disposed in the electronic device, where the information query apparatus may be implemented by a combination of software and/or hardware.
The electronic equipment is used for providing a game development application interface, and the game development application interface comprises an engineering level window. The game development application interface is a Unity3D application interface. The engineering hierarchy window may be an engineering window in a Unity3D application (the engineering view shown in fig. 1), or a structural hierarchy window (the hierarchy view shown in fig. 1).
Alternatively, the target object may be a scene object in the structural hierarchy window, or a component mounted on the object, or may also be a resource object (e.g., a picture, audio, video, etc.) in the engineering window.
In one possible design, when the electronic device is a desktop computer, the user may input the first query instruction through a control device (e.g., a wired mouse or a wireless mouse).
It should be noted that at least one component is mounted on the target object, the at least one component includes the target object itself, and the target component is any one or more components in the at least one component.
For example, when the target object is an upgrade bar (levelbar) (see fig. 4), the at least one component includes: objects (GameObject), pictures (Image), animation renderer (canvas), and rectangle transform (RectTransform). The object (GameObject) indicates the upgrade field itself in at least one component. The target component is any one of the at least one component.
Optionally, displaying a target component serving the target object, comprising: and displaying all the components mounted on the target object.
Further, the target component serving the target object may be displayed in the game development application interface, or the target component serving the target object may be displayed in an interface separate from the game development application interface.
S202, acquiring a second query instruction input according to the target component.
Alternatively, the number of target components may be 1 or more.
When the number of the target components is 1, the user selects the control corresponding to the target component and the first component in at least one component through the control equipment, so that the input second query instruction is realized.
When the target components are multiple, the user selects multiple components of at least one component mounted on the target object through the control device, and therefore the input second query instruction is achieved.
Optionally, the second query instruction includes an identification of the target component.
S203, determining a reference path of the target component according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable which references the target component and an identifier of a first component where the first variable is located.
Alternatively, the reference path of the target component may be determined according to the second query instruction in the following 2 ways.
In the mode 1, a target identifier of a target component included in the second query instruction is obtained; acquiring a scene identifier of a current activated scene, wherein the current activated scene comprises a scene where a target object is located; and determining a reference path of the target component according to the target identifier and the scene identifier.
For a detailed description of the mode 1, please refer to S303 to S307 in the embodiment of fig. 3.
Mode 2, acquiring a target identifier of a target component included in the second query instruction; acquiring a preset path set, wherein the preset path set comprises a plurality of paths, and each path comprises an identifier of a second variable, an identifier of a second component comprising the second variable and an identifier of a third component referenced by the second variable; and determining the path with the same identifier of the third component in the plurality of paths as the target identifier as the reference path of the target component.
And S204, displaying the reference path.
Optionally, the reference path is displayed at a preset position in the game development application interface. And the preset position is overlapped with the engineering level window or is not overlapped. It should be noted that the preset position is not limited in the present application.
The information searching method provided by the embodiment of fig. 2 includes: displaying a target component serving a target object in response to a first query instruction input through the target object in the engineering hierarchy window; acquiring a second query instruction input according to the target component; determining a reference path of the target assembly according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable corresponding to the target assembly and an identifier of a first assembly where the first variable is located; the reference path is displayed. In the method, the reference path of the target assembly is determined according to the second query instruction, and the reference path is displayed, so that the purpose of querying the reference path of the resource object in the engineering window or the scene object in the structural hierarchical window can be achieved, and the reverse search of the resource object or the scene object is realized.
Different from the prior art, in the prior art, the target object may only be a resource object under Project, but may not be a scene object in Hierarchy, and the search range is small. In the application, the target object can be a scene object in the structural hierarchical window or a resource object in the engineering window, so that the search range is expanded.
Further, unlike the prior art, in the prior art, when the search object is a resource object under Project, the depth of the search result only reaches the scene object, resulting in a lower search depth. In the application, the reference path at least comprises the identifier of the first variable of the reference target component and the identifier of the first component where the first variable is located, so that the first variable corresponding to the target component and the first component where the first variable is located can be found, and the search depth is improved.
Based on the above embodiments, the following describes in detail the information searching method provided in the embodiments of the present application with reference to fig. 3, specifically with reference to fig. 3.
Fig. 3 is a schematic flowchart of a second method for searching information according to an embodiment of the present disclosure. As shown in fig. 3, the method includes:
s301, responding to a first query instruction input through a target object in an engineering level window, displaying a query window in a game development application interface, displaying a target component serving the target object in the query window, wherein the query window further comprises a query control and a component control of the target component.
Wherein, the query window is not overlapped with the project level window.
For a description of the target component, the component control of the target component, and the query window, please refer to the embodiment of fig. 5.
S302, responding to the clicking operation on the component control and the query control, and generating a second query instruction, wherein the second query instruction comprises a target identification of the target component.
Specifically, please refer to the embodiment in fig. 6 for an operation description of generating the second query instruction.
S303, acquiring a target identifier of the target component included in the second query instruction.
S304, acquiring a scene identifier of a current activated scene, wherein the current activated scene comprises a scene where the target object is located.
It should be noted that the current activation scenario is a scenario currently loaded by the electronic device.
Alternatively, the number of currently active scenes may be 1 or more.
S305, acquiring a data set corresponding to the scene identification from a preset database, wherein the data set comprises the identification of at least one second component, the identification of at least one second variable in each second group and the identification of a third component referred by each second variable.
The preset database comprises identifications of all scenes in the game needing secondary development and a data set corresponding to the identifications of the scenes. Specifically, the identifier of the scene in the preset database, which is the same as the scene identifier, may be determined as the target scene identifier; and determining the data set corresponding to the target scene identifier as the data set corresponding to the scene identifier.
In one possible design, the data set may also be a data set including a mapping relationship between an identification of a plurality of scenes, an identification of at least one object included in each scene, an identification of at least one second component corresponding to each object, an identification of at least one second variable included in each second group, and an identification of a third component referenced by each second variable. Specifically, please refer to the embodiment in fig. 8.
S306, according to the target identification, the identification of the first variable and the identification of the first component are determined in the data set.
In one possible design, if the data set includes a mapping relationship between an identifier of at least one second component, an identifier of at least one second variable included in each second group, and an identifier of a third component referenced by each second variable; determining an identity of the first variable and an identity of the first component in the dataset based on the target identity, comprising:
determining a mapping relation of the identifier of a third component which is the same as the target identifier in the data set as a target mapping relation;
determining the identifier of a second variable in the target mapping relation as the identifier of the first variable, wherein the second variable is the same as the first variable;
and determining the identifier of a second component in the target mapping relation as the identifier of the first component, wherein the second component is the same as the first component.
In a possible design, if the identifiers of a plurality of scenes, the identifier of at least one object included in each scene, the identifier of at least one second component corresponding to each object, the identifier of at least one second variable included in each second group, and the identifier of a third component referred by each second variable are mapped to each other; determining an identity of the first variable and an identity of the first component in the dataset based on the target identity, comprising:
determining a mapping relation of the identifier of a third component which is the same as the target identifier in the data set as a target mapping relation;
determining the identifier of a second variable in the target mapping relation as the identifier of the first variable, wherein the second variable is the same as the first variable;
determining the identifier of a second component in the target mapping relationship as the identifier of the first component, wherein the second component is the same as the first component;
determining the identifier of the object in the target mapping relation as the identifier of a first object, wherein the first object is an object served by a first component;
and determining the identifier of the scene in the target mapping relation as the identifier of a first scene, wherein the first scene is a scene comprising a first object.
And S307, combining the identification of the first variable and the identification of the first component to obtain a reference path.
Specifically, the identifier of the first variable and the identifier of the first component are combined according to a preset arrangement order to obtain the reference path. For example, the preset arrangement sequence is as follows: identification of components and identification of variables.
In another possible design, the identifier of the first variable, the identifier of the first component, the identifier of the first object, and the identifier of the first scene are combined to obtain the reference path.
Specifically, according to a preset arrangement sequence, the identifier of the first variable, the identifier of the first component, the identifier of the first object, and the identifier of the first scene are combined to obtain the reference path. For example, the preset arrangement sequence is as follows: an identification of a scene, an identification of an object, an identification of a component, an identification of a variable.
S308, displaying the reference path in the query window according to the first display strategy; the first display strategy comprises a first display position and a first display mode of the reference path.
Optionally, the first display mode includes at least one display parameter.
Optionally, the at least one display parameter includes a font size, a font color, a font type, whether to highlight, and the like.
For example, the font size may be 10 pounds, 12 pounds, etc. For example, the font color may be red, yellow, white, etc. For example, the font type may be roman, sony, or the like.
S309, displaying the identifier of the first assembly and the identifier of the first object of the first assembly service in the query window according to a second display strategy, wherein the second display strategy comprises a second display position and a second display mode.
The first display position and the second display position are sequentially arranged and do not overlap.
Optionally, the first display mode and the second display mode may be the same or different.
S310, responding to a positioning display instruction input by the identification of the first component and the identification of the first object, and displaying the identification of the first component and/or the identification of the first object in the engineering level window according to a third display strategy, wherein the third display strategy comprises a third display mode.
Optionally, the third display policy may further include a third display position, where the third display position, the second display position, and the first display position are different.
Optionally, the third display mode may be the same as or different from the second display mode.
The information searching method provided by the embodiment of fig. 3 includes: in the method, the identifier of the first variable and the identifier of the first component are determined in the data set according to the target identifier, and the identifier of the first variable and the identifier of the first component are combined to obtain the reference path, so that the purpose of querying the reference path of the resource object in the engineering window or the scene object in the structural hierarchy window can be achieved, and the reverse search of the resource object or the scene object is realized. Further, according to the second display strategy, the identifier of the first component and the identifier of the first object are displayed in the query window, and in response to a positioning display instruction input to the identifier of the first component and the identifier of the first object, the identifier of the first component and/or the identifier of the first object are displayed in the engineering level window according to the third display strategy, so that the problem that the search result displayed in the result display frame 1021 is cancelled when the user clicks a control of a certain result in the search result displayed in hierarchy can be avoided, and the search result is fixedly displayed at the second display position.
Fig. 4 is a first interface schematic diagram provided in the embodiment of the present application. As shown in fig. 4, includes: an interface 401.
The user right clicks on a target object (e.g., the escalation bar levelbar) in the structural hierarchy window by controlling the device, displaying a tool window 4010.
The user realizes the input of the first query instruction by left-clicking "find dependency in scene" in the tool window 4010 by the control device.
Fig. 5 is a second interface schematic diagram provided in the embodiment of the present application. As shown in fig. 5, includes: an interface 501.
On the basis of the interface 401, a query window 5010 is displayed according to the first query instruction. Query window 5010 includes: target components serving target objects, component controls corresponding to each target component, and query controls
For example, the target components included in the query window 5010 that serve the target object are: objects (GameObject), pictures (Image), animation renderer (canvas), and rectangle transform (RectTransform). Wherein the object (GameObject) indicates the target object itself; the component control includes: an object corresponding component control 5011, a picture corresponding component control 5012, an animation renderer corresponding component control 5013, and a rectangle transformation corresponding component control 5014; the query control 5015.
Fig. 6 is a third schematic interface diagram provided in the embodiment of the present application. As shown in fig. 6, includes: an interface 601.
On the basis of the interface 501, when the reference path of the target component needs to be searched, in the interface 601, a user can sequentially click the component control 5011 and the query control 5015 through the control device to implement the click operation, so that the electronic device generates a second query instruction according to the click operation, determines the reference path of the target component according to the second query instruction, and further displays the reference path.
For example, the reference path of the target component is displayed at a first display location 5017 in the interface 601.
For example, the identity of the first component and the identity of the first object are displayed at a second display location 5016 in the interface 601.
At the first display position 5017, the reference path is SceneTest- > GUI- > canvas HUD- >
ChitContainer- > ChitController- > bar, wherein SceneTest is the identifier of the first scene, chitContainer is the identification of the first object, chitController is the identification of the first component, and bar is the identification of the first variable. Wherein the reference path represents: the first scene comprises a first object, a first component is mounted on the first object, the first component comprises a first variable, and the first variable references a target component.
At the second display location 5016, the identification of the first component is ChitController and the identification of the first object (i.e., served) on which the first component is mounted is ChitContainer.
Fig. 7 is a fourth interface schematic diagram provided in the embodiment of the present application. As shown in fig. 7, includes: an interface 701.
In interface 601, the user may click on the identity of the first component and the identity of the first object, chitContainer, which is an identity of the first object, highlighted in the structural hierarchy window, as shown in interface 701.
Unlike the prior art, in the prior art, the search result is displayed by filtering of Hierarchy, and when a certain result is clicked, the filtering is cancelled, and the current search result is lost (after the certain result is selected, the filtering must be cancelled in order to see the node position of the GameObject in the scene) (as shown in an interface 103); the checking is obvious and the time is long. In the present application, the search result does not change with the operation of Hierarchy by the user (i.e. the search result is not lost, and the search result is fixedly displayed at the second display position 5016), and the search speed is fast and the time consumption is short (usually between 0.1 second and 0.4 second).
Fig. 8 is a schematic diagram of a mapping relationship provided in an embodiment of the present application. As shown in fig. 8, includes: identification of a plurality of scene objects (i.e., scenes in S306). For example: scene 1 is included in the identification of the plurality of scene objects.
Scene 1 corresponds to the identification of multiple objects. For example, object 1, object 2, and object 3 are included in the identification of the plurality of objects. The plurality of objects corresponding to scene 1 are a plurality of objects included in the scene corresponding to scene 1.
The identity of each object corresponds to the identity of a plurality of second components. For example, the identification of the plurality of second components includes component 1, component 2, and component 3. The plurality of second components corresponding to the object are a plurality of second components mounted on the object.
The identification of each second component corresponds to the identification of a plurality of second variables. For example, the identifiers of the plurality of second variables include variable 1, variable 2, and variable 3. It should be noted that the plurality of second variables corresponding to the second component are a plurality of second variables included in the second component.
It should be noted that the third component referenced by the second variable may be the second component mounted under other objects. The other objects may be the same as or different from the object on which the second variable is mounted. Note that the identification of the third component referenced by the second variable is not shown in fig. 8.
In the method, according to the target identification, in the process of determining the identification of the first variable and the identification of the first component in the data set, the identification of each second variable in the data set is traversed to obtain the identification of a third component referred by each second variable; and comparing the identifier of the third component quoted by each second variable with the target identifier, determining the mapping relation where the identifier of the third component which is the same as the target identifier is in the data set as the target mapping relation, further determining the identifier of the second variable in the target mapping relation as the identifier of the first variable, and determining the identifier of the second component in the target mapping relation as the identifier of the first component.
Fig. 9 is a schematic structural diagram of an information search apparatus according to an embodiment of the present application. As shown in fig. 9, the information search apparatus 90 includes: a display module 901, a display module 902 and a determination module 903;
the display module 901 is configured to display a target component serving a target object in response to a first query instruction input through the target object in the engineering hierarchy window;
the display module 902 is configured to obtain a second query instruction input according to the target component;
the determining module 903 is configured to determine, according to the second query instruction, a reference path of the target component, where the reference path at least includes an identifier of a first variable corresponding to the reference target component and an identifier of a first component where the first variable is located;
the display module 901 is further configured to display the reference path.
The information searching apparatus 90 provided in the embodiment of the present application may implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects are similar, which are not described herein again.
In one possible design, the determining module 903 is specifically configured to:
acquiring a target identifier of a target component included in the second query instruction;
acquiring a scene identifier of a current activated scene, wherein the current activated scene comprises a scene where a target object is located;
and determining a reference path of the target component according to the target identifier and the scene identifier.
In one possible design, the determining module 903 is specifically configured to:
acquiring a data set corresponding to a scene identifier from a preset database;
determining an identity of a first variable and an identity of a first component in the dataset according to the target identity;
and combining the identification of the first variable and the identification of the first component to obtain the reference path.
In one possible design, a mapping relationship between the identity of at least one second component included in the dataset, the identity of at least one second variable included in each second group, and the identity of a third component referenced by each second variable is included in the dataset; the determining module 903 is specifically configured to:
determining the mapping relation where the identifier of the third component which is the same as the target identifier is located in the data set as a target mapping relation;
determining the identifier of a second variable in the target mapping relation as the identifier of the first variable, wherein the second variable is the same as the first variable;
and determining the identifier of a second component in the target mapping relation as the identifier of the first component, wherein the second component is the same as the first component.
In one possible design, the display module 901 is specifically configured to:
in response to a first query instruction input through a target object in the engineering level window, displaying a query window in the game development application interface, and displaying a target component serving the target object in the query window, wherein the query window is not overlapped with the engineering level window.
In one possible design, the query window further comprises a component control and a query control of the target component;
the display module 902 is specifically configured to:
and responding to the clicking operation on the component control and the query control, and generating a second query instruction.
In one possible design, the display module 901 is specifically configured to:
displaying the reference path in the query window according to a first display strategy; the first display strategy comprises a first display position and a first display mode of the reference path.
In one possible design, the display module 901 is further configured to:
displaying the identifier of the first component and the identifier of the first object served by the first component in the query window according to a second display strategy, wherein the second display strategy comprises a second display position and a second display mode;
and responding to a positioning display instruction input by the identifier of the first component and the identifier of the first object, and displaying the identifier of the first component and/or the identifier of the first object in the project level window according to a third display strategy, wherein the third display strategy comprises a third display mode.
In one possible design, the game development application interface is a unified Unity3D application program interface;
the engineering level window is an engineering window or a structure level window in a unified Unity3D application program.
The information searching apparatus 90 provided in the embodiment of the present application may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
Fig. 10 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic apparatus 100 includes: the processor 1001 and the memory 1002 are connected to each other,
the processor 1001 and the memory 1002 are connected to each other via a bus 1003.
In a specific implementation, the processor 1001 executes computer-executable instructions stored by the memory 1002, so that the processor 1001 performs the information lookup method as described above.
For a specific implementation process of the processor 1001, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 10, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as disk storage.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the information searching method is implemented.
The present application also provides a computer program product comprising a computer program, which when executed by a processor implements the above-mentioned information lookup method.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the unit is only a logical division, and other division ways are possible in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. The information searching method is characterized in that a game development application interface is provided through electronic equipment, the game development application interface comprises an engineering level window, and the game development application interface is a unified Unity3D application program interface; the engineering level window is an engineering window or a structural level window in a unified Unity3D application program, and the method comprises the following steps:
displaying a target component serving a target object in the project level window in response to a first query instruction input through the target object;
acquiring a second query instruction input according to the target component;
determining a reference path of the target component according to the second query instruction, wherein the reference path at least comprises an identifier of a first variable referencing the target component and an identifier of a first component where the first variable is located;
and displaying the reference path.
2. The method of claim 1, wherein determining the reference path of the target component according to the second query instruction comprises:
acquiring a target identifier of the target component included in the second query instruction;
acquiring a scene identifier of a current activation scene, wherein the current activation scene comprises a scene where the target object is located;
and determining a reference path of the target component according to the target identifier and the scene identifier.
3. The method of claim 2, wherein determining the reference path of the target component according to the target identifier and the scene identifier comprises:
acquiring a data set corresponding to the scene identification from a preset database;
determining, in the dataset, an identity of the first variable and an identity of the first component in accordance with the target identity;
and combining the identifier of the first variable and the identifier of the first component to obtain the reference path.
4. The method of claim 3, wherein the dataset includes a mapping relationship between an identification of at least one second component, an identification of at least one second variable included in each second component, and an identification of a third component referenced by each second variable; said determining an identity of said first variable and an identity of said first component in said dataset based on said target identity comprises:
determining a mapping relation where the identifier of the third component which is the same as the target identifier is located in the data set as a target mapping relation;
determining the identifier of a second variable in the target mapping relation as the identifier of the first variable, wherein the second variable is the same as the first variable;
and determining the identifier of a second component in the target mapping relation as the identifier of the first component, wherein the second component is the same as the first component.
5. The method of claim 1, wherein displaying the target component serving the target object in response to a first query instruction entered through the target object in the project level window comprises:
in response to a first query instruction input through a target object in the project level window, displaying a query window in the game development application interface, and displaying the target component serving the target object in the query window, wherein the query window is not overlapped with the project level window.
6. The method of claim 5, wherein the query window further comprises a component control and a query control of the target component;
the obtaining of the second query instruction according to the input of the target component includes:
and responding to the clicking operation of the component control and the query control to generate the second query instruction.
7. The method of claim 5, wherein the displaying the reference path comprises:
displaying the reference path in the query window according to a first display policy; the first display strategy comprises a first display position and a first display mode of the reference path.
8. The method of claim 7, further comprising:
displaying the identifier of the first component and the identifier of the first object served by the first component in a query window according to a second display strategy, wherein the second display strategy comprises a second display position and a second display mode;
and in response to a positioning display instruction input by the identifier of the first component and the identifier of the first object, displaying the identifier of the first component and/or the identifier of the first object in the engineering level window according to a third display strategy, wherein the third display strategy comprises a third display mode.
9. An information searching device is characterized in that a game development application interface is provided through electronic equipment, the game development application interface comprises an engineering level window, and the game development application interface is a unified Unity3D application program interface; the engineering hierarchical window is an engineering window or a structure hierarchical window in a unified Unity3D application, and the device includes: the device comprises a display module, an acquisition module and a determination module;
the display module is used for responding to a first query instruction input through a target object in the engineering hierarchy window and displaying a target assembly serving the target object;
the acquisition module is used for acquiring a second query instruction input according to the target component;
the determining module is configured to determine, according to the second query instruction, a reference path of the target component, where the reference path at least includes an identifier of a first variable that references the target component and an identifier of a first component where the first variable is located;
the display module is further configured to display the reference path.
10. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the information lookup method of any one of claims 1 to 8.
11. A computer-readable storage medium, wherein a computer-executable instruction is stored in the computer-readable storage medium, and when the processor executes the computer-executable instruction, the information search method according to any one of claims 1 to 8 is implemented.
CN202110251121.3A 2021-03-08 2021-03-08 Information searching method, device and equipment Active CN112988810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110251121.3A CN112988810B (en) 2021-03-08 2021-03-08 Information searching method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110251121.3A CN112988810B (en) 2021-03-08 2021-03-08 Information searching method, device and equipment

Publications (2)

Publication Number Publication Date
CN112988810A CN112988810A (en) 2021-06-18
CN112988810B true CN112988810B (en) 2023-03-24

Family

ID=76335802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110251121.3A Active CN112988810B (en) 2021-03-08 2021-03-08 Information searching method, device and equipment

Country Status (1)

Country Link
CN (1) CN112988810B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116186048B (en) * 2023-03-09 2023-12-15 苏州异格技术有限公司 Data processing method and device of FPGA (field programmable gate array) components and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596766B1 (en) * 2007-03-06 2009-09-29 Adobe Systems Inc. Preview window including a storage context view of one or more computer resources
US20200327116A1 (en) * 2017-10-03 2020-10-15 Lyconos, Inc. Systems and methods for document automation
CN110404253A (en) * 2019-07-31 2019-11-05 网易(杭州)网络有限公司 Interface data acquisition methods and device, electronic equipment, storage medium
CN111124539B (en) * 2019-12-20 2023-08-15 腾讯科技(深圳)有限公司 Initial scene resource file searching method, device, equipment and storage medium
CN111338689B (en) * 2020-03-05 2023-12-29 网易(杭州)网络有限公司 File calling method, device and equipment
CN111857872A (en) * 2020-07-06 2020-10-30 珠海西山居移动游戏科技有限公司 Method, device and readable medium for quickly searching missing resources of Unity3D

Also Published As

Publication number Publication date
CN112988810A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN107957831B (en) Data processing method, device and processing equipment for displaying interface content
CN107729246B (en) Auxiliary test method, device and equipment for target application and storage medium
CN108228293B (en) Interface skin switching method and device
CN112948039B (en) Page display method, device, equipment and storage medium
CN107247722B (en) File scanning method and device and intelligent terminal
CN112486451A (en) Voice broadcasting method, computing device and computer storage medium
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN108595965B (en) Method and device for preventing attribute information of interface control from being stolen
CN115526978A (en) Method, equipment and storage medium for realizing three-dimensional control of vehicle-mounted system user interface
CN112988810B (en) Information searching method, device and equipment
CN109213668B (en) Operation recording method and device and terminal
US20090259654A1 (en) Information processing apparatus, control method thereof, and storage medium
CN111381745B (en) Page switching method, device and equipment
CN114693893B (en) Data processing method and device, electronic equipment and storage medium
CN117130697A (en) Method and device for fixing application on taskbar
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN115687704A (en) Information display method and device, electronic equipment and computer readable storage medium
CN114463104A (en) Method, apparatus and computer program product for processing VR scenarios
CN110308848B (en) Label interaction method and device and computer storage medium
CN108958929B (en) Method and device for applying algorithm library, storage medium and electronic equipment
CN108647197B (en) Information processing method, device and storage medium
CN113158620A (en) Bookshelf page editing processing method, electronic equipment and computer storage medium
CN107749892B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN110750742B (en) Page optimization method, system, medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant