Blueprint generation method and device based on unreal engine, equipment and storage medium

By using the large language model to generate blueprint codes in Unreal Engine, the problems of high threshold and low efficiency of Unreal Engine development in the existing technology are solved, and the blueprints are automatically generated, which improves development efficiency and flexibility.

CN119810327APending Publication Date: 2025-04-11CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411902364.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In the existing technology, using Unreal Engine for development requires professional knowledge and high threshold, which leads to a long development cycle, difficult development and high labor costs, and is unable to efficiently respond to the complex and changing needs of developers.

Method used

By obtaining the interactive text input by the user, using a large language model to generate blueprint generation results, including blueprint description text and blueprint template identification, it is converted into blueprint code, and the blueprint code is converted into target blueprints through Unreal Engine, which is displayed in Unreal Engine.

Benefits of technology

It realizes the automatic generation of blueprints in Unreal Engine based on user needs, lowers the development threshold, improves development efficiency, and meets the complex and changing needs of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119810327A_ABST
    Figure CN119810327A_ABST
Patent Text Reader

Abstract

The invention relates to a blueprint generation method and device based on an unreal engine, equipment and a storage medium. The method comprises the following steps: acquiring an interactive text input by a user; the interactive text comprises a blueprint function needing to be realized; based on the interactive text and the large language model, obtaining a blueprint generation result; the blueprint generation result comprises at least one of a blueprint description text and a blueprint template identifier; the blueprint description text comprises a description text of a plurality of blueprint nodes and a description text of a connection relationship among the plurality of blueprint nodes; the blueprint template identifier is used for indicating a corresponding blueprint template; and obtaining a blueprint code based on the blueprint generation result, converting the blueprint code into a target blueprint through an unreal engine, and displaying the target blueprint in the unreal engine. The method can meet the complex and changeable requirements of developers, and the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a blueprint generation method, apparatus, device and storage medium based on Unreal Engine. Background Art

[0002] Unreal Engine is the most mainstream 3D rendering engine, which provides a complete set of development tools, including graphics rendering, physics engine, AI, animation, multimedia, etc. Designers and developers can import 3D models in the editor, build virtual 3D scenes, and drive the changes of models in the scene through blueprints through the components and tools provided by Unreal Engine.

[0003] Currently, using Unreal Engine for development involves professional knowledge such as source code programming, scene building, and blueprint design. The threshold is high and usually requires professional designers and developers. It has the characteristics of long development cycle, high development difficulty, and high labor cost. Therefore, there is an urgent need for an efficient blueprint generation method based on Unreal Engine to meet the complex and changing needs of developers and improve development efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide an efficient Unreal Engine-based blueprint generation method, device, equipment and storage medium to address the above technical problems, which can meet the complex and changing needs of developers and improve development efficiency.

[0005] In a first aspect, the present application provides a blueprint generation method based on Unreal Engine, comprising:

[0006] Get the interactive text entered by the user; the interactive text contains the blueprint function that needs to be implemented;

[0007] Based on the interactive text and the large language model, a blueprint generation result is obtained; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate a corresponding blueprint template;

[0008] Based on the blueprint generation result, the blueprint code is obtained, and the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine.

[0009] In one embodiment, based on the interactive text and the large language model, a blueprint generation result is obtained, including:

[0010] The interaction text is input into the large language model to instruct the large language model to determine whether there is a target blueprint template identifier matching the interaction text in a preset blueprint template library; the blueprint template library stores the corresponding relationship between the interaction text and the blueprint template identifier;

[0011] Get the confirmed result sent by the large language model;

[0012] Based on the determination result, a blueprint generation result is determined.

[0013] In one embodiment, based on the determination result, determining the blueprint generation result includes:

[0014] If the determination result indicates that the target blueprint template identifier exists, the target blueprint template identifier is used as the blueprint generation result;

[0015] If the determination result indicates that there is no target blueprint template identifier, a target blueprint description text matching the interaction text is generated through a large language model, and the target blueprint description text is used as the blueprint generation result.

[0016] In one embodiment, generating a target blueprint description text matching the interactive text by a large language model includes:

[0017] The interactive text and the preset prompt word template are combined to obtain a combined prompt word; the prompt word template includes a blueprint creation tool type, a generated content type, and a generated content format;

[0018] The combined prompt words are input into the large language model to generate the blueprint description text.

[0019] In one embodiment, based on the blueprint generation result, a blueprint code is obtained, including:

[0020] When the blueprint generation result includes a blueprint description text, the blueprint description text is parsed according to a preset data structure to obtain a blueprint code;

[0021] When the blueprint generation result includes a blueprint template identifier, a preset blueprint template library is read through the blueprint template identifier to obtain a blueprint code; the blueprint template library stores a corresponding relationship between the blueprint template identifier and the blueprint code.

[0022] In one embodiment, the interactive text contains multiple blueprint functions that need to be implemented; based on the interactive text and the large language model, a blueprint generation result is obtained, including:

[0023] Inputting the interaction text into the large language model to instruct the large language model to determine whether there is a target identifier matching any blueprint function in the interaction text in a preset blueprint template library;

[0024] Get the confirmed result sent by the large language model;

