A method and device for processing game user interface resources

By loading the game user interface editing components in the game editor and switching the processing mode according to the operation, the problem of low efficiency in the game user interface resource replacement process is solved, and the technical effect of improving processing efficiency is achieved.

CN112156460BActive Publication Date: 2025-02-25BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011017902.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-24
Publication Date
2025-02-25
Estimated Expiration
2040-09-24

AI Technical Summary

Technical Problem

During the application project development process, due to personnel handover and resource management omissions, the replacement process of game user interface resources is inefficient, and the existing technology has not effectively solved this problem.

Method used

By loading the game user interface editing components in the game editor, manipulating the user interface resource objects, and switching to the user interface component specification mode or user interaction resource replacement mode according to the operation, batch processing of user interface resources.

Benefits of technology

It realizes the rapid processing of user interface resource objects, improves the processing efficiency of game user interface resources, and solves the problem of low processing efficiency in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112156460B_ABST
    Figure CN112156460B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for processing game user interface resources, wherein the method comprises: loading a game user interface editing component in a game editor; performing operations on user interface resource objects in a user interface resource database through the game user interface editing component; switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to the operations performed on the user interface resource objects; the game user interface editing component processes the user interface resource objects in the user interface component specification mode and / or the user interaction resource replacement mode, respectively. The present application solves the technical problem of low processing efficiency of game user interface resources in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method and device for processing game user interface resources. Background Art

[0002] During the application project development process, the user interface UI of the application project needs to be developed. During the project UI development process, due to inevitable personnel handovers, resource management omissions, design, specification or process changes, etc., the replacement process of UI resources in the project engineering may cause the same resource to be replaced multiple times due to different names, and the resource processing efficiency is extremely low.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a method and device for processing game user interface resources, so as to at least solve the technical problem of low processing efficiency of game user interface resources in related technologies.

[0005] According to one aspect of an embodiment of the present application, a method for processing game user interface resources is provided, comprising:

[0006] Loading a game user interface editing component in the game editor;

[0007] By means of the game user interface editing component, operations are performed on the user interface resource objects in the user interface resource database;

[0008] Switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to the operation performed on the user interface resource object;

[0009] The game user interface editing component processes the user interface resource objects in the user interface component specification mode and / or the user interaction resource replacement mode respectively.

[0010] Optionally, according to the operation performed on the user interface resource object, switching the game user interface editing component to the user interface component specification mode and / or the user interaction resource replacement mode includes:

[0011] determining operations to be performed on user interface resource objects in a user interface resource database;

[0012] In case the operation performed on the user interface resource object in the user interface resource database triggers a normalization function for the selected user interface resource object, switching the game user interface editing component to the user interface component normalization mode;

[0013] In the case where the operation performed on the user interface resource object in the user interface resource database triggers the resource replacement function of the user interface resource object, the game user interface editing component is switched to the user interaction resource replacement mode.

[0014] Optionally, the game user interface editing component processes the user interface resource object in the user interaction resource replacement mode including:

[0015] Displaying a resource replacement interface on the game user interface editing component;

[0016] Acquire the initial resource and target resource input on the resource replacement interface;

[0017] Searching the user interface resource database for a first object that references the initial resource;

[0018] The user interface resource referenced by the first object is replaced from the initial resource to the target resource.

[0019] Optionally, searching the user interface resource database for a first object that references the initial resource includes:

[0020] Call the resource database interface of the user interface;

[0021] Traversing the prefabricated bodies included in the user interface resource database from the resource database interface;

[0022] A target prefab that references the initial resource is searched from the prefabs included in the user interface resource database as the first object.

[0023] Optionally, replacing the user interface resource referenced by the first object from the initial resource to the target resource includes:

[0024] Release the reference relationship between the target prefab and the initial resource;

[0025] Specify the reference relationship between the target prefab and the target resource.

[0026] Optionally, after replacing the user interface resource referenced by the first object from the initial resource to the target resource, the method further includes:

[0027] Obtaining the resource color input on the resource replacement interface;

[0028] Colorizes the target resource to the resource color.

[0029] Optionally, searching the user interface resource database for a first object that references the initial resource includes:

[0030] Detecting a designated object in the user interface resource database on which a first selection operation has been performed;

[0031] In the case where the designated object is detected, searching the designated object for a second object that references the initial resource; replacing the user interface resource referenced by the second object from the initial resource to the target resource;

[0032] In the case that the designated object is not detected, searching the user interface resource database for a first object that references the initial resource.

[0033] Optionally, the game user interface editing component processes the user interface resource object in the user interface component specification mode including:

[0034] Selecting a user interface resource object from the user interface resource database;

[0035] Determine the component type of the user interface UI component included in the selected user interface resource object;

[0036] Displaying a style conversion interface on the game user interface editing component, and displaying a component style corresponding to the component type on the style conversion interface;

[0037] Selecting a target UI component from the UI components included in the selected UI resource object, and selecting a target component style from the component styles;

[0038] The component style of the target UI component is set to the target component style.

