Method, device and electronic device for dynamically generating UI

By parsing the attribute information and types of resource instances, matching and loading corresponding UI components to the attribute panel, the problem of poor scalability of the attribute panel in Unreal4 is solved, dynamic UI generation is achieved, and development work is reduced.

CN112732252BActive Publication Date: 2024-09-13TENCENT CLOUD COMPUTING (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011578058.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-09-13
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

In the existing technology, the property panel of Unreal4 has poor scalability, resulting in frequent development work and the inability to effectively dynamically generate UI based on different resources.

Method used

By obtaining resource instances, parsing their attribute information and attribute types, matching pre-created UI components, and loading them into the attribute panel, dynamic UI generation is achieved.

Benefits of technology

It improves the scalability of the property panel, reduces the frequency of development work, and can dynamically generate appropriate UI based on the property information and type of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112732252B
    Figure CN112732252B
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and in particular to a method, device and electronic device for dynamically generating UI. The method for dynamically generating UI provided by the present application includes: obtaining a resource instance; wherein the resource instance is obtained after the resource is instantiated, and the resource is a pre-created display model; parsing the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information; matching the UI component corresponding to the attribute information through the attribute type; wherein the UI component is pre-created according to each attribute type corresponding to each attribute information of the resource; instantiating the matched UI component and loading it into a preset attribute panel, so that the attribute panel displays the content corresponding to the UI component; wherein the content is used to edit the display model. Through the scheme of the present application, the extensibility of the attribute panel can be improved, and frequent development work can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic device for dynamically generating a UI. Background Art

[0002] User Interface (UI) refers to the user's operating interface, which is used to achieve human-computer interaction. Software developers can use the UI development platform to select different user interface components and then complete the UI design through parameter configuration.

[0003] Currently, Unreal4 (UE4) modifies attribute parameters in edit mode, and Game mode only displays the editing results. The attribute panel is fixed to the parameters used in the attribute panel, which makes the attribute panel poorly extensible and requires frequent development work.

[0004] Therefore, the present application proposes a method, device and electronic device for dynamically generating a UI to solve the problem of poor scalability of the property panel. Summary of the invention

[0005] In view of this, the embodiments of the present specification provide a method, device and electronic device for dynamically generating a UI, which are used to solve the problem of poor scalability of a UI property panel.

[0006] The embodiments of this specification adopt the following technical solutions:

[0007] This specification provides a method for dynamically generating a UI, including:

[0008] Obtain a resource instance; wherein the resource instance is obtained after instantiation of a resource, and the resource is a pre-created display model;

[0009] Parsing the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information;

[0010] Matching a UI component corresponding to the attribute information by the attribute type; wherein the UI component is pre-created according to each attribute type corresponding to each attribute information of the resource;

[0011] The matched UI component is instantiated and loaded into a preset property panel, so that the property panel displays content corresponding to the UI component; wherein the content is used to edit the display model.

[0012] This specification also provides a device for dynamically generating a UI, including:

[0013] An acquisition module, the acquisition module is used to acquire a resource instance; wherein the resource instance is obtained after the resource is instantiated, and the resource is a pre-created display model;

[0014] A determination module, the determination module is used to parse the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information;

[0015] A matching module, the matching module is used to match the UI component corresponding to the attribute information through the attribute type; wherein the UI component is pre-created according to each attribute type corresponding to each attribute information of the resource;

[0016] A loading module, the loading module is used to instantiate the matching UI component and load it into a preset property panel, so that the property panel displays content corresponding to the UI component; wherein the content is used to edit the display model.

[0017] The present specification also provides an electronic device, including: at least one processor and a memory, wherein the memory stores a program and is configured such that the at least one processor executes the above-mentioned method for dynamically generating a UI.

[0018] This specification also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the above-mentioned method for dynamically generating a UI is implemented.

[0019] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: the solution of this specification, for pre-created resources, after the resources are passed in, the attribute information corresponding to the resource and the attribute type of the attribute information can be determined by parsing the resource instance, and the UI component corresponding to the attribute information can be further matched by the attribute type. Since the UI component is pre-created according to the attribute types corresponding to the attribute information of the resource, after the UI component corresponding to the attribute information is determined by the attribute type, a binding relationship between the attribute type and the UI component is established. In this way, it is equivalent to binding the logical operation relationship between the UI component and the attribute information corresponding to the resource and its attribute type, and then loading the matching UI component into the preset attribute panel, the UI can be dynamically generated. Through the method of the present invention, for the passed-in resources, the attribute panel can be dynamically generated according to the attribute information and the attribute type of the resource, which improves the extensibility of the attribute panel and reduces frequent development work. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor:

[0021] Figure 1 This is a main flow chart of a method for dynamically generating a UI provided by an embodiment of this specification;

[0022] Figure 2 It is a framework diagram of a device for dynamically generating UI provided in an embodiment of this specification. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0024] As described in the background technology, in the prior art, for UI design, the property panel uses certain parameters to fix certain properties in the property panel, so the property panel has poor expansibility and frequent development work. Therefore, this specification proposes a method for dynamically generating UI to solve the problem of poor expansibility of the property panel.