[0025] If the determination result indicates that some blueprint functions have matching target identifiers, and other partial blueprint functions do not have matching target identifiers, then a target description text matching the other partial blueprint functions is generated through a large language model; each target identifier and each target description text is used as a blueprint generation result.

[0026] In a second aspect, the present application also provides a blueprint generation device based on Unreal Engine, comprising:

[0027] The interactive interface is used to obtain the interactive text input by the user; the interactive text contains the blueprint functions that need to be implemented;

[0028] The large model module is used to obtain a blueprint generation result based on the interactive text and the large language model; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate the corresponding blueprint template;

[0029] A blueprint generation module is used to generate results based on the blueprint and obtain the blueprint code;

[0030] Unreal Engine module, used to convert Blueprint code into target Blueprint through Unreal Engine, and display the target Blueprint in Unreal Engine.

[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Get the interactive text entered by the user; the interactive text contains the blueprint function that needs to be implemented;

[0033] Based on the interactive text and the large language model, a blueprint generation result is obtained; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate a corresponding blueprint template;

[0034] Based on the blueprint generation result, the blueprint code is obtained, and the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0036] Get the interactive text entered by the user; the interactive text contains the blueprint function that needs to be implemented;

[0037] Based on the interactive text and the large language model, a blueprint generation result is obtained; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate a corresponding blueprint template;

[0038] Based on the blueprint generation result, the blueprint code is obtained, and the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine.

[0039] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0040] Get the interactive text entered by the user; the interactive text contains the blueprint function that needs to be implemented;

[0041] Based on the interactive text and the large language model, a blueprint generation result is obtained; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate a corresponding blueprint template;

[0042] Based on the blueprint generation result, the blueprint code is obtained, and the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine.

[0043] The above-mentioned Unreal Engine-based blueprint generation method, device, computer device, computer-readable storage medium and computer program product obtain interactive text input by a user, wherein the interactive text contains a blueprint function to be implemented, obtains a blueprint generation result based on the interactive text and utilizes the text-to-text capability of a large language model, and converts the blueprint generation result into a blueprint code based on the blueprint generation result. Since the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier, the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes, and the blueprint template identifier is used to indicate a corresponding blueprint template, therefore, the blueprint code is determined based on the blueprint generation result, and the blueprint code may include codes of multiple blueprint nodes and codes of connection relationships between multiple blueprint nodes; the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine, so that the developer can intuitively view the generated target blueprint; thanks to the text-to-text capability of the large language model, the target blueprint can be automatically generated in the virtual engine according to the developer's needs, which can meet the complex and changeable needs of the developer on the one hand, and improve the generation efficiency of the blueprint on the other hand, thereby improving the efficiency of development in the virtual engine. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A schematic diagram of a conventional method for generating a blueprint based on a virtual engine in one embodiment;

[0046] Figure 2 FIG. 1 is an application environment diagram of a blueprint generation method based on Unreal Engine in one embodiment;

[0047] Figure 3 A schematic diagram of a process of generating a blueprint based on Unreal Engine in one embodiment;

[0048] Figure 4 A schematic diagram of the composition of a blueprint generation system based on Unreal Engine in one embodiment;

[0049] Figure 5 is a structural block diagram of a blueprint generation device based on Unreal Engine in one embodiment;

[0050] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] In order to better understand the present application, before introducing the embodiments of the present application, the relevant terms in the present application are first explained.

[0053] Unreal Engine: is a powerful game engine developed by Epic Games, which is widely used in game development, film and television production, virtual reality (VR), augmented reality (AR) and other fields. Unreal Engine provides a wealth of tools and functions, allowing developers to efficiently create high-quality 3D content.

[0054] Blueprint: A visual scripting system in Unreal Engine that allows developers to create game logic by dragging nodes and wires without writing traditional programming code.

[0055] Large Models: refers to deep learning models with tens of millions or even hundreds of millions of parameters, which is an important development direction in the field of artificial intelligence.

[0056] In the fields of digital twins, virtual reality, and the metaverse, it is necessary to establish virtual models and environments corresponding to the physical environment in a three-dimensional rendering engine, simulate the behaviors of all-round things such as people, things, objects, transportation, and environment in the virtual environment, trace, simulate, and predict events, and bring people an immersive, interactive, and imaginative visual and sensory experience.

[0057] Unreal Engine is the most mainstream 3D rendering engine, which provides a complete set of development tools, including graphics rendering, physics engine, AI, animation, multimedia, etc. Designers and developers can import 3D models in the editor, build virtual 3D scenes, and drive the changes of models in the scene through blueprints through the components and tools provided by Unreal Engine. From visual design, movie interactive experience, to high-quality game development on computers, mobile devices, VR and AR platforms, Unreal Engine can provide full-process services from production, delivery, to secondary development.

[0058] like Figure 1 The figure shows a flow chart of the traditional method of generating blueprints based on the virtual engine. Traditional development using the Unreal Engine mainly involves users (who can be developers) developing blueprints through the Unreal Engine, which involves professional knowledge such as source code programming, scene building, and blueprint design. The threshold is high and usually requires professional designers and developers. It has the characteristics of long development cycle, high development difficulty, and high labor cost. Therefore, there is an urgent need for an efficient blueprint generation method based on the Unreal Engine to cope with the complex and changing needs of developers and improve development efficiency.