[0039] Optionally, displaying a component style corresponding to the component type on the style conversion interface includes:

[0040] In the case where the component type is a button type, displaying a pre-made button style on the style conversion interface;

[0041] In the case where the component type is a text type, displaying a pre-made text style on the style conversion interface;

[0042] In the case where the component type is an interface baseboard type, a pre-made interface baseboard style is displayed on the style conversion interface.

[0043] Optionally, before displaying the component style corresponding to the component type on the style conversion interface, the method further includes:

[0044] Performing a template making operation on the game user interface editing component;

[0045] In response to the template making operation, displaying a template making interface on the game user interface editing component;

[0046] Creating a target component style on the template creation interface, and specifying a target component type corresponding to the created target component style;

[0047] Stores the target component type and the target component style with corresponding relationship.

[0048] According to another aspect of an embodiment of the present application, a device for processing game user interface resources is also provided, including:

[0049] A loading module, used to load a game user interface editing component in the game editor;

[0050] A first execution module, used to perform operations on the user interface resource objects in the user interface resource database through the game user interface editing component;

[0051] A switching module, used to switch the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to an operation performed on the user interface resource object;

[0052] The processing module is used for the game user interface editing component to process the user interface resource object in the user interface component standard mode and / or the user interaction resource replacement mode respectively.

[0053] Optionally, the switching module includes:

[0054] A first determining unit, configured to determine an operation to be performed on a user interface resource object in a user interface resource database;

[0055] A first switching unit is used to switch the game user interface editing component to the user interface component standardization mode when the operation performed on the user interface resource object in the user interface resource database triggers the standardization function of the selected user interface resource object;

[0056] The second switching unit is used to switch the game user interface editing component to the user interaction resource replacement mode when the operation performed on the user interface resource object in the user interface resource database triggers the resource replacement function of the user interface resource object.

[0057] Optionally, the processing module includes:

[0058] A first display unit, configured to display a resource replacement interface on the game user interface editing component;

[0059] An acquisition unit, used for acquiring the initial resource and the target resource input on the resource replacement interface;

[0060] A searching unit, configured to search the user interface resource database for a first object that references the initial resource;

[0061] A replacement unit is used to replace the user interface resource referenced by the first object from the initial resource to the target resource.

[0062] Optionally, the searching unit is used for:

[0063] Call the resource database interface of the user interface;

[0064] Traversing the prefabricated bodies included in the user interface resource database from the resource database interface;

[0065] A target prefab that references the initial resource is searched from the prefabs included in the user interface resource database as the first object.

[0066] Optionally, the replacement unit is used to:

[0067] Release the reference relationship between the target prefab and the initial resource;

[0068] Specify the reference relationship between the target prefab and the target resource.

[0069] Optionally, the method further comprises:

[0070] an acquisition module, configured to acquire a resource color input on the resource replacement interface after replacing the user interface resource referenced by the first object from the initial resource to the target resource;

[0071] A coloring module is used to color the target resource into the resource color.

[0072] Optionally, the searching unit is used for:

[0073] Detecting a designated object in the user interface resource database on which a first selection operation has been performed;

[0074] In the case where the designated object is detected, searching the designated object for a second object that references the initial resource; replacing the user interface resource referenced by the second object from the initial resource to the target resource;

[0075] In the case that the designated object is not detected, searching the user interface resource database for a first object that references the initial resource.

[0076] Optionally, the processing module includes:

[0077] A first selection unit, configured to select a user interface resource object from the user interface resource database;

[0078] A second determining unit, used to determine a component type of a user interface UI component included in the selected user interface resource object;

[0079] A second display unit, used to display a style conversion interface on the game user interface editing component, and to display a component style corresponding to the component type on the style conversion interface;

[0080] A second selection unit is used to select a target UI component from the UI components included in the selected UI resource object, and select a target component style from the component styles;

[0081] A setting unit is used to set the component style of the target UI component to the target component style.

[0082] Optionally, the second display unit is used for:

[0083] In the case where the component type is a button type, displaying a pre-made button style on the style conversion interface;

[0084] In the case where the component type is a text type, displaying a pre-made text style on the style conversion interface;

[0085] In the case where the component type is an interface baseboard type, a pre-made interface baseboard style is displayed on the style conversion interface.

[0086] Optionally, the method further comprises:

[0087] A second execution module, configured to execute a template making operation on the game user interface editing component before displaying the component style corresponding to the component type on the style conversion interface;

[0088] A display module, for displaying a template making interface on the game user interface editing component in response to the template making operation;

[0089] A production module, used for producing a target component style on the template production interface, and specifying a target component type corresponding to the produced target component style;

[0090] The storage module is used to store target component types and target component styles having corresponding relationships.

[0091] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above method is executed when the program is run.

[0092] According to another aspect of an embodiment of the present application, an electronic device is further provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above method through the computer program.

