Scene interface optimization method and device, storage medium and electronic equipment
By obtaining node display instructions and modifying attribute data to re-render the scene interface, the complex scene interface optimization process in the existing technology is solved, and a more efficient optimization process is achieved.
Patent Information
- Application Number
- CN202411818941.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-04
AI Technical Summary
The optimization process of scene interfaces in the prior art is complicated, and developers need to directly modify the program code, which results in a long time and inefficient time.
By obtaining node display instructions, determining the target node, generating node views, obtaining node modification information, modifying the attribute data of the target child nodes, and re-rendering the scene interface, thereby optimizing the scene interface.
The optimization process is simplified, the time required for optimization is reduced, the optimization efficiency is improved, and the direct modification of the program code is avoided.
Smart Images

Figure CN119556929A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a scene interface optimization method and device, a storage medium and an electronic device. Background Art
[0002] At present, the rendering scene interface technology is used in a wide range of industries, such as game development, film and television production, and architectural design. Users can use the rendering scene interface technology to render the required scene interface.
[0003] After rendering the scene interface, in order to obtain better results, it is necessary to optimize and adjust the scene interface. The current way to optimize the scene interface is that developers directly modify the program code of the scene interface, thereby adjusting the content rendered in the scene interface to achieve the purpose of optimization. Directly modifying the program code places high demands on the staff, and the modification process is relatively complicated. It takes a long time in the optimization process, and the optimization efficiency is low. Summary of the invention
[0004] In view of this, an embodiment of the present application provides an optimization solution for a scene interface. After obtaining a node display instruction, a target node is determined in a node tree view of a node tree of a scene interface currently in a display state, a node view of the target node is generated, node modification information corresponding to the node view is obtained, and attribute data of the corresponding node is modified using the node modification information. The scene interface in the display state is optimized, and the scene interface is optimized so as not to interrupt the display state of the scene interface. The node tree, the node tree view, and the node view allow users to quickly understand the organizational structure of the scene nodes and quickly find the nodes that need to be modified. There is no need for staff to go to the back end to find the corresponding program code for modification. The entire optimization process is simple, the time used to optimize the scene interface is short, and the optimization efficiency is improved.
[0005] To achieve the above objectives, the present application provides the following technical solutions:
[0006] A method for optimizing a scene interface, comprising:
[0007] Get the node display instruction of the scene interface currently in display state;
[0008] Based on the node display instruction, determining a target node in a node tree view of a node tree of the scene interface currently in a display state;
[0009] When the target node is a non-leaf node, a node view of the target node is generated and displayed, wherein the node view includes the target node and each child node of the target node;
[0010] When receiving the node modification information of the node view, determining a target child node among the child nodes of the node view based on the node modification information, and modifying the attribute data of the target child node;
[0011] Based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered to optimize the scene interface.
[0012] The above method may, optionally, before obtaining the node display instruction of the node currently in the display state, further include: generating a node tree of the scene node currently in the display state;
[0013] The process of generating a node tree of scene nodes in a display state includes:
[0014] Obtaining interface information of a scene interface currently in a display state, wherein the interface information includes various interface elements of the scene interface;
[0015] The interface information is applied to construct a node tree of the scene interface; the node tree includes a plurality of nodes, and the nodes are interface elements in the scene interface; the plurality of nodes have a hierarchical relationship and a connection relationship; and the hierarchies between the interconnected nodes are different.
[0016] In the above method, optionally, the step of obtaining the node display instruction of the scene interface currently in the display state includes:
[0017] Obtaining display information of the node tree;
[0018] Based on the display information of the node tree, determining each node level to be displayed in the node tree;
[0019] Based on the information of each node in each node level to be displayed, a node view of the node tree is generated, and the node tree view is displayed to the user, and a node display instruction fed back by the user based on the node tree view is obtained.
[0020] In the above method, optionally, determining the target node in the node tree view of the node tree of the scene interface currently in the display state based on the node display instruction includes:
[0021] Obtaining a node identifier in the node display instruction;
[0022] A node in the node tree view corresponding to the node identifier is determined as a target node.
[0023] In the above method, optionally, generating the node view of the target node includes:
[0024] Acquire child node information of the target node, wherein the child node information includes information of child nodes of the target node;
[0025] The child node information and the target node information are applied to generate a node view of the target node.
[0026] In the above method, optionally, determining the target child node from each child node of the node view based on the node modification information includes:
[0027] Obtaining the subnode identifier in the node modification information;
[0028] A subnode corresponding to the subnode identifier in the node view is determined as a target subnode.
[0029] In the above method, optionally, the modifying the attribute data of the target child node includes:
[0030] Obtaining various modification parameters in the node modification information;
[0031] For each of the modification parameters, the attribute corresponding to the modification parameter among the attributes of the target child node is determined as the target attribute, and the modification parameter is updated to the data of the target attribute.
[0032] A scene interface optimization device, comprising:
[0033] An acquisition unit, used to acquire a node display instruction of a scene interface currently in a display state;
[0034] A determination unit, configured to determine a target node in a node tree view of a node tree of the scene interface currently in a display state based on the node display instruction;
[0035] A first generating unit, configured to generate a node view of the target node when the target node is a non-leaf node, and display the node view, wherein the node view includes the target node and each child node of the target node;
[0036] a modification unit, configured to, when receiving the node modification information of the node view, determine a target child node among the child nodes of the node view based on the node modification information, and modify the attribute data of the target child node;
[0037] The rendering unit is used to re-render the scene interface being displayed based on the modified attribute data of the target child node to optimize the scene interface.
[0038] Optionally, the above device further includes: a second generating unit, configured to generate a node tree of scene nodes currently in a display state;
[0039] The second generating unit executes a process of generating a node tree of scene nodes in a display state, including:
[0040] Obtaining interface information of a scene interface currently in a display state, wherein the interface information includes various interface elements of the scene interface;
[0041] The interface information is applied to construct a node tree of the scene interface; the node tree includes a plurality of nodes, and the nodes are interface elements in the scene interface; the plurality of nodes have a hierarchical relationship and a connection relationship; and the hierarchies between the interconnected nodes are different.
[0042] Optionally, in the above-mentioned device, the process of the acquisition unit executing acquisition of the node display instruction of the scene interface currently in the display state includes:
[0043] Obtaining display information of the node tree;
[0044] Based on the display information of the node tree, determining each node level to be displayed in the node tree;
[0045] Based on the information of each node in each node level to be displayed, a node view of the node tree is generated, and the node tree view is displayed to the user, and a node display instruction fed back by the user based on the node tree view is obtained.
[0046] Optionally, in the above-mentioned device, the determination unit executes a process of determining the target node in the node tree view of the node tree of the scene interface currently in the display state based on the node display instruction, comprising:
[0047] Obtaining a node identifier in the node display instruction;
[0048] A node in the node tree view corresponding to the node identifier is determined as a target node.
[0049] Optionally, in the above device, the first generating unit executes a process of generating a node view of the target node, including:
[0050] Acquire child node information of the target node, wherein the child node information includes information of child nodes of the target node;
[0051] The child node information and the target node information are applied to generate a node view of the target node.
[0052] Optionally, in the above-mentioned device, the modification unit performs a process of determining a target child node from among the child nodes of the node view based on the node modification information, including:
[0053] Obtaining the subnode identifier in the node modification information;
[0054] A subnode corresponding to the subnode identifier in the node view is determined as a target subnode.
[0055] Optionally, in the above device, the process in which the modifying unit performs modification of the attribute data of the target child node includes:
[0056] Obtaining various modification parameters in the node modification information;
[0057] For each of the modification parameters, the attribute corresponding to the modification parameter among the attributes of the target child node is determined as the target attribute, and the modification parameter is updated to the data of the target attribute.
[0058] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned scene interface optimization method.
[0059] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above-mentioned scene interface optimization method.
[0060] Compared with the prior art, this application has the following advantages:
[0061] The present application provides a method and device for optimizing a scene interface, a storage medium and an electronic device, including: determining a target node in a node tree of a scene interface currently in a display state, and when the target node is a non-leaf node, generating a node view of the target node, displaying each child node of the target node in the node view, and after receiving node modification information of the node view, using the node modification information to determine the target child node in each child node, and modifying the attribute data of the target child node, and then re-rendering the scene interface being displayed according to the modified attribute data of the target child node, thereby optimizing the scene interface. The optimization process does not require staff to spend time looking for corresponding codes for modification, making the optimization process simpler, reducing the time applied for optimization, and improving optimization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0063] Figure 1 A flowchart of a method for optimizing a scene interface provided in an embodiment of the present application;
[0064] Figure 2 A flowchart of generating a node tree of a scene interface currently in a display state provided in an embodiment of the present application;
[0065] Figure 3 A flowchart of obtaining a node display instruction of a scene interface currently in a display state provided in an embodiment of the present application;
[0066] Figure 4 A partial example diagram of a node property panel provided in an embodiment of the present application;
[0067] Figure 5 An example flow chart of determining a target subnode from among the subnodes of a node view based on node modification information and modifying attribute data of the target subnode provided in an embodiment of the present application;
[0068] Figure 6 A structural example diagram of a scene interface optimization device provided in an embodiment of the present application;
[0069] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0072] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, etc.
[0073] Reference Figure 1 , which is a flow chart of a scene interface optimization method provided in an embodiment of the present application, wherein the specific process is as S101-S105, and the specific description is as follows:
[0074] S101: Obtain a node display instruction of a scene interface currently in a display state.
[0075] In the solution provided in the present application, the node display instructions are instructions provided by users, and the users are developers, maintainers, etc. of the scene interface.
[0076] Get the node display instruction of the scene interface in the display state of the application currently in the running state.
[0077] Before getting the node display instruction, generate the node tree of the scene interface currently in the display state, refer to Figure 2 , which is a flowchart of generating a node tree of a scene interface currently in a display state provided by an embodiment of the present application, the process is as S201-S202, and the specific description is as follows:
[0078] S201. Obtain interface information of a scene interface currently in display state, where the interface information includes various interface elements of the scene interface.
[0079] The scene interface currently in the display state is the scene interface of the application. When the scene interface is in the display state, it indicates that the corresponding application is in the running state.
[0080] The interface information includes various interface elements of the scene interface, and the various interface elements include but are not limited to various objects in the scene interface, such as trees, grass, people, ground, and other contents that constitute the scene interface.
[0081] The scene interface can be a game-related interface, such as a graphical user interface, a game scene interface, etc.; it can also be a page design in other different fields and scenarios.
[0082] S202, applying the interface information to construct a node tree of the scene interface; the node tree includes multiple nodes, and the nodes are interface elements in the scene interface; the multiple nodes have a hierarchical relationship and a connection relationship; the hierarchies between the interconnected nodes are different.
[0083] The constructed node tree includes the hierarchical relationship and connection relationship between each node. The node tree can intuitively understand the organizational structure of the scene interface, which helps the staff to quickly understand the organizational structure of the scene interface without the need to go through the program code of the scene interface, thereby reducing the difficulty of the staff's work and facilitating the staff to optimize the scene interface.
[0084] Preferably, the node tree may be generated when the scene interface is displayed, and the node tree of the scene node may be generated in the background.
[0085] Reference Figure 3 , which is a flowchart of obtaining a node display instruction of a scene interface currently in a display state provided in an embodiment of the present application, and the specific process is as follows: S301-S303:
[0086] S301: Obtain display information of the node tree.
[0087] When the scene interface is displayed to the staff, if the staff wants to optimize the scene interface being displayed, they can click the node tree display button corresponding to the scene interface, and then enter the node tree display instruction of the scene interface, and obtain the display information of the node tree based on the node tree display instruction.
[0088] The display information includes the hierarchical information that needs to be displayed in the node tree. For example, if the node tree has 10 layers of nodes, only the first two layers of nodes are displayed, or only the first layer of nodes in the node tree, that is, the root node of the node tree, is displayed.
[0089] S302: Based on the display information of the node tree, determine each node level to be displayed in the node tree.
[0090] The display information includes the level information to be displayed, which can be used to determine the node levels that can be displayed in the node tree. The larger the node level, the farther the node level is from the root node.
[0091] For example, when the display information only includes information displaying the root node, the determined node level is the first level; when the display information includes information displaying the first-layer nodes and the second-layer nodes, the determined node levels are the first node level and the second node level, the first node level is the level including the root node, and the second node level is the level including the child nodes of the root node; no examples are given here.
[0092] S303: Generate a node view of a node tree based on information of each node in each node level to be displayed, display the node tree view to the user, and obtain a node display instruction fed back by the user based on the node tree view.
[0093] Determine the information of each node in each node level to be displayed. Preferably, the node information includes the node name, the node's explicit and implicit information, the node's component information, etc. The node's explicit and implicit information refers to the explicit and implicit status of the interface element corresponding to the node in the scene interface. When the node's explicit and implicit information is displayed, it means that the interface element corresponding to the node is displayed in the scene interface; when the node's explicit and implicit information is hidden, it means that the interface element corresponding to the node is hidden in the scene interface, that is, not displayed.
[0094] The node tree view of the node tree is generated using the information of each node in each node level to be displayed, and then the node tree view is displayed to the user (i.e., the staff). Since the node tree of the scene interface is very large, in order to facilitate the user to browse and see the displayed content clearly, the node tree view of the present application displays some nodes in the node tree, avoiding the situation where the screen cannot be fully displayed or the displayed content is stacked due to too much content to be displayed, reducing the display pressure, and by displaying some nodes, the node information can be clearly displayed to the user, which is convenient for the user's subsequent operations.
[0095] When a user wants to operate a node in the node tree view, for example, to view the child nodes of a node, the user can click on the node in the node tree view to generate a node display instruction on the front end, and then obtain the node display instruction on the back end.
[0096] Preferably, the node display instruction includes a node identifier, and preferably, the node identifier is the identifier of the node clicked by the user.
[0097] S102: Based on the node display instruction, determine the target node in the node tree view of the node tree of the scene interface currently in the display state.
[0098] Exemplarily, a node identifier in a node display instruction is obtained; and a node corresponding to the node identifier in a node tree is determined as a target node. The node identifier may be a name of the node.
[0099] S103: When the target node is a non-leaf node, a node view of the target node is generated and displayed. The node view includes the target node and each child node of the target node.
[0100] After determining the target node, first determine whether the target node is a non-leaf node. When the target node is determined to be a non-leaf node, obtain the child node information of the target node, which includes the information of the child nodes of the target node; apply the child node information and the target node information to generate a node view of the target node. Furthermore, the generated node view includes the node name of the target node, the node name of each child node of the target node, component information, and visibility status.
[0101] Preferably, when it is determined that the target node is not a non-leaf node, the target node is determined to be a leaf node. At this time, the target node has no child nodes, and the generated node view only includes the node name of the target node, which can be regarded as generating a node view with empty child node information.
[0102] Preferably, the node view of the target node can be understood as the expanded view of the node. If the node is a non-leaf node, the expanded view of the node contains information of each child node of the node. If the node is a leaf node, the child node information in the expanded view of the node is empty.
[0103] S104: When node modification information of the node view is received, a target child node is determined among the child nodes of the node view based on the node modification information, and attribute data of the target child node is modified.
[0104] After the node view is displayed to the user, if the user needs to modify the node in the node view, click the node (here is the child node) or long press the node (here is the child node) on the front end, and the property panel of the node will pop up on the front end. Figure 4 , which is a partial example diagram of the property panel of the node provided in an embodiment of the present application. The property panel contains the name of the node, various properties, etc. As shown in the figure, the various properties include but are not limited to position, rotation, and scale.
[0105] The user selects the property to be modified in the property panel and enters the corresponding value. After clicking the OK button in the property panel, the node modification information is generated and the backend receives the node modification information.
[0106] The node modification information includes the subnode identifier of the subnode that the user chooses to continue to modify, the data of the modified attribute, etc. The subnode identifier of the subnode is the node identifier of the node.
[0107] In another embodiment provided by the present application, the user can also input node modification information based on the node tree. At this time, the input node information includes the node identifier of the node that the user selected in the node tree view to be modified, the data of the attribute that needs to be modified, etc. Subsequent operations can refer to the operations after receiving the node modification information in the node view.
[0108] Reference Figure 5 , is a flowchart of determining a target subnode in each subnode of a node view based on node modification information and modifying attribute data of the target subnode according to an embodiment of the present application, and the specific description is as follows:
[0109] S401: Obtain the subnode identifier in the node modification information.
[0110] S402: Determine the child node corresponding to the child node identifier in the node view as the target child node.
[0111] The obtained child node identifier is traversed through each child node in the node view, and the child node corresponding to the child node identifier is determined as the target child node.
[0112] S403: Obtain various modification parameters in the node modification information.
[0113] S404: For each modification parameter, determine the attribute corresponding to the modification parameter among the attributes of the target child node as the target attribute, and update the modification parameter to data of the target attribute.
[0114] It should be noted that each node in the node tree has multiple attributes, including but not limited to visibility, scaling, displacement, rotation, and components.
[0115] For each modification parameter, the modification parameter is traversed through various attributes of the target child node, so as to determine the target attribute among the various attributes, and the modification parameter is updated to the data of the target attribute. Different modification parameters correspond to different attributes.
[0116] The contents of modification parameters of different attributes are different. For example, the modification parameters of scaling, displacement and rotation are related to the values of the X, Y and Z axes of the coordinate axes.
[0117] S105. Re-render the scene interface being displayed based on the modified attribute data of the target child node to optimize the scene interface.
[0118] After modifying the attribute data of the target child node, the scene interface being displayed is re-rendered according to the modified attribute data of the target child node, thereby optimizing the scene interface. The purpose of re-rendering the scene interface according to the modified attribute data of the target child node is to see whether the scene interface achieves the expected effect. If it has not achieved the expected effect, the scene interface can continue to be optimized. After the scene interface achieves the expected effect, the attribute data of each modified interface element in the scene interface that achieves the expected effect can be synchronized to the code.
[0119] In another embodiment provided by the present application, the node view can be displayed as a new node tree view, or the node view can be added to the node tree view to obtain a new node tree view. The user can then expand the nodes in the new node tree view as needed, thereby adjusting the scene interface layer by layer, or finding problems in the scene interface layer by layer, thereby improving the efficiency of optimizing the scene interface.
[0120] By using the node tree of the application scene interface, you can quickly locate and manage each node, thereby improving the management efficiency of the scene. In addition, you can modify and adjust the scene interface in real time without interrupting the application and scene interface until different needs are met, thereby achieving optimized results.
[0121] In the method provided by an embodiment of the present application, after obtaining a node display instruction of a scene interface that is currently in a display state, based on the node display instruction, a target node is determined in a node tree view of a node tree of the scene interface that is currently in a display state; when the target node is a non-leaf node, a node view of the target node is generated and the node view is displayed, wherein the node view includes the target node and each child node of the target node; when node modification information of the node view is received, the target child node is determined in each child node of the node view based on the node modification information, and the attribute data of the target child node is modified; based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered to optimize the scene interface. In the solution provided by the present application, a target node is determined in a node tree of a scene interface that is currently being displayed, and when the target node is a non-leaf node, a node view of the target node is generated, and each child node of the target node is displayed in the node view. After receiving the node modification information of the node view, the target child node is determined in each child node using the node modification information, and the attribute data of the target child node is modified. Then, based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered, thereby optimizing the scene interface. The optimization process does not require the staff to spend time looking for the corresponding code for modification, which makes the optimization process simpler, reduces the time applied for optimization, and improves the optimization efficiency.
[0122] In the solution provided in the present application, the entire optimization process does not need to interrupt the display status of the scene interface, and provides a node tree of the scene interface to facilitate users to understand the organizational structure in the scene interface. The modified nodes can be quickly selected from the node view. The method of modifying node properties is simple, convenient, and time-saving, thereby improving the efficiency of optimizing the scene interface.
[0123] Although the present invention depicts operations in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0124] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0125] and Figure 1Corresponding to the method shown, the present application also provides a scene interface optimization device, which is used to support Figure 1 Specific implementation of the method shown.
[0126] Reference Figure 6 , is a structural example diagram of a scene interface optimization device provided in an embodiment of the present application, and is specifically described as follows:
[0127] The acquisition unit 501 is used to acquire the node display instruction of the scene interface currently in the display state;
[0128] A determination unit 502, configured to determine a target node in a node tree view of a node tree of the scene interface currently in a display state based on the node display instruction;
[0129] A first generating unit 503 is configured to generate a node view of the target node when the target node is a non-leaf node, and display the node view, wherein the node view includes the target node and each child node of the target node;
[0130] A modifying unit 504, configured to, when receiving the node modification information of the node view, determine a target child node among the child nodes of the node view based on the node modification information, and modify the attribute data of the target child node;
[0131] The rendering unit 505 is used to re-render the scene interface being displayed based on the modified attribute data of the target child node to optimize the scene interface.
[0132] In the device provided by the embodiment of the present application, after obtaining the node display instruction of the scene interface that is currently in the display state, based on the node display instruction, the target node is determined in the node tree view of the node tree of the scene interface that is currently in the display state, and when the target node is a non-leaf node, a node view of the target node is generated and displayed, and the node view includes the target node and each child node of the target node; when node modification information of the node view is received, the target child node is determined in each child node of the node view based on the node modification information, and the attribute data of the target child node is modified; based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered to optimize the scene interface. In the solution provided by the present application, a target node is determined in a node tree of a scene interface that is currently being displayed, and when the target node is a non-leaf node, a node view of the target node is generated, and each child node of the target node is displayed in the node view. After receiving the node modification information of the node view, the target child node is determined in each child node using the node modification information, and the attribute data of the target child node is modified. Then, based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered, thereby optimizing the scene interface. The optimization process does not require the staff to spend time looking for the corresponding code for modification, which makes the optimization process simpler, reduces the time applied for optimization, and improves the optimization efficiency.
[0133] In another embodiment provided by the present application, the device further includes: a second generating unit, configured to generate a node tree of the scene node currently in a display state;
[0134] The second generating unit executes a process of generating a node tree of scene nodes in a display state, including:
[0135] Obtaining interface information of a scene interface currently in a display state, wherein the interface information includes various interface elements of the scene interface;
[0136] The interface information is applied to construct a node tree of the scene interface; the node tree includes a plurality of nodes, and the nodes are interface elements in the scene interface; the plurality of nodes have a hierarchical relationship and a connection relationship; and the hierarchies between the interconnected nodes are different.
[0137] In another embodiment provided by the present application, the acquisition unit of the device executes a process of acquiring a node display instruction of a scene interface currently in a display state, including:
[0138] Obtaining display information of the node tree;
[0139] Based on the display information of the node tree, determining each node level to be displayed in the node tree;
[0140] Based on the information of each node in each node level to be displayed, a node view of the node tree is generated, and the node tree view is displayed to the user, and a node display instruction fed back by the user based on the node tree view is obtained.
[0141] In another embodiment provided by the present application, the determination unit of the device executes a process of determining a target node in a node tree view of a node tree of the scene interface currently in a display state based on the node display instruction, including:
[0142] Obtaining a node identifier in the node display instruction;
[0143] A node in the node tree view corresponding to the node identifier is determined as a target node.
[0144] In another embodiment provided by the present application, the first generating unit of the device performs a process of generating a node view of the target node, including:
[0145] Acquire child node information of the target node, wherein the child node information includes information of child nodes of the target node;
[0146] The child node information and the target node information are applied to generate a node view of the target node.
[0147] In another embodiment provided by the present application, the modification unit of the device performs a process of determining a target sub-node in each sub-node of the node view based on the node modification information, including:
[0148] Obtaining the subnode identifier in the node modification information;
[0149] A subnode corresponding to the subnode identifier in the node view is determined as a target subnode.
[0150] In another embodiment provided by the present application, the process in which the modifying unit of the device performs modification of the attribute data of the target child node includes:
[0151] Obtaining various modification parameters in the node modification information;
[0152] For each of the modification parameters, the attribute corresponding to the modification parameter among the attributes of the target child node is determined as the target attribute, and the modification parameter is updated to the data of the target attribute.
[0153] An embodiment of the present application further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned scene interface optimization method.
[0154] The present application also provides an electronic device, whose structural diagram is as follows: Figure 7 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:
[0155] Get the node display instruction of the scene interface currently in display state;
[0156] Based on the node display instruction, determining a target node in a node tree view of a node tree of the scene interface currently in a display state;
[0157] When the target node is a non-leaf node, a node view of the target node is generated and displayed, wherein the node view includes the target node and each child node of the target node;
[0158] When receiving the node modification information of the node view, determining a target child node among the child nodes of the node view based on the node modification information, and modifying the attribute data of the target child node;
[0159] Based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered to optimize the scene interface.
[0160] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions.
[0161] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.
[0162] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0163] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0164] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for optimizing a scene interface, characterized in that: include: Get the node display instruction of the scene interface currently in display state; Based on the node display instruction, determining a target node in a node tree view of a node tree of the scene interface currently in a display state; When the target node is a non-leaf node, a node view of the target node is generated and displayed, wherein the node view includes the target node and each child node of the target node; When receiving the node modification information of the node view, determining a target child node among the child nodes of the node view based on the node modification information, and modifying the attribute data of the target child node; Based on the modified attribute data of the target child node, the scene interface being displayed is re-rendered to optimize the scene interface.
2. The method according to claim 1, characterized in that Before obtaining the node display instruction of the node currently in the display state, it also includes: generating a node tree of the scene node currently in the display state; The process of generating a node tree of scene nodes in a display state includes: Obtaining interface information of a scene interface currently in a display state, wherein the interface information includes various interface elements of the scene interface; The interface information is applied to construct a node tree of the scene interface; the node tree includes a plurality of nodes, and the nodes are interface elements in the scene interface; the plurality of nodes have a hierarchical relationship and a connection relationship; and the hierarchies between the interconnected nodes are different.
3. The method according to claim 2, characterized in that The step of obtaining the node display instruction of the scene interface currently in the display state includes: Obtaining display information of the node tree; Based on the display information of the node tree, determining each node level to be displayed in the node tree; Based on the information of each node in each node level to be displayed, a node view of the node tree is generated, and the node tree view is displayed to the user, and a node display instruction fed back by the user based on the node tree view is obtained.
4. The method according to claim 1, characterized in that The determining the target node in the node tree view of the node tree of the scene interface currently in the display state based on the node display instruction includes: Obtaining a node identifier in the node display instruction; A node in the node tree view corresponding to the node identifier is determined as a target node.
5. The method according to claim 1, characterized in that The generating the node view of the target node includes: Acquire child node information of the target node, wherein the child node information includes information of child nodes of the target node; The child node information and the target node information are applied to generate a node view of the target node.
6. The method according to claim 1, characterized in that The determining a target child node from among the child nodes of the node view based on the node modification information includes: Obtaining the subnode identifier in the node modification information; A subnode corresponding to the subnode identifier in the node view is determined as a target subnode.
7. The method according to claim 1, characterized in that The modifying the attribute data of the target child node includes: Obtaining various modification parameters in the node modification information; For each of the modification parameters, the attribute corresponding to the modification parameter among the attributes of the target child node is determined as the target attribute, and the modification parameter is updated to the data of the target attribute.
8. A scene interface optimization device, characterized in that: include: An acquisition unit, used to acquire a node display instruction of a scene interface currently in a display state; A determination unit, configured to determine a target node in a node tree view of a node tree of the scene interface currently in a display state based on the node display instruction; A first generating unit, configured to generate a node view of the target node when the target node is a non-leaf node, and display the node view, wherein the node view includes the target node and each child node of the target node; a modification unit, configured to, when receiving the node modification information of the node view, determine a target child node among the child nodes of the node view based on the node modification information, and modify the attribute data of the target child node; The rendering unit is used to re-render the scene interface being displayed based on the modified attribute data of the target child node to optimize the scene interface.
9. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the scene interface optimization method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the scene interface optimization method as described in any one of claims 1-7.