[0059] Based on this, an embodiment of the present application proposes a blueprint generation method based on Unreal Engine, by obtaining an interactive text input by a user, the interactive text contains a blueprint function that needs to be implemented, based on the interactive text, using the text-to-text capability of a large language model, a blueprint generation result is obtained, based on the blueprint generation result, a blueprint code is converted, because the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier, the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes, and the blueprint template identifier is used to indicate a corresponding blueprint template, therefore, based on the blueprint generation result, a blueprint code is determined, and the blueprint code may include codes of multiple blueprint nodes and codes of connection relationships between multiple blueprint nodes; the blueprint code is converted into a target blueprint through Unreal Engine, and the target blueprint is displayed in Unreal Engine, so that the developer can intuitively view the generated target blueprint; thanks to the text-to-text capability of the large language model, the target blueprint can be automatically generated in the virtual engine according to the developer's needs, on the one hand, it can meet the complex and changeable needs of the developer, and on the other hand, it can improve the generation efficiency of the blueprint, thereby improving the efficiency of development in the virtual engine.

[0060] The Unreal Engine-based blueprint generation method provided in the embodiment of the present application can be applied to Figure 2In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. This embodiment uses the method applied to the terminal 102 as an example. It can be understood that the method can also be applied to the server 104, and can also be applied to a system including the terminal 102 and the server 104, and is implemented through the interaction between the terminal 102 and the server 104. The terminal 102 obtains the interactive text input by the user; the interactive text contains the blueprint function to be implemented; based on the interactive text and the large language model, the blueprint generation result is obtained; the blueprint generation result includes at least one of the blueprint description text and the blueprint template identifier; the blueprint description text contains the description text of multiple blueprint nodes and the description text of the connection relationship between multiple blueprint nodes; the blueprint template identifier is used to indicate the corresponding blueprint template; based on the blueprint generation result, the blueprint code is obtained, and the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0061] In an exemplary embodiment, Figure 3 As shown, a blueprint generation method based on Unreal Engine is provided, and the method is applied to Figure 2 The terminal 102 in the example is used as an example to illustrate, including the following steps 302 to 306. Among them:

[0062] Step 302, obtaining the interactive text input by the user; the interactive text contains the blueprint function that needs to be implemented.

[0063] Among them, the terminal may include an interactive interface, and the user may input interactive text in the interactive interface. For example, the interactive interface includes a text input box, and in response to the text input operation of the text input box, the interactive text input by the user is obtained. For another example, a voice receiving module is built into the terminal or externally, and a prompt for interactive text input by voice is displayed in the interactive interface. The terminal can receive the interactive voice input by the user through the voice receiving module, recognize the interactive voice for voice recognition, and obtain the interactive text corresponding to the interactive voice.

[0064] The interactive text usually contains the blueprint function to be implemented, and the blueprint function may include but is not limited to character movement, triggering events, UI interaction, etc. Exemplarily, the interactive text may be: Generate blueprint: When the space bar is pressed, character A jumps.

[0065] Step 304, based on the interactive text and the large language model, obtain a blueprint generation result; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate the corresponding blueprint template.

[0066] The large language model refers to a deep learning model with the ability to generate text from words. The large language model can generate corresponding answers under the guidance of prompt words. The interactive text can be directly used as the prompt word of the large language model, or the interactive text and the preset prompt word can be combined as the prompt word of the large language model. The large language model can be obtained by training with a specific data set. For example, the specific data set can be an interactive text sample containing a blueprint function, and the training label can be a descriptive text sample of the blueprint node and the connection relationship.

[0067] The blueprint generation result is the output result of the large language model for the interactive text. The blueprint description text is the text that describes the blueprint nodes and the interception relationship between blueprint nodes. For example, if the blueprint function is: character jump, the blueprint description text can be: drag a line from the True pin of the Can Jump node to the Jump node; drag a line from the False pin of the Can Jump node to a No Operation node (or do not connect it directly).

[0068] A blueprint template refers to a blueprint description text with a specific blueprint function. The blueprint template can be generated for a large language model history or pre-stored in the terminal. The blueprint template identifier is used to indicate the corresponding blueprint template, and the blueprint template identifier corresponds to the blueprint template one by one.

[0069] Step 306, based on the blueprint generation result, obtain the blueprint code, convert the blueprint code into a target blueprint through the Unreal Engine, and display the target blueprint in the Unreal Engine.

[0070] Among them, blueprint code refers to the program used to generate blueprints in Unreal Engine, which can include data structures such as creating blueprint nodes, creating blueprint pins, adding pins to nodes, and creating connection relationships. Since the blueprint generation result contains description text of blueprint nodes and the connection relationships between blueprint nodes, the text form can be converted into code form to obtain blueprint code, so as to realize the automatic generation of blueprint code.

[0071] The target blueprint is a visual script in the Unreal Engine. The blueprint code is converted to the target blueprint, which can call the conversion interface (API) in the Unreal Engine. The target blueprint can be stored in the form of a blueprint file and displayed in the Unreal Engine.