[0093] In an embodiment of the present application, a game user interface editing component is loaded in a game editor; operations are performed on user interface resource objects in a user interface resource database through the game user interface editing component; according to the operations performed on the user interface resource objects, the game user interface editing component is switched to a user interface component specification mode and / or a user interaction resource replacement mode; the game user interface editing component processes user interface resource objects in the user interface component specification mode and / or the user interaction resource replacement mode respectively, and the game user interface is edited by loading the game user interface editing component in the game editor, and operations can be performed on user interface resource objects in a user interface resource database through the component, and the game user interface editing component is switched to different processing functions according to different operations, including a user interface component specification mode and a user interaction resource replacement mode, and different batch processing can be performed on user interface resource objects in different modes, and resources can be replaced in batches or components can be standardizedly configured in batches, so as to achieve the purpose of quickly processing user interface resource objects, thereby realizing the technical effect of improving the processing efficiency of game user interface resources, and thus solving the technical problem of low processing efficiency of game user interface resources in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0095] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0096] Figure 1 is a schematic diagram of a hardware environment of a method for processing game user interface resources according to an embodiment of the present application;

[0097] Figure 2 is a flowchart of an optional method for processing game user interface resources according to an embodiment of the present application;

[0098] Figure 3 is a schematic diagram of a resource replacement interface according to an embodiment of the present application;

[0099] Figure 4is a schematic diagram of a style conversion interface according to an embodiment of the present application;

[0100] Figure 5 is a schematic diagram of a text style according to an embodiment of the present application;

[0101] Figure 6 is a schematic diagram of an optional device for processing game user interface resources according to an embodiment of the present application;

[0102] Figure 7 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0104] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0105] According to one aspect of an embodiment of the present application, a method embodiment of processing game user interface resources is provided, which is applied to a user interface editor.

[0106] Optionally, in this embodiment, the above-mentioned method for processing game user interface resources can be applied to Figure 1 In the hardware environment composed of the terminal 101 and the server 103 shown in FIG. Figure 1As shown, the server 103 is connected to the terminal 101 through a network, and can be used to provide services (such as game services, application services, etc.) for the terminal or the client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 103. The above network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, etc. The processing method of the game user interface resources of the embodiment of the present application can be executed by the server 103, can also be executed by the terminal 101, and can also be executed by the server 103 and the terminal 101. Among them, the terminal 101 executes the processing method of the game user interface resources of the embodiment of the present application, and it can also be executed by the client installed thereon.

[0107] Figure 2 is a flowchart of an optional method for processing game user interface resources according to an embodiment of the present application, such as Figure 2 As shown, the method may include the following steps:

[0108] Step S202, loading a game user interface editing component in the game editor;

[0109] Step S204, performing operations on the user interface resource objects in the user interface resource database through the game user interface editing component;

[0110] Step S206, switching the game user interface editing component to a user interface component standardization mode and / or a user interaction resource replacement mode according to the operation performed on the user interface resource object;

[0111] Step S208: the game user interface editing component processes the user interface resource object in the user interface component specification mode and / or the user interaction resource replacement mode.

[0112] Through the above steps S202 to S208, the game user interface is edited by loading the game user interface editing component in the game editor. Through this component, operations can be performed on the user interface resource objects in the user interface resource database. According to different operations, the game user interface editing component is switched to different processing functions, including user interface component standardization mode and user interaction resource replacement mode. In different modes, different batch processing can be performed on the user interface resource objects, batch resource replacement or batch component standardization configuration, so as to achieve the purpose of quickly processing the user interface resource objects, thereby realizing the technical effect of improving the processing efficiency of the game user interface resources, and further solving the technical problem of low processing efficiency of the game user interface resources in the related technology.

[0113] In the technical solution provided in step S202, the game user interface editing component can be applied to, but not limited to, user interface development scenarios of various types of games. For example, the various types of games mentioned above can include, but are not limited to, web games, console games, mobile games, PC games, VR games, etc. The game user interface editing component can be installed in, but is not limited to, a game editor, such as the game engine Unity, etc.

[0114] Optionally, in this embodiment, the loading process of the game user interface editing component in the game editor may be, but is not limited to, by clicking an icon or triggering of the game user interface editing component in the game editor.

[0115] In the technical solution provided in step S204, the operations performed on the user interface resource objects in the user interface resource database may include but are not limited to: operations that trigger the normalization function of the selected user interface resource object, operations that trigger the resource replacement function of the user interface resource object, and the like, and various operations that can trigger various functions on the game user interface editing component.

[0116] In the technical solution provided in step S206, different operations performed on the user interface resource object can control the game user interface editing component to switch to different processing modes.

[0117] Optionally, in this embodiment, the user interface component specification mode and the user interaction resource replacement mode may be used separately or in combination.

[0118] As an optional embodiment, in the above step S206, the processing mode of the game user interface editing component may be switched in the following manner, but is not limited to:

[0119] S11, determining an operation to be performed on a user interface resource object in a user interface resource database;

[0120] S12, when the operation performed on the user interface resource object in the user interface resource database triggers a normalization function for the selected user interface resource object, switching the game user interface editing component to the user interface component normalization mode;

[0121] S13, when the operation performed on the user interface resource object in the user interface resource database triggers the resource replacement function of the user interface resource object, switching the game user interface editing component to the user interaction resource replacement mode.

