A method and device for automatically renaming UE assets
By presenting the interactive page to the user before asset import, users are allowed to choose whether to interfere with the asset import pipeline and select the matching mode for automatic renaming, the problems of cumbersome, chaotic and inefficient asset naming in the existing technology are solved, and the automated renaming of UE assets is realized, reducing manual maintenance costs and ensuring the consistency of project specifications.
Patent Information
- Application Number
- CN202210763924.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-06-29
AI Technical Summary
In the prior art, asset naming is complicated, chaotic, inefficient and inconsistent, and it is impossible to achieve automated processing, resulting in inconsistent project specifications and a waste of manpower and time.
By presenting the interactive page to the user before asset import, users are allowed to choose whether to interfere with the asset import pipeline and select the matching mode for automatic renaming, and realize automatic renaming of assets.
Automatic renaming of UE assets is realized, the cost of manually maintaining asset naming is reduced, and the specification requirements for asset naming in project management is met, and the possible omissions in manual asset selection are avoided, ensuring the consistency of project specifications.
Smart Images

Figure CN115268981B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method and device for automatically renaming UE assets. Background Art
[0002] For large-scale Unreal projects, asset management needs to be convenient, fast, efficient, easy to maintain, unified and intuitive, and in line with the requirements of modern engineering management.
[0003] Asset naming is a tedious, messy, inefficient and uncoordinated task in asset management. The existing asset renaming methods on the market have the following defects:
[0004] (1) Assets need to be manually selected, which may result in omissions and inconsistent project specifications;
[0005] (2) You can only use pre-made patterns to name assets. You cannot customize the matching pattern or manually switch between different matching patterns.
[0006] (3) Although batch processing is possible, it is done manually based on a prefabricated model after the asset is imported, and automated processing cannot be achieved. Human intervention is required, wasting manpower and time. Summary of the invention
[0007] The purpose of the present invention is to provide a method and device for automatically renaming UE assets, which can solve one or more of the above-mentioned problems in the prior art.
[0008] According to a first aspect of the present invention, a method for automatically renaming UE assets is provided, comprising the following steps:
[0009] After detecting that the user performs an asset import operation, displaying a first interactive page to the user before the asset import;
[0010] Receive the instruction triggered by the user in the first interactive page, and determine whether it is necessary to intervene in the asset import pipeline;
[0011] If there is no need to intervene in the asset import pipeline, only the asset import is performed;
[0012] If intervention in the asset import pipeline is required, a second interactive page is displayed to the user. The second interactive page has several matching patterns preset on it. Each matching pattern includes an asset type and a pattern string corresponding to the asset type.
[0013] Receiving a command triggered by the user in the second interactive page, and determining whether automatic renaming needs to be performed;
[0014] If automatic renaming is not required, only asset import is performed;
[0015] If automatic renaming is required, the asset import is performed and the imported assets are renamed according to the selected matching pattern.
[0016] In a possible implementation, when automatic renaming is required, asset import is executed, and the imported asset is renamed according to the selected matching pattern, including:
[0017] Add the assets to be imported into the automatic renaming management queue;
[0018] Import the assets in the automatic rename management queue and rename them in the next frame according to the selected matching mode.
[0019] In a possible implementation, renaming the asset added to the automatic rename management queue in the next frame according to the selected matching mode includes:
[0020] Get the asset type of the asset to be renamed;
[0021] Get the mode string of the current asset type;
[0022] Based on the pattern string corresponding to the current asset type, rename the current asset to be renamed to obtain the corresponding new asset name.
[0023] In a possible implementation, when automatic renaming is required, asset import is executed, and the imported asset is renamed according to the selected matching pattern, including:
[0024] Synchronize asset import operations in the asset import pipeline with asset renaming operations based on the selected matching pattern.
[0025] According to a second aspect of the present invention, there is provided a device for automatically renaming a UE asset, which is used to implement any of the above methods for automatically renaming a UE asset, including:
[0026] A first interactive page module, for displaying a first interactive page to the user before the asset import when detecting that the user has performed an asset import operation, wherein the first interactive page includes an option for the user to select whether to intervene in the asset import pipeline;
[0027] A second interactive page module, for displaying a second interactive page to the user after receiving an instruction selected by the user that requires intervention in the asset import pipeline, wherein the second interactive page is preset with a plurality of matching patterns, each matching pattern including an asset type and a pattern string corresponding to the asset type;
[0028] The automatic renaming module is used to execute asset import after receiving an instruction selected by the user to execute automatic renaming, and rename the imported assets according to the selected matching pattern.
[0029] The native asset import module is used to perform asset import after receiving an instruction selected by the user that does not require intervention in the asset import pipeline, or to perform asset import after receiving an instruction selected by the user that does not require automatic renaming.
[0030] In a possible implementation, the automatic renaming module includes:
[0031] Automatic rename management queue, used to manage the imported assets that need to be renamed;
[0032] The asset import submodule is used to import the automatic renaming management queue;
[0033] The rename submodule is used to rename the assets added to the automatic rename management queue in the next frame according to the selected matching mode.
[0034] In a possible implementation, renaming the submodule includes:
[0035] An asset type acquisition unit, used to acquire the asset type of the asset to be renamed;
[0036] A pattern string acquisition unit is used to acquire the pattern string of the current asset type;
[0037] The renaming unit is used to rename the current asset to be renamed based on the pattern string corresponding to the current asset type to obtain the corresponding new asset name.
[0038] In a possible implementation, the automatic renaming module includes:
[0039] The asset import submodule is used to import assets after receiving the user's selected instruction to perform automatic renaming;
[0040] The rename submodule is used to rename the imported assets synchronously according to the selected matching mode while the assets are being imported.
[0041] According to a third aspect of the present invention, a device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program or an instruction set is loaded and executed by the processor to implement any of the above methods for automatically renaming UE assets.
[0042] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the method for automatic renaming of UE assets of any one of the above items of the present invention.
[0043] The method and device for automatically renaming UE assets provided by the present invention pre-sets a plurality of matching modes including the correspondence between asset types and string modes, and allows the user to make a selection through an interactive page after receiving an asset import instruction and before the asset import begins, so that the imported assets can be automatically renamed according to the matching mode selected by the user, thereby realizing automatic renaming of UE assets, reducing the cost of manually maintaining asset naming, and meeting the standard requirements of project management for asset naming; associated assets do not need to be manually selected, avoiding omissions that may occur in manually selecting assets, and ensuring the consistency of project specifications; matching modes can be customized and switched, avoiding the need to name assets using only pre-made modes, and solving the contradiction that different import processes and different asset types in the project require different matching modes.
[0044] In addition, in the technical solution of the present invention, unless otherwise specified, the technical solution can be implemented by adopting conventional means in the art. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A flowchart of a method for automatically renaming UE assets provided in Embodiment 1 of the present invention.
[0047] Figure 2 A flowchart of a method for automatically renaming UE assets provided in Embodiment 2 of the present invention.
[0048] Figure 3 A flowchart of a method for automatically renaming UE assets provided in Embodiment 3 of the present invention.
[0049] Figure 4 This is a structural block diagram of the device for automatically renaming UE assets provided in Embodiment 4 of the present invention.
[0050] Figure 5 A schematic diagram of the structure of a device for executing a method for automatically renaming UE assets provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0051] The terms "first", "second", etc. in the present specification and claims are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes 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, systems, products or devices.
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Embodiment 1:
[0054] Reference Manual Attached Figure 1 The embodiment of the present invention provides a method for automatically renaming UE assets, the method comprising the following steps:
[0055] Step 101: After detecting that a user performs an asset import operation, a first interactive page is displayed to the user before the asset import.
[0056] Specifically, when it is detected that the user is importing assets, a first interactive page is displayed to the user before the asset import begins. Options can be set on the first interactive page for the user to choose from. The first interactive page should include at least two options: intervening in the asset import pipeline and not intervening in the asset import pipeline.
[0057] Step 102: Receive the instruction triggered by the user in the first interactive page, and determine whether it is necessary to intervene in the asset import pipeline; if it is necessary to intervene in the asset import pipeline, execute step 103; if it is not necessary to intervene in the asset import pipeline, execute step 105.
[0058] Specifically, an instruction triggered when the user makes a selection in the first interactive page is received, and it is determined whether the asset import pipeline needs to be intervened according to the user's selection.
[0059] Step 103: Display a second interactive page to the user. The second interactive page has a plurality of matching patterns preset on it. Each matching pattern includes an asset type and a pattern string corresponding to the asset type.
[0060] Specifically, when the user chooses to intervene in the asset import pipeline, the second interactive page is displayed to the user. The second interactive page should contain at least one renaming matching pattern. The matching pattern is a pre-set renaming matching pattern that conforms to the project naming specification. Different project specifications correspond to different matching patterns. Each matching pattern should include at least one or more different asset types and their corresponding pattern strings. The pattern string refers to a metastring used for renaming pattern matching. In an optional embodiment, a regular expression can be selected to represent the pattern string, such as using characters such as %, $, ., [, ], 0-9, az, AZ to form a pattern string. As a result, the cost of understanding the project is reduced, development efficiency is improved, and the efficiency of automated renaming is improved.
[0061] At the same time, since more than one matching mode is set on the second interactive page, and each matching mode corresponds to different project specifications, users can customize and manually switch matching modes through operations on the second interactive page, avoiding the need to use only a pre-made single mode to name assets, and solving the contradiction that different import processes and different asset types in the project require different matching modes.
[0062] Step 104: receiving the instruction triggered by the user in the second interactive page, and determining whether automatic renaming needs to be performed. If automatic renaming needs to be performed, executing step 106; if automatic renaming does not need to be performed, executing step 105.
[0063] Specifically, the user may not select a matching mode, may select a single matching mode, or may select multiple matching modes on the second interactive page. When receiving an instruction triggered by the user's operation on the second interactive page, it is determined whether the current import pipeline needs to perform automatic renaming according to the instruction triggered by the user.
[0064] Step 105: Only perform asset import.
[0065] Specifically, when the user selects the option of not interfering with the asset import pipeline, only the asset import is performed without any other operations. At this time, the imported assets will not be renamed.
[0066] Step 106: Execute asset import and rename the imported assets according to the selected matching mode.
[0067] When the user selects at least one matching mode in the second interactive page, it indicates that the asset to be imported needs to be renamed, so the asset needs to be imported and renamed according to the matching mode selected by the user.
[0068] When the user does not select any matching mode in the second interactive page, it means that the assets to be imported do not need to be renamed, so the assets are only imported.
[0069] The technical solution of the embodiment of the present invention provides a method for automatically renaming UE assets. After receiving the asset import instruction, the method allows the user to select whether to rename the asset and the matching mode to rename the asset in the form of an interactive page, so that the imported assets can be automatically renamed according to the matching mode selected by the user, so that there is no need to perform secondary processing on the asset name after the asset is imported. At the same time, the asset file does not need to execute strict naming constraints during the creation process, thereby ensuring the fluency of creation, reducing the cost of manually maintaining asset naming, and meeting the standard requirements of project management for asset naming; no manual selection is required when renaming associated assets, avoiding omissions that may occur when manually selecting assets, and ensuring the consistency of project specifications; the matching mode can be customized and switched, avoiding the need to only apply pre-made modes to name assets, and solving the contradictory problem that different import processes and different asset types in the project require different matching modes.
[0070] Embodiment 2:
[0071] This embodiment is a further refinement of the above-mentioned embodiment 1. The explanation of terms that are the same or corresponding to those in the above-mentioned embodiment will not be repeated in this embodiment.
[0072] Reference Manual Attached Figure 2 Embodiment 2 of the present invention provides another method for automatically renaming UE assets, the method comprising the following steps:
[0073] Step 201: after detecting that a user has performed an asset import operation, a first interactive page is displayed to the user before the asset import.
[0074] Step 202: Receive the instruction triggered by the user in the first interactive page, and determine whether it is necessary to intervene in the asset import pipeline; if it is necessary to intervene in the asset import pipeline, execute step 203; if it is not necessary to intervene in the asset import pipeline, execute step 205.
[0075] Step 203: Display a second interactive page to the user. The second interactive page has a plurality of matching patterns preset on it. Each matching pattern includes an asset type and a pattern string corresponding to the asset type.
[0076] Step 204: receiving the instruction triggered by the user in the second interactive page, determining whether automatic renaming needs to be performed, if automatic renaming needs to be performed, executing step 206, if automatic renaming does not need to be performed, executing step 205.
[0077] Step 205: Only perform asset import.
[0078] Step 206: Add the asset to be imported to the automatic renaming management queue.
[0079] Step 207: Import the assets in the automatic rename management queue, and rename the assets added to the automatic rename management queue in the next frame according to the selected matching mode.
[0080] Therefore, by setting up an automatic renaming management queue, the assets added to the automatic renaming management queue are renamed in the next frame according to the selected matching mode. The two operations of asset import and asset renaming are processed asynchronously. This can effectively avoid occasional crash errors when assets are deleted and then imported after being renamed, improve the reliability of the automatic asset renaming method, and further improve the user experience.
[0081] Specifically, you can construct a Tickable object of the engine editor as the automatic renaming management queue.
[0082] Specifically, renaming the asset added to the automatic renaming management queue in the next frame according to the selected matching mode may include:
[0083] Get the asset type of the asset to be renamed;
[0084] Get the pattern string corresponding to the current asset type. After obtaining the asset type, get the pattern string corresponding to the asset type according to the matching mode selected by the user.
[0085] Based on the pattern string corresponding to the current asset type, rename the current asset to be renamed to obtain the corresponding new asset name.
[0086] The technical solution provided in the second embodiment of the present invention provides a method for automatically renaming UE assets. After receiving the asset import instruction, the method allows the user to select whether to rename the asset and the matching mode to rename the asset in the form of an interactive page, so that the imported asset can be automatically renamed according to the matching mode selected by the user, so that the asset name does not need to be processed again after the asset is imported. At the same time, the asset file does not need to execute strict naming constraints during the creation process, which ensures the fluency of creation, reduces the cost of manually maintaining asset naming, and can meet the standard requirements of project management for asset naming; when renaming associated assets, there is no need for manual selection, which avoids omissions that may occur when manually selecting assets, and ensures the consistency of project specifications; it can realize customization and switching of matching modes, avoid only using pre-made modes to name assets, and solve the contradiction that different import processes and different asset types in the project require different matching modes; by setting an automatic renaming management queue, the two operations of asset import and asset renaming are asynchronously processed, which can effectively avoid occasional crash errors when assets are deleted and imported again after renaming, improve the reliability of the method, and further improve the user experience.
[0087] Embodiment 3:
[0088] This embodiment is a further refinement of the above-mentioned embodiment 1. The explanation of terms that are the same or corresponding to those in the above-mentioned embodiment will not be repeated in this embodiment.
[0089] Reference Manual Attached Figure 3 Embodiment 3 of the present invention provides another method for automatically renaming UE assets, the method comprising the following steps:
[0090] Step 301: after detecting that a user has performed an asset import operation, a first interactive page is displayed to the user before the asset import.
[0091] Step 302: Receive the instruction triggered by the user in the first interactive page, and determine whether it is necessary to intervene in the asset import pipeline; if it is necessary to intervene in the asset import pipeline, execute step 303; if it is not necessary to intervene in the asset import pipeline, execute step 305.
[0092] Step 303: Display a second interactive page to the user. The second interactive page has a plurality of matching patterns preset on it. Each matching pattern includes an asset type and a pattern string corresponding to the asset type.
[0093] Step 304: receiving the instruction triggered by the user in the second interactive page, determining whether automatic renaming needs to be performed, if automatic renaming needs to be performed, executing step 306, if automatic renaming does not need to be performed, executing step 305.
[0094] Step 305: Only perform asset import.
[0095] Step 306: synchronously perform the asset import operation and the asset renaming operation according to the selected matching mode in the asset import pipeline.
[0096] The technical solution provided in the third embodiment of the present invention provides a method for automatically renaming UE assets. After receiving the asset import instruction, the method allows the user to select whether to rename the asset and the matching mode to rename the asset in the form of an interactive page, so that the imported assets can be automatically renamed according to the matching mode selected by the user, so that there is no need to perform secondary processing on the asset name after the asset is imported. At the same time, the asset file does not need to execute strict naming constraints during the creation process, which ensures the fluency of creation, reduces the cost of manually maintaining asset naming, and can meet the standard requirements of project management for asset naming; no manual selection is required when renaming associated assets, avoiding omissions that may occur when manually selecting assets, and ensuring the consistency of project specifications; the matching mode can be customized and switched, avoiding the need to only apply pre-made modes to name assets, and solving the contradiction that different import processes and different asset types in the project require different matching modes; the asset import operation and the renaming operation are processed synchronously, which is more intuitive logically and convenient for code maintenance.
[0097] Embodiment 4:
[0098] In this embodiment, refer to the attached manual Figure 4 , provides a device for automatically renaming UE assets, which is used to implement any one of the methods for automatically renaming UE assets in the above method embodiments, and the device for automatically renaming UE assets at least includes:
[0099] The first interactive page module 41 is used to display a first interactive page to the user before the asset import when the user performs an asset import operation, and the first interactive page includes an option for the user to choose whether to intervene in the asset import pipeline;
[0100] The second interactive page module 42 is used to display a second interactive page to the user after receiving an instruction selected by the user to intervene in the asset import pipeline. The second interactive page is preset with a number of matching patterns, each matching pattern including an asset type and a pattern string corresponding to the asset type;
[0101] The automatic renaming module 43 is used to execute asset import after receiving an instruction for automatic renaming selected by the user, and rename the imported assets according to the selected matching mode.
[0102] The native asset import module 44 is used to execute asset import after receiving an instruction selected by the user that does not require intervention in the asset import pipeline, or to execute asset import after receiving an instruction selected by the user that does not require automatic renaming.
[0103] In a possible embodiment, the automatic renaming module may include:
[0104] Automatic rename management queue, used to manage the imported assets that need to be renamed;
[0105] The asset import submodule is used to import the automatic renaming management queue;
[0106] The rename submodule is used to rename the assets added to the automatic rename management queue in the next frame according to the selected matching mode.
[0107] Therefore, by setting up an automatic renaming management queue, the two operations of asset import and asset renaming are processed asynchronously, which can effectively avoid occasional crash errors when assets are deleted and then imported after being renamed, improve the reliability of the automatic asset renaming method, and further improve the user experience.
[0108] In a possible embodiment, renaming a submodule may include:
[0109] An asset type acquisition unit, used to acquire the asset type of the asset to be renamed;
[0110] A matching pattern acquisition unit is used to obtain a pattern string of the current asset type;
[0111] The renaming unit is used to rename the current asset to be renamed based on the pattern string corresponding to the current asset type to obtain the corresponding new asset name.
[0112] In a possible embodiment, the automatic renaming module may include:
[0113] The asset import submodule is used to import assets after receiving the user's selected instruction to perform automatic renaming;
[0114] The rename submodule is used to rename the imported assets synchronously according to the selected matching mode while the assets are being imported.
[0115] As a result, the asset import operation and the renaming operation are processed synchronously, which is more logically intuitive and easier to maintain code.
[0116] The technical solution of the fourth embodiment of the present invention provides a device for automatically renaming UE assets. After receiving the asset import instruction, the device allows the user to independently choose whether to rename the asset and the matching mode to rename the asset through the first interactive page 41 and the second interactive page 42. The imported assets can be automatically renamed according to the matching mode selected by the user through the automatic renaming module 43, so that there is no need to perform secondary processing on the asset name after the asset is imported. At the same time, the asset file does not need to execute strict naming constraints during the creation process, which ensures the fluency of creation, reduces the cost of manual maintenance of asset naming, and can meet the standard requirements of project management for asset naming; no manual selection is required when renaming associated assets, which avoids omissions that may occur when manually selecting assets, and ensures the consistency of project specifications; it can realize customization and switching of matching modes, avoids the use of pre-made modes to name assets, and solves the contradiction that different import processes and different asset types in the project require different matching modes.
[0117] Embodiment 5:
[0118] Instructions attached Figure 5 is a schematic diagram of the structure of a device for executing a method for automatically renaming UE assets provided in Embodiment 5 of the present invention, such as Figure 5 As shown, the device includes:
[0119] One or more processors 510 and memory 520, Figure 5 A processor 510 is taken as an example.
[0120] The device for executing a method for automatically renaming UE assets may further include: an input device 530 and an output device 540 .
[0121] The memory 520, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to a method for automatically renaming UE assets in an embodiment of the present application. The processor 510 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 520, that is, implementing a method for automatically renaming UE assets in the above method embodiment.
[0122] The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the device for automatically renaming UE assets, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 520 may optionally include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the device for automatically renaming UE assets 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.
[0123] The input device 530 can receive input digital or character information and generate signal input related to user settings and function control. The output device 540 can include display devices such as display screens.
[0124] One or more modules are stored in the memory 520 , and when executed by one or more processors 310 , the method for automatically renaming UE assets in any of the above method embodiments is performed.
[0125] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the methods provided in embodiments 1 to 3 of the present application.
[0126] Embodiment 6:
[0127] Embodiment 6 of the present invention provides a computer-readable storage medium, in which one or more programs including execution instructions are stored. The execution instructions can be read and executed by a device (including but not limited to a computer, a server, or a network device, etc.) to execute the relevant steps in the above method embodiment.
[0128] The above sequence of the embodiments of this specification is for description only and does not represent the advantages and disadvantages of the embodiments. And the above describes specific embodiments of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0129] 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 device 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.
[0130] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0131] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for automatically renaming UE assets, characterized in that: The following steps are involved: After detecting that the user performs an asset import operation, displaying a first interactive page to the user before the asset import; Receive the instruction triggered by the user in the first interactive page, and determine whether it is necessary to intervene in the asset import pipeline; If there is no need to intervene in the asset import pipeline, only the asset import is performed; If intervention in the asset import pipeline is required, a second interactive page is displayed to the user, on which a number of matching patterns are preset, each of which includes an asset type and a pattern string corresponding to the asset type; Receiving a command triggered by the user in the second interactive page, and determining whether automatic renaming needs to be performed; If automatic renaming is not required, only asset import is performed; If automatic renaming is required, the asset import is executed and the imported assets are renamed according to the selected matching pattern; When automatic renaming is required, asset import is performed, and the imported assets are renamed according to the selected matching mode, including: Add the assets to be imported into the automatic renaming management queue; Import the assets in the automatic rename management queue, and rename the assets added to the automatic rename management queue in the next frame according to the selected matching mode; The assets added to the automatic rename management queue are renamed in the next frame according to the selected matching mode, including: Get the asset type of the asset to be renamed; Get the pattern string corresponding to the current asset type; Based on the pattern string corresponding to the current asset type, rename the current asset to be renamed to obtain the corresponding new asset name.
2. The method for automatically renaming UE assets according to claim 1, characterized in that: When automatic renaming is required, asset import is performed and the imported assets are renamed according to the selected matching pattern, including: Synchronize asset import operations in the asset import pipeline with asset renaming operations based on the selected matching pattern.
3. A device for automatically renaming UE assets, used to implement the method for automatically renaming UE assets as described in any one of claims 1-2, characterized in that: include: A first interactive page module, configured to display a first interactive page to the user before asset import when detecting that the user has performed an asset import operation, wherein the first interactive page includes an option for the user to select whether to intervene in the asset import pipeline; A second interactive page module, configured to display a second interactive page to the user after receiving an instruction selected by the user that requires intervention in the asset import pipeline, wherein the second interactive page is preset with a plurality of matching patterns, each of which includes an asset type and a pattern string corresponding to the asset type; The automatic renaming module is used to execute asset import after receiving the instruction of automatic renaming selected by the user, and rename the imported assets according to the selected matching pattern; The native asset import module is used to perform asset import after receiving an instruction selected by the user that does not require intervention in the asset import pipeline, or to perform asset import after receiving an instruction selected by the user that does not require automatic renaming.
4. The device for automatically renaming UE assets according to claim 3, characterized in that: The automatic renaming module includes: Automatic rename management queue, used to manage the imported assets that need to be renamed; The asset import submodule is used to import the automatic renaming management queue; The rename submodule is used to rename the assets added to the automatic rename management queue in the next frame according to the selected matching mode.
5. The device for automatically renaming UE assets according to claim 4, characterized in that: Renaming submodules includes: An asset type acquisition unit, used to acquire the asset type of the asset to be renamed; A pattern string acquisition unit is used to acquire the pattern string of the current asset type; The renaming unit is used to rename the current asset to be renamed based on the pattern string corresponding to the current asset type to obtain the corresponding new asset name.
6. The device for automatically renaming UE assets according to claim 3, characterized in that: The automatic renaming module includes: The asset import submodule is used to import assets after receiving the user's selected instruction to perform automatic renaming; The rename submodule is used to rename the imported assets synchronously according to the selected matching mode while the assets are being imported.
7. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program or the instruction set is loaded and executed by the processor to implement the method for automatic renaming of UE assets as described in any one of claims 1 to 2.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for automatic renaming of UE assets as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Resource inspection method, apparatus and device, and computer readable storage medium
CN112199093A
Asset data import processing method and device, and electronic equipment
CN113987044A