[0072] Exemplarily, the terminal has a blueprint converter, which converts the blueprint code into a target blueprint by calling the API of the virtual engine, and displays the target blueprint in the virtual engine. For example, the blueprint file of the target blueprint can be loaded in the Unreal Engine, and the target blueprint can be displayed in the editor of the Unreal Engine.

[0073] In some embodiments, the target blueprint displayed in the editor of the Unreal Engine can be used for user editing and development. For example, the connection relationship, roles, events, etc. between the blueprint nodes can be changed to develop scenes with different functions.

[0074] In the above-mentioned blueprint generation method based on Unreal Engine, by obtaining the interactive text input by the user, the interactive text contains the blueprint function to be implemented, based on the interactive text, using the text-to-text ability of the large language model, a blueprint generation result is obtained, and based on the blueprint generation result, the blueprint code is converted. Since the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier, the blueprint description text includes description texts of multiple blueprint nodes and description texts of the connection relationship between the multiple blueprint nodes, and the blueprint template identifier is used to indicate the corresponding blueprint template, therefore, the blueprint code is determined based on the blueprint generation result, and the blueprint code can include codes of multiple blueprint nodes and codes of the connection relationship between the multiple blueprint nodes; the blueprint code is converted into a target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine, so that the developer can intuitively view the generated target blueprint; thanks to the text-to-text ability of the large language model, the target blueprint can be automatically generated in the virtual engine according to the developer's needs, which can meet the complex and changeable needs of the developer on the one hand, and on the other hand, it can improve the generation efficiency of the blueprint, thereby improving the efficiency of development in the virtual engine.

[0075] In an exemplary embodiment, a blueprint generation result is obtained based on the interactive text and the large language model, including: inputting the interactive text into the large language model to instruct the large language model to determine whether there is a target blueprint template identifier that matches the interactive text in a preset blueprint template library; the blueprint template library stores the correspondence between the interactive text and the blueprint template identifier; obtaining the determination result sent by the large language model; and determining the blueprint generation result based on the determination result.

[0076] The blueprint template library refers to a database storing the corresponding relationship between the interactive text and the blueprint template identifier. The blueprint template library can be integrated in the terminal or externally connected to the terminal.

[0077] After the interactive text is input into the large language model, the large language model queries the blueprint template library to determine whether there is a target blueprint template identifier matching the interactive text in the blueprint template library. The determination result includes whether the target blueprint template identifier exists or does not exist.

[0078] The terminal receives the determination result returned by the large language model, and determines that the blueprint is a generation result based on the determination result. If the determination result indicates that the target blueprint template identifier exists, the blueprint generation result includes the target blueprint template identifier. If the determination result indicates that the target blueprint template identifier does not exist, the blueprint generation result includes the blueprint description text.

[0079] In this embodiment, a large language model is used to determine whether there is a target blueprint template identifier that matches the interactive text in the blueprint template library, and the blueprint generation result is determined based on the determination result of the large language model. This use of the text-to-text capability of the large language model is conducive to improving the generation efficiency of the blueprint generation result, thereby helping to improve development efficiency.

[0080] In an exemplary embodiment, based on the determination result, the blueprint generation result is determined, including: if the determination result indicates that there is a target blueprint template identifier, the target blueprint template identifier is used as the blueprint generation result; if the determination result indicates that there is no target blueprint template identifier, a target blueprint description text matching the interaction text is generated through a large language model, and the target blueprint description text is used as the blueprint generation result.

[0081] Among them, if the determination result indicates that there is a target blueprint template identifier, the terminal can use the target blueprint template identifier as the blueprint generation result.

[0082] If the determination result indicates that there is no target blueprint template identifier, the large language model is required to continue to generate a target blueprint description text that matches the interaction text, thereby using the target blueprint description text as the blueprint generation result.

[0083] In some embodiments, the content of the interactive text is relatively complex, and the determination result returned by the large language model includes both the target blueprint template identifier and the target blueprint description text. In this case, the target blueprint template identifier and the target blueprint description text are used together as the blueprint generation result.

[0084] In this embodiment, the blueprint generation result is determined by determining whether the result indicates that there is a target blueprint template identifier. If there is a target blueprint template identifier, the target blueprint template identifier can be directly used as the blueprint generation result to avoid resource waste caused by repeated generation of a large language model; if there is no target blueprint template identifier, it is necessary to continue to generate the target blueprint description text as the blueprint generation result to ensure that a target blueprint that meets user needs is generated.

[0085] In an exemplary embodiment, a target blueprint description text matching an interactive text is generated through a large language model, including: combining the interactive text with a preset prompt word template to obtain a combined prompt word; the prompt word template includes a blueprint creation tool type, a generated content type, and a generated content format; and the combined prompt word is input into the large language model to generate a blueprint description text.

[0086] Among them, the prompt word template refers to the prompt word pre-stored in the terminal, and the content in the prompt word template can be flexibly adjusted according to the needs, and is used to guide the large language model to generate content that meets the needs indicated by the prompt word template. The blueprint creation tool type refers to the type of tool used to create the blueprint, for example, it can be Unreal Engine. The generated content type refers to the type of content generated by the demand, for example, the generated content type can be a description of the blueprint nodes and the connection relationship between the blueprint nodes. The generated content format refers to the format of the generated content, for example, it can be a text format, etc. For example, the prompt word template can be: Generate a description text in the Unreal Engine for describing the blueprint nodes and the connection relationship between the blueprint nodes.