[0122] Optionally, in this embodiment, determining the operation performed on the user interface resource object in the user interface resource database may be, but is not limited to, determining the operation type of the performed operation, and may also be determining the operation purpose and function of the performed operation.

[0123] Optionally, in this embodiment, if the executed operation triggers the normalization function of the selected user interface resource object, the interface is switched to the user interface component normalization mode interface, and if the executed operation triggers the resource replacement function of the user interface resource object, the interface is switched to the user interaction resource replacement mode interface. If the above two functions are triggered at the same time, the interface is switched to an interface that can complete the above two functions at the same time.

[0124] In the technical solution provided in step S208, the user interface resource object can be processed for component normalization in the user interface component normalization mode, and the user interface resource object can be processed for user interaction resource replacement in the user interaction resource replacement mode.

[0125] As an optional embodiment, in the above step S208, the game user interface editing component processes the user interface resource object in the user interaction resource replacement mode including:

[0126] S21, displaying a resource replacement interface on the game user interface editing component;

[0127] S22, obtaining the initial resource and target resource input on the resource replacement interface;

[0128] S23, searching the user interface resource database for a first object that references the initial resource;

[0129] S24: Replace the user interface resource referenced by the first object from the initial resource to the target resource.

[0130] In the above step S22, the initial resource and the target resource may be, but are not limited to, various types of UI resources, such as picture resources, text resources, video resources, and the like.

[0131] Optionally, in this embodiment, the user can specify the initial resource and the target resource on the resource replacement interface. The way of inputting the initial resource and the target resource may include but is not limited to: text input, selection from resource options, specifying the storage path of the resource, dragging operation, etc.

[0132] Figure 3 is a schematic diagram of a resource replacement interface according to an embodiment of the present application, such as Figure 3 As shown, the user can enter the original resource in the error resource and the target resource in the replacement resource.

[0133] In step S23, an object to which the initial resource is applied is searched from all components included in the user interface resource database as the first object for resource replacement processing.

[0134] In the above step S23, the first object referencing the initial resource may be found in the following manner, but is not limited to:

[0135] S31, calling the resource database interface of the user interface;

[0136] S32, traversing the prefabricated bodies included in the user interface resource database from the resource database interface;

[0137] S33: Search the prefabricated bodies included in the user interface resource database for a target prefabricated body that references the initial resource as the first object.

[0138] Optionally, in this embodiment, the resource database interface may be, but is not limited to, the AssetDatabase class. The first object may be, but is not limited to, a target prefab that references the initial resource. The game user interface editing component calls the AssetDatabase class to traverse all prefabs and perform resource replacement processing on the target prefabs that reference the initial resource.

[0139] In the above step S23, the first object referencing the initial resource may also be searched in the following manner, but is not limited to:

[0140] S41, detecting a designated object on which a first selection operation has been performed in the user interface resource database;

[0141] S42, when the designated object is detected, searching the designated object for a second object that references the initial resource; replacing the user interface resource referenced by the second object from the initial resource to the target resource;

[0142] S43: When the designated object is not detected, searching the user interface resource database for a first object that references the initial resource.

[0143] Optionally, in this embodiment, in the user interaction resource replacement mode, the batch replacement mode and the designated replacement mode can be switched. If a designated object on which the first selection operation is performed is detected on the user interface, the designated replacement mode is entered, and the second object referencing the initial resource is searched from the designated object, and the user interaction resource referenced by the second object is replaced from the initial resource to the target resource. If the designated object is not detected, the batch replacement mode is entered, and the first object referencing the initial resource is searched from all components included in the user interface resource database, and the user interaction resource referenced by the first object is replaced from the initial resource to the target resource.

[0144] Optionally, in this embodiment, the resource replacement interface displayed in the batch replacement mode and the specified replacement mode may be different, for example: Figure 3 The resource replacement interface shown may be a resource replacement interface in a batch replacement mode, in which a prompt message “You have not selected any object and are in a batch replacement mode” is displayed.

[0145] Optionally, in this embodiment, a "batch replace" button may be displayed on the resource replacement interface in batch replacement mode, and when it is detected that the user clicks the batch replace button, the game user interface editing component may perform a batch replacement operation according to the information input by the user on the resource replacement interface. A "start replacement" button may be displayed on the resource replacement interface in designated replacement mode, and when it is detected that the user clicks the start replacement button, the game user interface editing component may perform a designated replacement operation according to the information input by the user on the resource replacement interface.

[0146] In step S24, the resource replacement process may include but is not limited to specifying various replacement rules, such as: directly replacing the resource each time a first object is found, or replacing the resources one by one after all the first objects are found, etc. For example: in the process of traversing the prefab UIprefab included in the user interface resource database, if the image component in the current UIprefab is the initial resource, then a new image (i.e., the target resource) is re-specified for reference to complete the replacement.

[0147] In the above step S24, the user interaction resource may be replaced in the following manners, but is not limited to:

[0148] S51, releasing the reference relationship between the target prefab and the initial resource;