[0025] In this manual, the Game mode of the Unreal4 graphics rendering engine is used as an example. The general idea framework of this manual is as follows: first, exhaustively list the types of all editable attributes (color attributes, state attributes, size attributes, etc.): string, Boolean, integer, floating point, etc., and then create corresponding UI components according to each type, and bind proxy functions according to the type (set parameter value function, get parameter value function). Then parse the attribute variables of the class (class) to which the scene instance element belongs (attributes marked by the UPROPERTY macro), and then match the corresponding UI attribute components according to the variable type to automatically generate an element attribute list.

[0026] The specific implementation of this specification is further described in detail below with reference to the specific drawings.

[0027] First refer to Figure 1 , Figure 1This is a main flow chart of a method for dynamically generating a UI provided by an embodiment of this specification. Figure 1 As shown, the method includes:

[0028] S110: Obtain a resource instance.

[0029] In this specification, resource instances are obtained after resource instantiation. Resources can be understood as UI resources, such as various elements of the UI interface, such as the status bar, navigation bar, text box, etc.; resources can also be three-dimensional scene resources, such as various models, water, plants and other elements displayed in the three-dimensional scene; that is to say, the display model (or scene element) of the graphical display interface can be a resource in this specification. The resource is pre-created, such as pre-created using other 3D software. This specification does not explain in detail the specific resource type and how to create the resource. After the imported resource is instantiated, this step can obtain the resource instance.

[0030] S120: Parse the resource instance to determine attribute information corresponding to the resource and an attribute type corresponding to the attribute information.

[0031] In this step, a scene element attribute parsing function can be added to implement the parsing of the resource instance. Specifically, the implementation logic of the attribute parsing function can be: after obtaining the resource instance, obtain the class to which the resource instance belongs, and then traverse the attributes defined by the class to determine the attribute information corresponding to the resource, and further determine the attribute type corresponding to the attribute information based on the attribute information.

[0032] Specifically, resources are scene elements, that is, various display models of a graphical display interface. Accordingly, the attribute information corresponding to the resource may be some editable attributes, such as the color attribute of the resource (used to represent the color information of the resource), the state attribute (used to represent the state information of the resource), the size attribute (used to represent the size information of the resource, such as length, width, height), etc. Since these attribute information are editable, corresponding editing operations are performed on the resource through these editable attributes. The attribute types corresponding to these attribute information may be string, Boolean, integer, floating point, etc. Different attribute information may correspond to different attribute types. For example, for the size attribute information, its attribute type may be a numeric type, and for the state attribute information, its attribute type may be a numeric type or a text type, etc. It can be understood by those skilled in the art that when the resource is created in advance, the attribute information of the resource and the attribute type corresponding to the attribute information are usually already created. After parsing the resource instance, this step can determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information. This specification does not limit the specific parsing method, and those skilled in the art are free to choose any other feasible method to parse the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information.

[0033] S130: Matching a UI component corresponding to the attribute information by using the attribute type.

[0034] Wherein, the UI component is pre-created according to each attribute type corresponding to each attribute information of the resource. The method of pre-creating the UI component may be: for the resources in this specification, the types of all editable attributes (such as color attribute, state attribute, size attribute, etc.) corresponding to these resources may be first exhaustively listed, and these types include string, Boolean, integer, floating point, etc., and then the UI component corresponding to the attribute is created according to the attribute type. As a specific example, for a specific attribute of a resource, the attribute type corresponding to the attribute may be first determined by the attribute mark to determine whether the attribute type is editable and visible, and then the attribute type (string, Boolean, integer, or floating point, etc.) may be further determined. If the attribute type is an array type, the array size of the current resource instance object corresponding to the attribute is obtained to loop and recurse the type of the array content; if the attribute type is a structure type, the internal attributes of the structure are recursively determined. The UI component corresponding to the attribute is created according to the result of the attribute type determination, and the newly created UI component is added to the attribute list.