[0087] The interactive text and prompt word templates can be combined to obtain a combined prompt word. For example, the combined prompt word can be: Generate a description text used in the Unreal Engine to describe the blueprint node and the connection relationship between the blueprint nodes, and the requirement is to generate a blueprint: when the space bar is pressed, character A jumps.

[0088] After the terminal inputs the combined prompt words into the large language model, the blueprint description text output by the large language model is obtained. For example, the blueprint description text may be:

[0089] 1. Detect when the player presses the space bar:

[0090] Drag the InputAction Jump node into the Event Graph.

[0091] Right-click on the InputAction Jump node, select Add Pin, then select Can Jump.

[0092] 2. Character jump:

[0093] Drag a wire from the True pin of the Can Jump node to the Jump node.

[0094] Drag a wire from the False pin of the Can Jump node to a No Operation node (or just leave it unconnected).

[0095] In this embodiment, the blueprint description text is generated by combining the interactive text and the preset prompt word template and inputting them into the large language model. The combined prompt words can be flexibly adjusted according to needs to instruct the large language model to generate a blueprint description text that meets the needs.

[0096] In an exemplary embodiment, a blueprint code is obtained based on a blueprint generation result, including: when the blueprint generation result includes a blueprint description text, parsing the blueprint description text according to a preset data structure to obtain the blueprint code; when the blueprint generation result includes a blueprint template identifier, reading a preset blueprint template library through the blueprint template identifier to obtain the blueprint code; the blueprint template library stores the correspondence between the blueprint template identifier and the blueprint code.

[0097] Among them, the blueprint description text needs to be converted into blueprint code before it can be used by developers for development. For the blueprint description text, the blueprint description text can be converted into blueprint code according to a preset data structure. Exemplarily, the terminal includes a code converter for converting the blueprint description text into a data structure in the blueprint code for representation. The data structure may include a blueprint node name, a blueprint node type, attributes, and a connection relationship, and the connection relationship includes nodes connected to input pins, input pins, nodes connected to output pins, and output pins. Exemplarily, the data structure is as follows:

[0098] BlueprintNode:[func, type, properties, connections]

[0099] BlueprintConnection:[from_node, from_pin, to_node, to_pin]

[0100] Among them, BlueprintNode is the data structure of the blueprint node, func represents the blueprint node name, that is, the API name called in the blueprint, type represents the blueprint node type, such as event node, response node, etc., properties represents the properties of the blueprint node, which can be understood as function parameters. A blueprint node may include multiple properties, including input parameters, output parameters, callbacks, etc., connections represents the connection relationship of the blueprint node, and the format is shown in BlueprintConnection.

[0101] BlueprintConnection is a data structure of the connection relationship between blueprint nodes. from_node represents the node connected to the input pin, from_pin represents the input pin, to_node represents the node connected to the output pin, and to_pin represents the output pin.

[0102] For example, the blueprint code is as follows:

[0103] Create Blueprint nodes: Blueprint nodes include InputAction, CanJump, and Jump.

[0104] input_action_jump = Node("InputAction", "Jump")

[0105] can_jump = Node("CanJump", "Can Jump")

[0106] jump = Node("Jump", "Jump")

[0107] Creating Blueprint Pins: The Blueprint Node InputAction includes an Output pin of type Event. The Blueprint Node CanJump includes Boolean type pins True and False. The Blueprint Node Jump includes an Output pin of type Event.

[0108] input_action_jump_output = Pin("Event", "Output")

[0109] can_jump_true = Pin("Boolean", "True")

[0110] can_jump_false = Pin("Boolean", "False")

[0111] jump_output = Pin("Event", "Output")

[0112] Pins are added to the node:

[0113] input_action_jump.outputs.append(input_action_jump_output)

[0114] can_jump.outputs.append(can_jump_true)

[0115] can_jump.outputs.append(can_jump_false)

[0116] jump.outputs.append(jump_output)

[0117] Create a connection relationship: the True pin of the blueprint node CanJump is connected to jump, and the False pin of CanJump is not connected:

[0118] connections = [Connection(input_action_jump, input_action_jump_output, can_jump, None),

[0119] Connection(can_jump, can_jump_true, jump, None),

[0120] Connection(can_jump, can_jump_false, None, None), # no operation

[0121] Connection(jump, jump_output, set_can_jump_false, None),]

[0122] In some embodiments, the blueprint template library also includes a blueprint template corresponding to each blueprint template identifier. Exemplarily, the data stored in the blueprint template library is as follows:

[0123] Template:[TemplateID, Type, Key, Prompt, BlueprintNode, BlueprintConnection]

[0124] Among them, TemplateID represents the blueprint template identifier, Type represents the blueprint type, such as level blueprint, character blueprint, game mode blueprint, etc.; Key represents the keyword, and the blueprint template can be filtered according to the keyword; Prompt represents the prompt word, such as "Generate blueprint: When the space bar is pressed, character A jumps up", BlueprintNode represents the description text of the blueprint node, and BlueprintConnection represents the description text of the blueprint connection relationship.