[0149] S52: Specify a reference relationship between the target prefab and the target resource.

[0150] Optionally, in this embodiment, all prefabs (Prefabs) that reference the resources to be replaced (i.e., the initial resources) are found through the AssetDatabase class, the resources associated with the prefabs are directly replaced, the original reference relationship (i.e., the reference relationship between the target prefab and the initial resource) is released, and the correct reference relationship (i.e., the reference relationship between the target prefab and the target resource) is automatically reassigned, thereby not causing the loss of resource association.

[0151] As an optional embodiment, after the above step S24, the method further includes:

[0152] S61, obtaining the resource color input on the resource replacement interface;

[0153] S62, coloring the target resource into the resource color.

[0154] Optionally, in this embodiment, the game user interface editing component can directly color the resources to be replaced at the same time, so that the UI resources can be better reused. In UI production, it is often the case that the same image resource is displayed in different colors in the interface. For example, the artist hopes that a Tips bottom frame has a blue tendency in a blue environment and a brown tendency in a yellow environment. When the UI designer designs the interface, multiple colors of bottom frames are output according to the harmony of the interface color matching. In order to restore the effect, the planner directly adds these resources to the project. The shapes of these bottom frames and the replacement methods of the resources are the same, with only differences in color. Therefore, in the later resource cleaning and optimization process, the above-mentioned game user interface editing component can be used to replace such resources in batches, and only one image resource is used for reuse through the coloring function, and other unnecessary resources are deleted.

[0155] Optionally, in this embodiment, the coloring function can be set through the "resource color" item displayed on the resource replacement interface, and the replaced target resource can be directly colored during the replacement process. Figure 3 On the resource replacement interface shown, the user can input or select a specified resource color in the resource color input box, and the game user interface editing component can perform corresponding coloring processing on the replaced target resource according to the user's settings.

[0156] Optionally, in this embodiment, the calculation method of the coloring process can be to multiply the coloring parameter (i.e., resource color) set by the user interface editor by the inherent color of the resource image. In addition to the color values ​​of the three RGB channels participating in the calculation, the transparency of the image can also be adjusted at the same time, that is, the parameters of the Alpha channel. If the "resource color" is white, that is, the parameters of the four RGBA channels are (1,1,1,1), it means that the inherent color of the "target resource" is used when replacing.

[0157] As an optional embodiment, in the above step S208, the game user interface editing component processes the user interface resource object in the user interface component specification mode including:

[0158] S71, selecting a user interface resource object from the user interface resource database;

[0159] S72, determining the component type of the user interface UI component included in the selected user interface resource object;

[0160] S73, displaying a style conversion interface on the game user interface editing component, and displaying a component style corresponding to the component type on the style conversion interface;

[0161] S74, selecting a target UI component from the user interface UI components included in the selected user interface resource object, and selecting a target component style from the component styles;

[0162] S75: Set the component style of the target UI component to the target component style.

[0163] Optionally, in this embodiment, the hierarchical structure of the user interface may be, but is not limited to, a hierarchy.

[0164] Optionally, in this embodiment, the game user interface editing component also provides a function of normalizing UI components with one click. When the game user interface editing component detects that a user interface resource object is selected in the hierarchy, the display interface jumps to the style conversion interface, and displays selectable component styles on the style conversion interface according to the component type of the user interface UI component included in the selected user interface resource object.

[0165] Optionally, in this embodiment, the game user interface editing component can set standardized styles for various types of UI components. For example, the above component types may include, but are not limited to, button types (button components), text types (text components), interface base types, and the like.

[0166] Optionally, in this embodiment, the game user interface editing component detects the component attached to the currently selected user interface resource object and provides corresponding standard options. Some components are mutually exclusive, and some components are compatible. As long as the rules are set, standardization can be performed with one click. The game user interface editing component can also traverse the subcomponents of a component to perform standard settings. For example, if there is text on a button, the game user interface editing component can modify the click effect on the button and then enter the subcomponent to modify the style of the text on the button.

[0167] Take the button type UI component as an example. Figure 4 This is a schematic diagram of a style conversion interface according to an embodiment of the present application. The style conversion interface displays components included in the selectable hierarchy (four buttons) and four component styles corresponding to button-type components (a large blue button, a small blue button, a large yellow button, and a small yellow button). If the first button of the four buttons is clicked, the first button is used as the target UI component. If the large blue button of the four component styles is clicked, the component style of the large blue button is used as the target component style, and the component style of the first button is set to the large blue button.

[0168] As an optional embodiment, displaying the component style corresponding to the component type on the style conversion interface includes:

[0169] S81, when the component type is a button type, displaying a pre-made button style on the style conversion interface;

[0170] S82, when the component type is a text type, displaying a pre-made text style on the style conversion interface;

[0171] S83, when the component type is an interface baseboard type, displaying a pre-made interface baseboard style on the style conversion interface.