[0035] This specification does not specifically describe the creation logic of a specific UI component, and those skilled in the art can also create corresponding UI components in other feasible ways. In this specification, the attribute type obtained by parsing is used to match the pre-created UI component corresponding to the attribute information. Specifically, after determining the UI component corresponding to the attribute information according to the attribute type, a binding relationship between the attribute type and the UI component is established. For example, a proxy function processing template class (used to bind a parameter value setting function and a parameter value acquisition function) can be created, and the parameter of the proxy function is set to have only one parameter and is of the corresponding parameter type, and the parameter of the proxy function is empty, and the return value is of the corresponding parameter type; then the dialing function processing template class is used to instantiate the proxy function class of the attribute type, and bind it to the corresponding UI component, and the value change and content display of the UI component correspond to calling the function in the proxy function template instance. This method is implemented based on the Unreal4 graphics rendering engine. That is, based on the Unreal4 graphics rendering engine, those skilled in the art can implement the binding between the attribute type and the UI component, so that the operation logic between the resource attribute and the UI component is established, so that the resource attribute and the UI component have a logical modification relationship, and the resource attribute value can be modified through the UI component. In addition, those skilled in the art may also implement the binding operation between the attribute type and the UI component in other feasible ways, which will not be described in detail here.

[0036] S140: instantiate the matched UI component and load it into a preset property panel, so that the property panel displays content corresponding to the UI component.

[0037] In this step, the property panel can be understood as an independent container. In the prior art, the property panel usually uses what parameters to fix what properties in the property panel. For example, editable properties are usually written in advance in the property panel. For the incoming resources, the property panel is fixed, which leads to poor expansibility of the property panel. In this description, the property panel is equivalent to a blank container. For the incoming resources, after the resources are instantiated, the property information and property type of the resource can be determined by parsing the resource instance, and then the property panel of the UI is dynamically generated according to the property information and property type of the resource, and there is no need to pre-write fixed properties in the property panel. Specifically, after determining the property information and property type of the resource, the UI component corresponding to the property information is matched by the property type. In this way, it is not necessary to pre-fix the parameters in the property panel, but to dynamically match the corresponding UI component according to the incoming resources, and then load the property panel of the UI component so that the property panel displays the content corresponding to the UI component, and the content is used to edit the display model.

[0038] In summary, the method for dynamically generating UI provided in this specification can realize dynamic generation of UI compared to the prior art. Specifically, for pre-created resources, after the resources are passed in, the attribute information corresponding to the resource and the attribute type of the attribute information can be determined by parsing the resource instance, and the UI component corresponding to the attribute information can be further matched by the attribute type. Since the UI component is pre-created according to the attribute types corresponding to the attribute information of the resource, after the UI component corresponding to the attribute information is determined by the attribute type, a binding relationship between the attribute type and the UI component is established. In this way, it is equivalent to binding the logical operation relationship between the UI component and the attribute information corresponding to the resource and its attribute type, and then loading the matching UI component into the preset attribute panel, the UI can be dynamically generated. Through the method of the present invention, for the passed-in resources, the attribute panel can be dynamically generated according to the attribute information and the attribute type of the resource, which improves the extensibility of the attribute panel and reduces frequent development work.

[0039] Based on the same concept, this specification also provides a device for dynamically generating UI. Figure 2 , Figure 2 This is a structural block diagram of a device for dynamically generating UI provided in this specification. Figure 2 As shown, the device comprises:

[0040] An acquisition module 201, the acquisition module 201 is used to acquire a resource instance; wherein the resource instance is obtained after instantiation of a resource, and the resource is a pre-created display model;

[0041] A determination module 202, the determination module 202 is used to parse the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information;

[0042] A matching module 203, the matching module 203 is used to match the UI component corresponding to the attribute information through the attribute type; wherein the UI component is pre-created according to each attribute type corresponding to each attribute information of the resource;

[0043] The loading module 204 is used to instantiate the matching UI component and load it into a preset property panel, so that the property panel displays the content corresponding to the UI component; wherein the content is used to edit the display model.

[0044] Further, the determining module 202 is specifically used for:

[0045] Determining the class to which the resource instance belongs;

[0046] Traversing the attributes defined by the class to determine the attribute information corresponding to the resource;

[0047] An attribute type corresponding to the attribute information is determined according to the attribute information.

[0048] Furthermore, the matching module 203 is specifically used for:

[0049] Determine a UI component corresponding to the attribute information according to the attribute type;