[0125] When the blueprint generation result includes a blueprint template identifier, a preset blueprint template library is read to obtain a blueprint template corresponding to the blueprint template identifier, and then the blueprint template is converted into a blueprint code.

[0126] In some embodiments, the blueprint template library also includes a blueprint code corresponding to each blueprint template identifier, or stores a corresponding relationship between the blueprint template identifier and the blueprint code. When the blueprint generation result includes the blueprint template identifier, the preset blueprint template library is read through the blueprint template identifier to obtain the blueprint code.

[0127] In this embodiment, the blueprint description text in the blueprint generation result can be parsed into blueprint code according to a preset data structure, and the blueprint template identifier in the blueprint generation result can be obtained by querying the blueprint template library, which saves resource consumption, improves the efficiency of obtaining blueprint code, and is conducive to improving the efficiency of blueprint generation.

[0128] In an exemplary embodiment, an interactive text includes multiple blueprint functions that need to be implemented; based on the interactive text and the large language model, a blueprint generation result is obtained, including: inputting the interactive text into the large language model to instruct the large language model to determine whether there is a target identifier matching any blueprint function in the preset blueprint template library; obtaining a determination result sent by the large language model; if the determination result indicates that there are matching target identifiers for some blueprint functions and there are no matching target identifiers for other partial blueprint functions, then generating a target description text matching the other partial blueprint functions through the large language model; and using each target identifier and each target description text as the blueprint generation result.

[0129] The interactive text input by the user may include at least one blueprint function, and description is given by taking the inclusion of multiple blueprint functions as an example.

[0130] Since the interactive text contains multiple blueprint functions, the large language model needs to output a determination result that matches multiple blueprint functions. If the determination result indicates that all blueprint functions have matching target identifiers, the target identifiers corresponding to each blueprint function can be used as the blueprint generation result; if the determination result indicates that all blueprint functions do not have matching target identifiers, the target description text corresponding to each blueprint function is generated by the large language model, and the target description text corresponding to each blueprint function is used as the blueprint generation result. If the determination result indicates that some blueprint functions store matching target identifiers, but other parts do not exist, then for the other parts of the blueprint function, the target description text matching the other parts of the blueprint function is generated by the large language model, and the target identifiers corresponding to some blueprint functions and the target description texts corresponding to other parts of the blueprint functions are used together as the blueprint generation result.

[0131] In this embodiment, when there are multiple blueprint functions in the interactive text, the blueprint generation result can be determined according to the matching target identifier and each target description text, which is conducive to improving the blueprint generation efficiency.

[0132] To explain in detail the blueprint generation method and effect based on Unreal Engine in this solution, a most detailed embodiment is described below:

[0133] The blueprint generation method based on Unreal Engine is applied to a blueprint generation system based on Unreal Engine. The blueprint generation system may be composed of a terminal and a server, such as Figure 4 The diagram shows a schematic diagram of the composition of a blueprint generation system based on Unreal Engine in one embodiment. Exemplarily, an interactive interface, a blueprint generation module and an Unreal Engine are integrated in the terminal, and a large language model and a database module are integrated in the server. Among them, the interactive interface can be used to obtain the interactive text input by the user, and clarify the blueprint function to be generated, such as character movement, triggering events, UI interaction, etc. The large language model is used to generate a blueprint description text according to the interactive text input by the user, such as a text description of the blueprint node used and the connection relationship between the blueprint nodes. The database module includes a data set and a blueprint template library. The data set stores data for training, and the blueprint template library is used to store generated blueprint templates, etc. The blueprint generation module is used to convert the blueprint description text output by the large language model into a blueprint in the Unreal Engine. The blueprint generation module may include a parser, a code converter and a blueprint converter. The code converter uses a pre-designed data structure to store blueprint nodes and connection relationships, and can convert the text description generated by the large model into a code describing the blueprint nodes and connection relationships. The Blueprint Converter uses the Unreal Engine API or scripting tools to automatically create a blueprint from the parsed nodes and connections, and generates it in the Unreal Engine Editor. The Unreal Engine has the Unreal Engine Editor and related tools installed.

[0134] The blueprint generation method based on Unreal Engine mainly includes the following steps:

[0135] (1) Input training data sets into the large language model, including documents, blueprint templates and other data for training.

[0136] (2) In the reasoning stage, the user enters interactive text in the interactive interface to specify the blueprint function to be implemented, such as character movement, triggering events, UI interaction, etc. For example, the user enters "Generate blueprint: When the space bar is pressed, character A jumps up."

[0137] (3) The interactive text is input into the large language model, which determines whether there is a matching blueprint template identifier. If so, the blueprint template identifier is output; if not, the determination result is output, and the blueprint nodes and connection relationships to be created are described through the blueprint description text.

[0138] (4) The parser determines whether it needs to read the blueprint template based on the output of the large language model. If the blueprint template identifier TemplateID exists, the blueprint converter is informed.

[0139] (5) The blueprint converter imports blueprint templates that can be directly called from the blueprint template library.

[0140] (6) The parser outputs the results of the large language model. If there is no blueprint template that can be used directly, the blueprint description text is input into the code converter.