[0172] Optionally, in this embodiment, when the object in the selected hierarchy contains a button component (i.e., a button type), a button specification option is displayed on the style conversion interface, and the object can be standardized into a certain button style; when the selected object contains a text component (i.e., a text type), a text class option is displayed on the style conversion interface, and the object can be standardized into a certain type of preset font; when the selected object contains an interface baseboard component, an interface baseboard class option is displayed on the style conversion interface, and the object can be standardized into a certain type of preset interface baseboard. For example: Figure 5 is a schematic diagram of a text style according to an embodiment of the present application, such as Figure 5 As shown, the text styles may include but are not limited to: large title style, dark blue content style, light blue content style, input box prompt style, coffee shop brown font style, etc. The name of the text style and the style number (for example, the style number of the light blue content style is 3c70dcff) and other information may be displayed on the style conversion interface.

[0173] As an optional embodiment, before displaying the component style corresponding to the component type on the style conversion interface, the method further includes:

[0174] S91, performing a template making operation on the game user interface editing component;

[0175] S92, in response to the template making operation, displaying a template making interface on the game user interface editing component;

[0176] S93, creating a target component style on the template creation interface, and specifying a target component type corresponding to the created target component style;

[0177] S94, storing the target component type and the target component style having a corresponding relationship.

[0178] Optionally, in this embodiment, before the component is standardized, the style template of the component can also be made through the game user interface editing component, and the corresponding icon or button can be displayed on the game user interface editing component to trigger the template making function.

[0179] Optionally, in this embodiment, the template making interface may provide, but is not limited to, various template making materials for the user to select and match, so as to obtain a target component style that meets the user's needs.

[0180] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for an electronic device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0182] According to another aspect of an embodiment of the present application, a device for processing game user interface resources for implementing the above-mentioned method for processing game user interface resources is also provided, which is applied to a user interface editor. Figure 6 is a schematic diagram of an optional device for processing game user interface resources according to an embodiment of the present application, such as Figure 6As shown, the device may include:

[0183] A loading module 62, used for loading a game user interface editing component in the game editor;

[0184] A first execution module 64, configured to execute operations on user interface resource objects in a user interface resource database through the game user interface editing component;

[0185] A switching module 66, for switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to the operation performed on the user interface resource object;

[0186] The processing module 68 is used for the game user interface editing component to process the user interface resource object in the user interface component specification mode and / or the user interaction resource replacement mode respectively.

[0187] It should be noted that the loading module 62 in this embodiment can be used to execute step S202 in the embodiment of the present application, the first execution module 64 in this embodiment can be used to execute step S204 in the embodiment of the present application, the switching module 66 in this embodiment can be used to execute step S206 in the embodiment of the present application, and the processing module 68 in this embodiment can be used to execute step S208 in the embodiment of the present application.

[0188] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware.

[0189] Through the above-mentioned module, the game user interface is edited by loading the game user interface editing component in the game editor. Through this component, operations can be performed on the user interface resource objects in the user interface resource database. According to different operations, the game user interface editing component is switched to different processing functions, including user interface component standardization mode and user interaction resource replacement mode. In different modes, different batch processing can be performed on the user interface resource objects, batch resource replacement or batch component standardization configuration, so as to achieve the purpose of quickly processing the user interface resource objects, thereby realizing the technical effect of improving the processing efficiency of the game user interface resources, and then solving the technical problem of low processing efficiency of the game user interface resources in the related technology.

[0190] As an optional embodiment, the switching module includes:

[0191] A first determining unit, configured to determine an operation to be performed on a user interface resource object in a user interface resource database;

[0192] A first switching unit is used to switch the game user interface editing component to the user interface component standardization mode when the operation performed on the user interface resource object in the user interface resource database triggers the standardization function of the selected user interface resource object;

[0193] The second switching unit is used to switch the game user interface editing component to the user interaction resource replacement mode when the operation performed on the user interface resource object in the user interface resource database triggers the resource replacement function of the user interface resource object.

[0194] As an optional embodiment, the processing module includes:

[0195] A first display unit, configured to display a resource replacement interface on the game user interface editing component;

[0196] An acquisition unit, used for acquiring the initial resource and the target resource input on the resource replacement interface;

[0197] A searching unit, configured to search the user interface resource database for a first object that references the initial resource;

[0198] A replacement unit is used to replace the user interface resource referenced by the first object from the initial resource to the target resource.

[0199] As an optional embodiment, the searching unit is used for:

[0200] Call the resource database interface of the user interface;

[0201] Traversing the prefabricated bodies included in the user interface resource database from the resource database interface;

[0202] A target prefab that references the initial resource is searched from the prefabs included in the user interface resource database as the first object.

[0203] As an optional embodiment, the replacement unit is used for:

[0204] Release the reference relationship between the target prefab and the initial resource;

[0205] Specify the reference relationship between the target prefab and the target resource.

[0206] As an optional embodiment, the method further includes:

[0207] an acquisition module, configured to acquire a resource color input on the resource replacement interface after replacing the user interface resource referenced by the first object from the initial resource to the target resource;

[0208] A coloring module is used to color the target resource into the resource color.

[0209] As an optional embodiment, the searching unit is used for:

[0210] Detecting a designated object in the user interface resource database on which a first selection operation has been performed;