[0050] A binding relationship between the attribute type and the UI component is established.

[0051] Going further, pre-create UI components, including:

[0052] Acquire each attribute information of the resource and the attribute type corresponding to each attribute information; wherein the attribute type includes a string, a Boolean type, an integer type and / or a floating point type;

[0053] A UI component corresponding to the attribute information is created according to the attribute type of the attribute information.

[0054] Furthermore, the device of this specification is implemented based on the Unreal4 graphics rendering engine.

[0055] For the specific implementation of the device, please refer to the above description of the method, which will not be repeated here.

[0056] Based on the same concept, this specification also provides an electronic device, including: at least one processor and a memory, wherein the memory stores a program and is configured such that the at least one processor executes the above-mentioned method for dynamically generating a UI.

[0057] Based on the same concept, the present specification also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the above-mentioned method for dynamically generating a UI is implemented.

[0058] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0059] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0060] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0061] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0062] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0063] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0064] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0066] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0067] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0068] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0069] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0070] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0071] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0072] The above is only an embodiment of this specification and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for dynamically generating a UI, characterized in that: include: Obtain a resource instance; wherein the resource instance is obtained after instantiation of a resource, and the resource is a pre-created display model; Parsing the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information; Determining a UI component corresponding to the attribute information according to the attribute type; wherein the UI component is pre-created according to the exhaustively enumerated types of editable attributes of the resource; The proxy function class of the attribute type is instantiated using the proxy function processing template class, and the instantiated proxy function class is bound to the UI component; the value change and content display of the UI component correspond to calling the function in the proxy function template instance, and the function includes a parameter value setting function and a parameter value acquisition function; The UI component is instantiated and loaded into a preset property panel, so that the property panel displays content corresponding to the UI component; wherein the content is used to edit the display model.

2. The method according to claim 1, characterized in that The parsing of the resource instance to determine the attribute information corresponding to the resource instance and the attribute type corresponding to the attribute information specifically includes: Determining the class to which the resource instance belongs; Traversing the attributes defined by the class to which the resource instance belongs to determine the attribute information corresponding to the resource; An attribute type corresponding to the attribute information is determined according to the attribute information.

3. The method according to claim 1, characterized in that The method further comprises: Acquire each attribute information of the resource and the attribute type corresponding to each attribute information; wherein the attribute type includes a string, a Boolean type, an integer type and / or a floating point type; A UI component corresponding to the attribute information is created according to the attribute type of the attribute information.

4. The method according to any one of claims 1 to 3, characterized in that The method is implemented based on the Unreal4 graphics rendering engine.

5. A device for dynamically generating a UI, characterized in that: include: An acquisition module, the acquisition module is used to acquire a resource instance; wherein the resource instance is obtained after the resource is instantiated, and the resource is a pre-created display model; A determination module, the determination module is used to parse the resource instance to determine the attribute information corresponding to the resource and the attribute type corresponding to the attribute information; A matching module, the matching module is used to determine a UI component corresponding to the attribute information according to the attribute type; wherein the UI component is pre-created according to the exhaustively enumerated types of editable attributes of the resource; the proxy function class of the attribute type is instantiated using a proxy function processing template class, and the instantiated proxy function class is bound to the UI component; the value change and content display of the UI component correspond to calling a function in the proxy function template instance, the function including a parameter value setting function and a parameter value acquisition function; A loading module, wherein the loading module is used to instantiate the UI component and load it into a preset property panel, so that the property panel displays content corresponding to the UI component; wherein the content is used to edit the display model.

6. The device according to claim 5, characterized in that The determination module is specifically used for: Determining the class to which the resource instance belongs; Traversing the attributes defined by the class to which the resource instance belongs to determine the attribute information corresponding to the resource; An attribute type corresponding to the attribute information is determined according to the attribute information.

7. The device according to claim 5, characterized in that The device also includes a component creation module, and the component creation module is used to: Acquire each attribute information of the resource and the attribute type corresponding to each attribute information; wherein the attribute type includes a string, a Boolean type, an integer type and / or a floating point type; A UI component corresponding to the attribute information is created according to the attribute type of the attribute information.

8. The device according to any one of claims 5 to 7, characterized in that The device is implemented based on the Unreal4 graphics rendering engine.

9. An electronic device, characterized in that: include: At least one processor and a memory, wherein the memory stores a program and is configured to execute the method for dynamically generating a UI according to any one of claims 1 to 4 by the at least one processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method for dynamically generating a UI according to any one of claims 1 to 4 is implemented.