[0141] (7) Define a data structure in memory to store blueprint nodes and connection relationships.

[0142] (8) The code converter parses the blueprint description text, converts it into a data structure in the blueprint code, and sends it to the blueprint converter.

[0143] (9) The blueprint converter calls the Unreal Engine API to generate the blueprint nodes and connection relationships into a target blueprint.

[0144] (10) The blueprint converter displays the generated blueprint in the blueprint file.

[0145] (11) The user obtains the generated blueprint in the editor and can edit it.

[0146] The above-mentioned blueprint generation method based on Unreal Engine obtains the interactive text input by the user, the interactive text contains the blueprint function to be implemented, obtains the blueprint generation result based on the interactive text and utilizes the text-to-text capability of the large language model, and converts the blueprint generation result into the blueprint code based on the blueprint generation result. Since the blueprint generation result includes at least one of the blueprint description text and the blueprint template identifier, the blueprint description text includes the description text of multiple blueprint nodes and the description text of the connection relationship between the multiple blueprint nodes, and the blueprint template identifier is used to indicate the corresponding blueprint template, therefore, the blueprint code is determined based on the blueprint generation result, and the blueprint code may include the code of multiple blueprint nodes and the code of the connection relationship between the multiple blueprint nodes; the blueprint code is converted into the target blueprint through the Unreal Engine, and the target blueprint is displayed in the Unreal Engine, so that the developer can intuitively view the generated target blueprint; thanks to the text-to-text capability of the large language model, the target blueprint can be automatically generated in the virtual engine according to the developer's needs, which can meet the complex and changeable needs of the developer on the one hand, and improve the generation efficiency of the blueprint on the other hand, thereby improving the efficiency of development in the virtual engine. In addition, the method also has the following advantages: 1. Improved development efficiency. The original technical architecture requires developers to write blueprints independently, with a high development threshold, a long development cycle, and high labor costs. The embodiment of the present application is based on the architecture of a large language model, which can generate blueprints through text methods, improve development efficiency, and reduce labor costs. 2. Improved resource reuse rate. Through the design of the blueprint template library, reusable data is saved to avoid repeated calculation and generation of blueprints, effectively reduce repeated data generation and resource redundancy, and improve resource reuse. 3. Reduced storage occupancy. The blueprint occupies a lot of storage space. By defining the data structure of the blueprint node, the blueprint can be standardized and textualized to facilitate data storage, query and parsing, and reduce data resource occupancy.

[0147] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0148] Based on the same inventive concept, the embodiment of the present application also provides a blueprint generation device based on Unreal Engine for implementing the above-mentioned blueprint generation method based on Unreal Engine. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations of one or more embodiments of the blueprint generation device based on Unreal Engine provided below can refer to the limitations of the blueprint generation method based on Unreal Engine above, and will not be repeated here.

[0149] In an exemplary embodiment, Figure 5 As shown, a blueprint generation device 500 based on Unreal Engine is provided, comprising: an interactive interface 520, a large model module 540, a blueprint generation module 560 and an Unreal Engine module 580, wherein:

[0150] Interaction interface 520, used to obtain interaction text input by the user; the interaction text contains the blueprint function to be implemented;

[0151] The large model module 540 is used to obtain a blueprint generation result based on the interactive text and the large language model; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate the corresponding blueprint template;

[0152] A blueprint generation module 560, used to obtain a blueprint code based on the blueprint generation result;

[0153] The Unreal Engine module 580 is used to convert the blueprint code into a target blueprint through the Unreal Engine and display the target blueprint in the Unreal Engine.

[0154] The above-mentioned blueprint generation device based on Unreal Engine obtains interactive text input by a user, wherein the interactive text contains a blueprint function to be implemented, obtains a blueprint generation result based on the interactive text and utilizes the text-to-text capability of a large language model, and converts the blueprint generation result into a blueprint code based on the blueprint generation result. Since the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier, the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes, and the blueprint template identifier is used to indicate a corresponding blueprint template, the blueprint code is determined based on the blueprint generation result, and the blueprint code may include codes of multiple blueprint nodes and codes of connection relationships between multiple blueprint nodes; the blueprint code is converted into a target blueprint through Unreal Engine, and the target blueprint is displayed in Unreal Engine, so that the developer can intuitively view the generated target blueprint; thanks to the text-to-text capability of a large language model, the target blueprint can be automatically generated in the virtual engine according to the developer's needs, which can meet the complex and changeable needs of the developer on the one hand, and improve the generation efficiency of the blueprint on the other hand, thereby improving the efficiency of development in the virtual engine.

[0155] In one embodiment, a blueprint generation result is obtained based on the interactive text and the large language model, and the large model module 540 is also used to: input the interactive text into the large language model to instruct the large language model to determine whether there is a target blueprint template identifier that matches the interactive text in the preset blueprint template library; the blueprint template library stores the correspondence between the interactive text and the blueprint template identifier; obtain the determination result sent by the large language model; and determine the blueprint generation result based on the determination result.

[0156] In one embodiment, based on the determination result, the blueprint generation result is determined, and the large model module 540 is also used to: if the determination result indicates that the target blueprint template identifier exists, then the target blueprint template identifier is used as the blueprint generation result; if the determination result indicates that the target blueprint template identifier does not exist, then a target blueprint description text matching the interaction text is generated through the large language model, and the target blueprint description text is used as the blueprint generation result.