[0211] In the case where the designated object is detected, searching the designated object for a second object that references the initial resource; replacing the user interface resource referenced by the second object from the initial resource to the target resource;

[0212] In the case that the designated object is not detected, searching the user interface resource database for a first object that references the initial resource.

[0213] As an optional embodiment, the processing module includes:

[0214] A first selection unit, configured to select a user interface resource object from the user interface resource database;

[0215] A second determining unit, used to determine a component type of a user interface UI component included in the selected user interface resource object;

[0216] A second display unit, used to display a style conversion interface on the game user interface editing component, and to display a component style corresponding to the component type on the style conversion interface;

[0217] A second selection unit is used to select a target UI component from the UI components included in the selected UI resource object, and select a target component style from the component styles;

[0218] A setting unit is used to set the component style of the target UI component to the target component style.

[0219] As an optional embodiment, the second display unit is used for:

[0220] In the case where the component type is a button type, displaying a pre-made button style on the style conversion interface;

[0221] In the case where the component type is a text type, displaying a pre-made text style on the style conversion interface;

[0222] In the case where the component type is an interface baseboard type, a pre-made interface baseboard style is displayed on the style conversion interface.

[0223] As an optional embodiment, the method further includes:

[0224] A second execution module, configured to execute a template making operation on the game user interface editing component before displaying the component style corresponding to the component type on the style conversion interface;

[0225] A display module, for displaying a template making interface on the game user interface editing component in response to the template making operation;

[0226] A production module, used for producing a target component style on the template production interface, and specifying a target component type corresponding to the produced target component style;

[0227] The storage module is used to store target component types and target component styles having corresponding relationships.

[0228] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0229] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned method for processing game user interface resources is also provided.

[0230] Figure 7 is a structural block diagram of an electronic device according to an embodiment of the present application, such as Figure 7 As shown, the electronic device may include: one or more (only one is shown in the figure) processors 701, a memory 703, and a transmission device 705, such as Figure 7 As shown, the electronic device may further include an input / output device 707 .

[0231] Among them, the memory 703 can be used to store software programs and modules, such as the program instructions / modules corresponding to the processing method and device of the game user interface resources in the embodiment of the present application. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 703, that is, realizing the above-mentioned processing method of the game user interface resources. The memory 703 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 703 may further include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0232] The above-mentioned transmission device 705 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 705 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 705 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0233] Specifically, the memory 703 is used to store application programs.

[0234] The processor 701 may call the application stored in the memory 703 through the transmission device 705 to perform the following steps:

[0235] Loading a game user interface editing component in the game editor;

[0236] By means of the game user interface editing component, operations are performed on the user interface resource objects in the user interface resource database;

[0237] Switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to the operation performed on the user interface resource object;

[0238] The game user interface editing component processes the user interface resource objects in the user interface component specification mode and / or the user interaction resource replacement mode respectively.

[0239] By adopting the embodiment of the present application, a solution for processing game user interface resources is provided. The game user interface is edited by loading a game user interface editing component in a game editor, and the component can be used to perform operations on user interface resource objects in a user interface resource database. According to different operations, the game user interface editing component is switched to different processing functions, including a user interface component standardization mode and a user interaction resource replacement mode. In different modes, different batch processing can be performed on user interface resource objects, and resources can be replaced in batches or components can be configured in a standardized manner in batches, so as to achieve the purpose of quickly processing user interface resource objects, thereby achieving the technical effect of improving the processing efficiency of game user interface resources, and further solving the technical problem of low processing efficiency of game user interface resources in related technologies.

[0240] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0241] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only, and the electronic device may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other electronic devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations are shown.

[0242] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the electronic device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0243] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to execute the program code of the method for processing game user interface resources.

[0244] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0245] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0246] Loading a game user interface editing component in the game editor;

[0247] By means of the game user interface editing component, operations are performed on the user interface resource objects in the user interface resource database;

[0248] Switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to the operation performed on the user interface resource object;

[0249] The game user interface editing component processes the user interface resource objects in the user interface component specification mode and / or the user interaction resource replacement mode respectively.

[0250] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0251] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0252] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0253] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0254] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0255] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0256] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0257] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0258] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing game user interface resources, comprising: Loading a game user interface editing component in a game editor, wherein the game editor includes a game engine Unity; By means of the game user interface editing component, operations are performed on the user interface resource objects in the user interface resource database; Switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to the operation performed on the user interface resource object; The game user interface editing component processes the user interface resource object in the user interface component specification mode and / or the user interaction resource replacement mode respectively; The game user interface editing component processes the user interface resource object in the user interaction resource replacement mode including: Displaying a resource replacement interface on the game user interface editing component; Acquire the initial resource and target resource input on the resource replacement interface; Searching the user interface resource database for a first object that references the initial resource; Replacing the user interface resource referenced by the first object from the initial resource to the target resource; Wherein, searching the user interface resource database for the first object that references the initial resource includes: Call the resource database interface of the user interface, the resource database interface is the AssetDatabase class; Traversing the prefabricated bodies included in the user interface resource database from the resource database interface; Searching for a target prefab that references the initial resource from the prefabs included in the user interface resource database as the first object; The game user interface editing component processes the user interface resource object in the user interface component specification mode including: Selecting a user interface resource object from the user interface resource database; Determine the component type of the user interface UI component included in the selected user interface resource object, wherein the component type includes a button type, a text type and an interface base plate type; Displaying a style conversion interface on the game user interface editing component, and displaying a component style corresponding to the component type on the style conversion interface; Selecting a target UI component from the UI components included in the selected UI resource object, and selecting a target component style from the component styles; The component style of the target UI component is set to the target component style.