[0157] In one embodiment, a target blueprint description text matching the interactive text is generated through a large language model, and the large model module 540 is also used to: combine the interactive text with a preset prompt word template to obtain a combined prompt word; the prompt word template includes a blueprint creation tool type, a generated content type, and a generated content format; and input the combined prompt word into the large language model to generate a blueprint description text.

[0158] In one embodiment, based on the blueprint generation result, a blueprint code is obtained, and the blueprint generation module 560 is also used to: when the blueprint generation result includes a blueprint description text, parse the blueprint description text according to a preset data structure to obtain the blueprint code; when the blueprint generation result includes a blueprint template identifier, read a preset blueprint template library through the blueprint template identifier to obtain the blueprint code; the blueprint template library stores the correspondence between the blueprint template identifier and the blueprint code.

[0159] In one embodiment, the interactive text contains multiple blueprint functions that need to be implemented; based on the interactive text and the large language model, a blueprint generation result is obtained, and the large model module 540 is also used to: input the interactive text into the large language model to instruct the large language model to determine whether there is a target identifier that matches any blueprint function in the interactive text in the preset blueprint template library; obtain the determination result sent by the large language model; if the determination result indicates that there are matching target identifiers for some blueprint functions, and there are no matching target identifiers for other partial blueprint functions, then generate target description texts that match the other partial blueprint functions through the large language model; and use each target identifier and each target description text as the blueprint generation result.

[0160] Each module in the above Unreal Engine-based blueprint generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0161] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a blueprint generation method based on the Unreal Engine is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0162] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0163] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0164] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0165] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0166] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0167] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0168] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0169] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A blueprint generation method based on Unreal Engine, characterized in that: The method comprises: Obtaining interactive text input by a user; the interactive text contains a blueprint function that needs to be implemented; Based on the interactive text and the large language model, a blueprint generation result is obtained; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate a corresponding blueprint template; Based on the blueprint generation result, a blueprint code is obtained, and the blueprint code is converted into a target blueprint through an Unreal Engine, and the target blueprint is displayed in the Unreal Engine.

2. The method according to claim 1, characterized in that The blueprint generation result is obtained based on the interactive text and the large language model, including: The interactive text is input into a large language model to instruct the large language model to determine whether there is a target blueprint template identifier matching the interactive text in a preset blueprint template library; the blueprint template library stores a correspondence between the interactive text and the blueprint template identifier; Obtaining a determination result sent by the large language model; Based on the determination result, a blueprint generation result is determined.

3. The method according to claim 2, characterized in that The step of determining a blueprint generation result based on the determination result includes: If the determination result indicates that there is a target blueprint template identifier, taking the target blueprint template identifier as a blueprint generation result; If the determination result indicates that there is no target blueprint template identifier, a target blueprint description text matching the interaction text is generated through the large language model, and the target blueprint description text is used as the blueprint generation result.

4. The method according to claim 3, characterized in that The step of generating a target blueprint description text matching the interactive text by using the large language model includes: Combining the interactive text with a preset prompt word template to obtain a combined prompt word; the prompt word template includes a blueprint creation tool type, a generated content type, and a generated content format; The combined prompt words are input into the large language model to generate a blueprint description text.

5. The method according to claim 1, characterized in that The step of obtaining a blueprint code based on the blueprint generation result includes: When the blueprint generation result includes the blueprint description text, parsing the blueprint description text according to a preset data structure to obtain a blueprint code; In the case where the blueprint generation result includes the blueprint template identifier, a preset blueprint template library is read through the blueprint template identifier to obtain a blueprint code; the blueprint template library stores the corresponding relationship between the blueprint template identifier and the blueprint code.

6. The method according to claim 1, characterized in that The interactive text contains a plurality of blueprint functions that need to be implemented; the blueprint generation result is obtained based on the interactive text and the large language model, including: Inputting the interactive text into the large language model to instruct the large language model to determine whether there is a target identifier matching any blueprint function in the interactive text in a preset blueprint template library; Obtaining a determination result sent by the large language model; If the determination result indicates that a matching target identifier exists for some blueprint functions, but no matching target identifier exists for other partial blueprint functions, a target description text matching the other partial blueprint functions is generated through the large language model; and each target identifier and each target description text is used as a blueprint generation result.

7. A blueprint generation device based on Unreal Engine, characterized in that: The device comprises: An interactive interface, used to obtain interactive text input by a user; the interactive text contains a blueprint function that needs to be implemented; A large model module, used to obtain a blueprint generation result based on the interactive text and the large language model; the blueprint generation result includes at least one of a blueprint description text and a blueprint template identifier; the blueprint description text includes description texts of multiple blueprint nodes and description texts of connection relationships between multiple blueprint nodes; the blueprint template identifier is used to indicate a corresponding blueprint template; A blueprint generation module, used to obtain a blueprint code based on the blueprint generation result; The Unreal Engine module is used to convert the blueprint code into a target blueprint through the Unreal Engine, and display the target blueprint in the Unreal Engine.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Code generation method and device based on natural language and medium

    CN120469666A