2. The method according to claim 1, characterized in that Switching the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to an operation performed on the user interface resource object includes: determining operations to be performed on user interface resource objects in a user interface resource database; In the case where the operation performed on the user interface resource object in the user interface resource database triggers a normalization function for the selected user interface resource object, switching the game user interface editing component to the user interface component normalization mode; In the case where the operation performed on the user interface resource object in the user interface resource database triggers the resource replacement function of the user interface resource object, the game user interface editing component is switched to the user interaction resource replacement mode.

3. The method according to claim 1, characterized in that: Replacing the user interface resource referenced by the first object from the initial resource to the target resource includes: Release the reference relationship between the target prefab and the initial resource; Specify the reference relationship between the target prefab and the target resource.

4. The method according to claim 1, characterized in that After replacing the user interface resource referenced by the first object from the initial resource to the target resource, the method further includes: Obtaining the resource color input on the resource replacement interface; Colorizes the target resource to the resource color.

5. The method according to claim 1, characterized in that Searching the user interface resource database for a first object that references the initial resource includes: Detecting a designated object in the user interface resource database on which a first selection operation has been performed; In the case where the designated object is detected, searching the designated object for a second object that references the initial resource; replacing the user interface resource referenced by the second object from the initial resource to the target resource; In the case that the designated object is not detected, searching the user interface resource database for a first object that references the initial resource.

6. The method according to claim 1, characterized in that The component style corresponding to the component type displayed on the style conversion interface includes: In the case where the component type is a button type, displaying a pre-made button style on the style conversion interface; In the case where the component type is a text type, displaying a pre-made text style on the style conversion interface; In the case where the component type is an interface baseboard type, a pre-made interface baseboard style is displayed on the style conversion interface.

7. The method according to claim 1, characterized in that Before displaying the component style corresponding to the component type on the style conversion interface, the method further includes: Performing a template making operation on the game user interface editing component; In response to the template making operation, displaying a template making interface on the game user interface editing component; Creating a target component style on the template creation interface, and specifying a target component type corresponding to the created target component style; Stores the target component type and the target component style with corresponding relationship.

8. A device for processing game user interface resources, characterized in that: include: A loading module, used for loading a game user interface editing component in a game editor, wherein the game editor includes a game engine Unity; A first execution module, used to perform operations on the user interface resource objects in the user interface resource database through the game user interface editing component; A switching module, used to switch the game user interface editing component to a user interface component specification mode and / or a user interaction resource replacement mode according to an operation performed on the user interface resource object; A processing module, used for the game user interface editing component to process the user interface resource object in the user interface component specification mode and / or the user interaction resource replacement mode respectively; Wherein, the processing module includes: A first display unit, configured to display a resource replacement interface on the game user interface editing component; An acquisition unit, used for acquiring the initial resource and the target resource input on the resource replacement interface; A searching unit, configured to search the user interface resource database for a first object that references the initial resource; a replacement unit, configured to replace the user interface resource referenced by the first object from the initial resource to the target resource; Wherein, the searching unit is specifically used for: Call the resource database interface of the user interface, the resource database interface is the AssetDatabase class; Traversing the prefabricated bodies included in the user interface resource database from the resource database interface; Searching for a target prefab that references the initial resource from the prefabs included in the user interface resource database as the first object; Wherein, the processing module includes: A first selection unit, configured to select a user interface resource object from the user interface resource database; A second determining unit is used to determine a component type of a user interface UI component included in the selected user interface resource object, wherein the component type includes a button type, a text type and an interface base plate type; A second display unit, used to display a style conversion interface on the game user interface editing component, and to display a component style corresponding to the component type on the style conversion interface; A second selection unit is used to select a target UI component from the UI components included in the selected UI resource object, and select a target component style from the component styles; A setting unit is used to set the component style of the target UI component to the target component style.

9. The device according to claim 8, characterized in that The switching module comprises: A first determining unit, configured to determine an operation to be performed on a user interface resource object in a user interface resource database; A first switching unit is used to switch the game user interface editing component to the user interface component standardization mode when the operation performed on the user interface resource object in the user interface resource database triggers the standardization function of the selected user interface resource object; The second switching unit is used to switch the game user interface editing component to the user interaction resource replacement mode when the operation performed on the user interface resource object in the user interface resource database triggers the resource replacement function of the user interface resource object.

10. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the method described in any one of claims 1 to 7 through the computer program.