A page setting and display method, device and equipment based on Unreal Engine

By developing the WebBrowser class in Unreal Engine, direct interactive communication between Unreal Engine and browser applications is achieved, solving the communication problems caused by relying on external servers in existing technologies, achieving rapid response and simplified maintenance.

CN115795201BActive Publication Date: 2025-09-09TUS CLOUD CONTROL (BEIJING) TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211697984.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2025-09-09
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

In the prior art, the interactive communication between the Unreal Engine and the browser application relies on an external server, resulting in long communication links, frequent network communications, and failure of the interactive communication when problems occur in the server.

Method used

Develop the WebBrowser class in Unreal Engine and use it to create event listening tasks to achieve direct interactive communication between Unreal Engine and browser applications, avoiding dependence on external services.

Benefits of technology

This enables fast response between the Unreal Engine and browser applications, reduces network latency, and simplifies communication logic maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115795201B_ABST
    Figure CN115795201B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose a method, apparatus, and device for setting and displaying pages based on the Unreal Engine. The Unreal Engine-based page setting method includes: obtaining a user trigger operation for a user interface blueprint built into the Unreal Engine; and, in response to the trigger operation, creating a predefined WebBrowser class in the Unreal Engine for displaying the target application page. Based on the solution of the present invention, when the Unreal Engine and the browser application collaborate to display a page, the interactive communication between them no longer relies on external services. Furthermore, this solution not only facilitates the maintenance of communication logic but also eliminates network latency, enabling faster responses between the Unreal Engine-generated portion and the browser-generated portion of the same page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of Unreal Engine technology, and in particular to a method, device, and apparatus for setting and displaying pages based on Unreal Engine. Background Art

[0002] As society develops, people's demands for on-screen page rendering performance are becoming increasingly stringent. To achieve increasingly refined display effects, Unreal Engine and browser applications can be used to collaboratively display pages. This means that the displayed page contains both portions of the page generated by the Unreal Engine and those generated by the browser application, combining the two to achieve a more refined display effect. However, how to enable interactive communication between the Unreal Engine and browser applications, so that the portions of the page generated by the Unreal Engine and the browser application within the same page can respond to each other, remains a technical challenge.

[0003] The existing technology uses WebSocket, a protocol for full-duplex communication (full-duplex means both parties can send messages to each other simultaneously) over a single TCP connection. WebSocket establishes a dedicated communication service, where the browser application sends interactive information to the server, which then forwards it to the Unreal Engine. Upon receiving the interactive information, the Unreal Engine performs the corresponding operation, and vice versa, thus completing the information exchange. However, this interactive communication method has a long communication link, frequent network communications, and is server-dependent. If the server fails, the interactive communication between the Unreal Engine and the browser application will completely fail. Summary of the Invention

[0004] In view of this, the embodiments of this specification provide a page setting and display method, device and equipment based on Unreal Engine, which is used to enable the interactive communication between Unreal Engine and browser application no longer rely on external services when they collaboratively display pages. At the same time, this method not only facilitates the maintenance of communication logic, but also eliminates network delays, so that the part of the page generated by Unreal Engine and the part of the page generated by browser application in the same page can respond to each other more quickly.

[0005] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0006] The embodiment of this specification provides a page setting method based on Unreal Engine, including:

[0007] Get the user's trigger action on the Unreal Engine's built-in user interface blueprint;

[0008] In response to the trigger operation, a predefined WebBrowser class is created at the Unreal Engine for displaying a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to generate a first page to be displayed in the first preset area according to the event information of the first call event after a first event listening task created by the predefined WebBrowser class listens to a first call event of the browser application for a first preset function at the Unreal Engine; the browser application is configured to generate a second page to be displayed in the second preset area according to the event information of the second call event after a second event listening task created by the predefined WebBrowser class listens to a second call event of the Unreal Engine for a second preset function at the browser application.

[0009] The embodiments of this specification provide a page display method based on Unreal Engine, including:

[0010] The terminal device obtains a user trigger operation for a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area;

[0011] Determining a target event triggered by the triggering operation by using a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine;

[0012] If the target event is a call event of the browser application to a first preset function at the Unreal Engine monitored by the first event monitoring task, generating a first page to be displayed at the first preset area according to event information of the target event by using the Unreal Engine;

[0013] If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, generating a second page to be displayed at the second preset area according to the event information of the target event by the browser application;

[0014] The first page to be displayed or the second page to be displayed is displayed in the target application page.

[0015] The embodiment of this specification provides a page setting device based on Unreal Engine, including:

[0016] A first trigger operation acquisition module is used to acquire a user's trigger operation on a user interface blueprint built into the Unreal Engine;

[0017] A WebBrowser class creation module is configured to, in response to the trigger operation, create a predefined WebBrowser class at the Unreal Engine for displaying a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to, after a first event listening task created using the predefined WebBrowser class monitors a first call event of the browser application for a first preset function at the Unreal Engine, generate a first page to be displayed at the first preset area according to the event information of the first call event; and the browser application is configured to, after a second event listening task created using the predefined WebBrowser class monitors a second call event of the Unreal Engine for a second preset function at the browser application, generate a second page to be displayed at the second preset area according to the event information of the second call event.

[0018] The embodiment of this specification provides a page display device based on Unreal Engine, including:

[0019] A second trigger operation acquisition module is configured to acquire a user's trigger operation on a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on a browser application and displayed in a second preset area;

[0020] a target event determination module, configured to determine a target event triggered by the triggering operation by using a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine;

[0021] a to-be-displayed page generating module, which generates, by using the Unreal Engine according to event information of the target event, a first to-be-displayed page in the first preset area, if the target event is a call event of the browser application to a first preset function in the Unreal Engine monitored by the first event monitoring task;

[0022] a to-be-displayed page generating module, which generates, by using the browser application, a second to-be-displayed page at the second preset area according to event information of the target event if the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task;

[0023] A page display module is used to display the first page to be displayed or the second page to be displayed in the target application page.

[0024] The embodiment of this specification provides a page setting device based on Unreal Engine, including:

[0025] at least one processor; and,

[0026] a memory communicatively connected to the at least one processor; wherein,

[0027] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0028] Get the user's trigger action on the Unreal Engine's built-in user interface blueprint;

[0029] In response to the trigger operation, a predefined WebBrowser class is created at the Unreal Engine for displaying a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to generate a first page to be displayed in the first preset area according to the event information of the first call event after a first event listening task created by the predefined WebBrowser class listens to a first call event of the browser application for a first preset function at the Unreal Engine; the browser application is configured to generate a second page to be displayed in the second preset area according to the event information of the second call event after a second event listening task created by the predefined WebBrowser class listens to a second call event of the Unreal Engine for a second preset function at the browser application.

[0030] The embodiment of this specification provides a page display device based on Unreal Engine, including:

[0031] at least one processor; and,

[0032] a memory communicatively connected to the at least one processor; wherein,

[0033] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0034] Obtaining a user's triggering operation for a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area;

[0035] Determining a target event triggered by the triggering operation by using a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine;

[0036] If the target event is a call event of the browser application to a first preset function at the Unreal Engine monitored by the first event monitoring task, generating a first page to be displayed at the first preset area according to event information of the target event by using the Unreal Engine;

[0037] If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, generating a second page to be displayed at the second preset area according to event information of the target event by the browser application;

[0038] The first page to be displayed or the second page to be displayed is displayed in the target application page.

[0039] At least one embodiment provided in this specification can achieve the following beneficial effects:

[0040] By developing a WebBrowser class within Unreal Engine for displaying target application pages, and utilizing this WebBrowser class to enable interaction between the Unreal Engine-generated portion of the target application page and the browser-generated portion, the solution eliminates the need for external services for interactive communication when the Unreal Engine and browser application collaborate to display pages. Furthermore, this solution not only facilitates the maintenance of communication logic but also eliminates network latency, enabling faster interaction between the Unreal Engine-generated portion and the browser-generated portion of the same page. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 A flow chart of a page setting method based on Unreal Engine provided in an embodiment of this specification;

[0043] Figure 2A flowchart of a page display method based on Unreal Engine provided in an embodiment of this specification;

[0044] Figure 3 The embodiments of this specification provide corresponding Figure 1 A structural diagram of a page setting device based on Unreal Engine;

[0045] Figure 4 The embodiments of this specification provide corresponding Figure 2 A structural diagram of a page display device based on Unreal Engine;

[0046] Figure 5 The embodiments of this specification provide corresponding Figure 1 A structural diagram of a page setting device based on Unreal Engine;

[0047] Figure 6 The embodiments of this specification provide corresponding Figure 2 A structural diagram of a page display device based on Unreal Engine; DETAILED DESCRIPTION

[0048] To make the purpose, technical solutions, and advantages of one or more embodiments of this specification more clear, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in conjunction with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of one or more embodiments of this specification.

[0049] The technical solutions provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0050] In the existing technology, a service dedicated to communication is built through WebSocket to realize interactive communication between the Unreal Engine and the browser application, so that the part of the page generated by the Unreal Engine and the part of the page generated by the browser application in the same page can respond to each other. However, the communication link of this interactive communication method is long, the network communication is frequent, and it relies on the server. If there is a problem with the server, the interactive communication between the Unreal Engine and the browser application will completely fail.

[0051] In order to solve the defects in the prior art, this solution provides the following embodiments:

[0052] Figure 1 This is a flow chart of a page setting method based on Unreal Engine provided in the embodiment of this specification. Figure 1As shown, the process may include the following steps:

[0053] Step 102: Obtain the user's trigger operation on the user interface blueprint built into the Unreal Engine.

[0054] In the embodiments of this specification, the user interface blueprint is the UI blueprint built into the Unreal Engine. The so-called blueprint is a visual script that can provide designers with all the concepts and tools that are generally only used by programmers. Programmers can easily create a basic system and hand it over to the planner to further expand such a system in the blueprint.

[0055] In the embodiments of this specification, the Unreal Engine may specifically be UE4, the user may be a software developer, and the user's triggering operation on the user interface blueprint built into the Unreal Engine may be a click operation or an instruction-based triggering operation, which is not specifically limited.

[0056] Based on this, step 102: obtaining the user's triggering operation for the user interface blueprint built into the Unreal Engine may specifically include:

[0057] Get the user's trigger action on the UE4 built-in user interface blueprint.

[0058] In the examples of this specification, UE4 stands for Unreal Engine 4, which translates to "Unreal Engine 4" in Chinese. UE4 is an open-source game engine developed by Epic Games. UE4 utilizes the latest technologies, including real-time ray tracing, HDR lighting, and virtual displacement. It can also process 200 million polygons per second in real time, enabling the creation of cinematic CG-quality graphics with exceptional performance.

[0059] Step 104: In response to the trigger operation, a predefined WebBrowser class is created at the Unreal Engine for displaying a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to generate a first page to be displayed at the first preset area according to the event information of the first call event after a first event listening task created by the predefined WebBrowser class listens to a first call event of the browser application for a first preset function at the Unreal Engine; the browser application is configured to generate a second page to be displayed at the second preset area according to the event information of the second call event after a second event listening task created by the predefined WebBrowser class listens to a second call event of the Unreal Engine for a second preset function at the browser application.

[0060] In the embodiments of this specification, the WebBrowser class is a plugin class for browsing pages that comes with Unreal Engine (UE4). A WebBrowser class can be created within the Unreal Engine's user interface blueprint to display a target application page. This WebBrowser class is predefined by writing a communication script into its graph. This predefined WebBrowser class can create a first event listening task to listen for a first call event from the browser application to a first preset function in the Unreal Engine, and can also create a second event listening task to listen for a second call event from the Unreal Engine to a second preset function in the browser application.

[0061] Based on this, step 104: in response to the triggering operation, a predefined WebBrowser class is created in the Unreal Engine for displaying the target application page, which may specifically include:

[0062] In response to the triggering operation, a predefined WebBrowser class for displaying a target application page is created at the UE4.

[0063] Correspondingly, after creating a predefined WebBrowser class for displaying the target application page at the UE4, the following steps may also be included:

[0064] A target installation file is generated according to the first installation file of the UE4 carrying the predefined WebBrowser class and the second installation file of the browser application; the target installation file is used to display the target application page when running at the terminal device.

[0065] In the embodiments of this specification, the first installation file is the installation file obtained by a developer after developing UE4. Running the first installation file enables the corresponding UE4 to be run. The second installation file is the installation file obtained by a developer after developing a browser application. Running the second installation file enables the corresponding browser application to be run. Generating the target installation file based on the first installation file for UE4 carrying a predefined WebBrowser class and the second installation file for the browser application may involve packaging the first and second installation files or reassembling them, without specific limitation.

[0066] Figure 2 This is a flow chart of a method for displaying a page based on Unreal Engine provided in the embodiment of this specification. Figure 2 As shown, the process may include the following steps:

[0067] Step 202: The terminal device obtains a user trigger operation for a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area.

[0068] In the embodiments of this specification, the terminal device can be a computer or a mobile phone, and there is no specific limitation on this. The user's triggering operation on the target application page can be a mouse click operation or a user's touch screen operation, and there is no specific limitation on this.

[0069] In an embodiment of the present specification, a target application page can be presented on a screen of a terminal device. The target application page can include a page generated based on the Unreal Engine and displayed in a first preset area, and a page generated based on a browser application and displayed in a second preset area. The first preset area and the second preset area are located in different locations and have no common area. The specific locations of the first preset area and the second preset area in the target application page are not specifically limited. For example, the first preset area can be on the left side of the target application page and the second preset area can be on the right side of the target application page. Alternatively, the first preset area can be on the upper side of the target application page and the second preset area can be on the lower side of the target application page.

[0070] In the embodiment of this specification, the terminal device needs to start the Unreal Engine and the browser application before obtaining the user's triggering operation on the target application page.

[0071] Based on this, step 202: before the terminal device obtains the user's triggering operation on the target application page, the following may also be included:

[0072] The terminal device obtains a target installation file; the target installation file is generated according to a first installation file of the Unreal Engine carrying the predefined WebBrowser class and a second installation file of the browser application.

[0073] The terminal device starts the Unreal Engine and the browser application based on the target installation file.

[0074] Step 204: Determine the target event triggered by the triggering operation by utilizing the first event monitoring task at the Unreal Engine and the second event monitoring task at the browser application created by the predefined WebBrowser class in the Unreal Engine.

[0075] In the embodiment of this specification, it is necessary to judge the monitoring results of the first event monitoring task and the second event monitoring task, and determine the target event triggered by the user's triggering operation on the target application page according to the judgment result.

[0076] Based on this, step 204: using the first event monitoring task at the Unreal Engine and the second event monitoring task at the browser application created by the predefined WebBrowser class in the Unreal Engine to determine the target event triggered by the triggering operation may specifically include:

[0077] It is determined whether the first event monitoring task monitors a call event of the browser application to a first preset function at the Unreal Engine, and a first determination result is obtained.

[0078] If the first judgment result indicates that the first event monitoring task monitors the call event of the browser application for the first preset function at the Unreal Engine, it is determined that the triggering operation triggers a target event for displaying the page at the first preset area.

[0079] If the first judgment result indicates that the first event monitoring task did not monitor the call event of the browser application for the first preset function at the Unreal Engine, then it is determined whether the second event monitoring task monitors the call event of the Unreal Engine for the second preset function at the browser application to obtain a second judgment result.

[0080] If the second judgment result indicates that the second event monitoring task monitors the call event of the Unreal Engine for the second preset function at the browser application, it is determined that the trigger operation triggers the target event for displaying the page at the second preset area.

[0081] In actual applications, this solution can be used for vehicle-road collaborative operations. Correspondingly, the target application page generated based on the Unreal Engine and displayed in the first preset area can present different driving perspectives, and the target application page generated based on the browser application and displayed in the second preset area can present the driving perspective selection page and the vehicle information of the selected vehicle. In this case, the first event monitoring task at the Unreal Engine created using the predefined WebBrowser class in the Unreal Engine can be a monitoring task for the user's selection operation of the driving perspective on the page in the second preset area, and correspondingly, the second event monitoring task at the browser application can be a monitoring task for the user's selection operation of the vehicle on the page in the first preset area.

[0082] Step 206: If the target event is a call event of the browser application for a first preset function at the Unreal Engine monitored by the first event monitoring task, the Unreal Engine is used to generate a first page to be displayed at the first preset area according to the event information of the target event; if the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, the browser application is used to generate a second page to be displayed at the second preset area according to the event information of the target event.

[0083] In the embodiment of this specification, the first page to be displayed in the first preset area is generated by the Unreal Engine.

[0084] Before the web page or browser application generates the second page to be displayed in the second preset area, it is also necessary to judge the function return value after the preset function is called.

[0085] Based on this, step 206 may specifically include:

[0086] If the target event is a call event of the browser application for the first preset function at the Unreal Engine monitored by the first event monitoring task, a first preset function return value after the first preset function is called is obtained.

[0087] 0 Determine whether the return value of the first preset function is the first preset value; if so, allow the virtual

[0088] The engine generates a first page to be displayed in the first preset area.

[0089] If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, a second preset function return value after the second preset function is called is obtained.

[0090] 5. Determine whether the return value of the second preset function is a second preset value; if so, allow the browser application to generate a second page to be displayed in the second preset area.

[0091] In actual application, corresponding to the scenario described above where this solution is used for vehicle-road cooperative operation, the target application page generated based on the Unreal Engine and displayed in the first preset area can present different driving perspectives, and the target application page generated based on the browser application and displayed in the second preset area can present the driving perspective selection page and the vehicle information of the selected vehicle.

[0092] The selection of driving perspective in the area page corresponds to the call event of the first preset function in the Unreal Engine. The return value after the user selects "first-person driving perspective" is called.

[0093] "1", when it is determined that the return value of the first preset function is the first preset value (1), the phantom call is allowed.

[0094] The engine generates a first page to be displayed in the first preset area (the first page to be displayed displays a picture of the first-person 5 driving perspective); if the user's selection operation of the vehicle in the page of the first preset area corresponds to a call event of the second preset function in the browser application, the user selects the vehicle numbered "2", and the return value after the corresponding second preset function is called is "2", then when it is judged that the return value of the second preset function is the second preset value (2), the browser application is allowed to generate a second page to be displayed in the second preset area (the second page to be displayed displays the vehicle information of the vehicle numbered 2).

[0095] Step 208: Display the first page to be displayed or the second page to be displayed in the target application page.

[0096] In an embodiment of the present specification, the first page to be displayed generated by the Unreal Engine is displayed at the first preset area in the target application page, the second page to be displayed generated by the browser application is displayed at the second preset area in the target application page, and the entire target application page is displayed on the screen of the user terminal device.

[0097] Figure 1 Combining the methods in Figure 2 The method described herein develops a WebBrowser class in Unreal Engine for displaying target application pages, and utilizes this WebBrowser class to enable interaction between the Unreal Engine-generated portion of the target application page and the browser-generated portion. Based on the present invention, when the Unreal Engine and the browser application collaborate to display pages, their interactive communication no longer relies on external services. Furthermore, this solution not only facilitates the maintenance of communication logic but also eliminates network latency, enabling faster interaction between the Unreal Engine-generated portion and the browser-generated portion of the same page.

[0098] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 3 The embodiments of this specification provide corresponding Figure 1 A schematic diagram of the structure of a page setting device based on Unreal Engine. Figure 3 As shown, the device may include:

[0099] The trigger operation acquisition module is used to obtain the user's trigger operations for the user interface blueprint built into the Unreal Engine.

[0100] A WebBrowser class creation module is configured to, in response to the trigger operation, create a predefined WebBrowser class at the Unreal Engine for displaying a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to, after a first event listening task created using the predefined WebBrowser class monitors a first call event of the browser application for a first preset function at the Unreal Engine, generate a first page to be displayed at the first preset area according to the event information of the first call event; and the browser application is configured to, after a second event listening task created using the predefined WebBrowser class monitors a second call event of the Unreal Engine for a second preset function at the browser application, generate a second page to be displayed at the second preset area according to the event information of the second call event.

[0101] based on Figure 3 The present specification also provides some specific implementation plans of the device, which are described below.

[0102] Optionally, the trigger operation acquisition module may specifically include:

[0103] The trigger operation acquisition unit is used to obtain the user's trigger operation on the user interface blueprint built into UE4.

[0104] Correspondingly, the WebBrowser class creation module may specifically include:

[0105] The WebBrowser class creation unit is configured to create, in response to the trigger operation, a predefined WebBrowser class for displaying a target application page at the UE4.

[0106] Optionally, the device may further include:

[0107] A target installation file generation module is used to generate a target installation file based on the first installation file of the UE4 carrying the predefined WebBrowser class and the second installation file of the browser application; when the target installation file is run at the terminal device, it is used to display the target application page.

[0108] Figure 4 The embodiments of this specification provide corresponding Figure 2 A structural diagram of a page display device based on Unreal Engine. Figure 4 As shown, the device may include:

[0109] The trigger operation acquisition module is used to obtain the user's trigger operation for the target application page; the target application page includes a page generated based on the Unreal Engine and displayed in the first preset area and a page generated based on the browser application and displayed in the second preset area.

[0110] The target event determination module is used to determine the target event triggered by the triggering operation by using the first event monitoring task at the Unreal Engine and the second event monitoring task at the browser application created by the predefined WebBrowser class in the Unreal Engine.

[0111] The module for generating pages to be displayed is configured to, if the target event is a call event of the browser application for a first preset function at the Unreal Engine monitored by the first event monitoring task, utilize the Unreal Engine to generate a first page to be displayed at the first preset area according to the event information of the target event; or, if the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, utilize the browser application to generate a second page to be displayed at the second preset area according to the event information of the target event.

[0112] A page display module is used to display the first page to be displayed or the second page to be displayed in the target application page.

[0113] based on Figure 4 The present specification also provides some specific implementation plans of the device, which are described below.

[0114] Optionally, the device may further include:

[0115] The target installation file acquisition module is used to acquire a target installation file; the target installation file is generated based on the first installation file of the Unreal Engine carrying the predefined WebBrowser class and the second installation file of the browser application.

[0116] An application startup module is used to start the Unreal Engine and the browser application based on the target installation file.

[0117] Optionally, the target event determination module may specifically include:

[0118] The first judgment unit is configured to judge whether the first event monitoring task monitors a call event of the browser application to a first preset function at the Unreal Engine, and obtain a first judgment result.

[0119] The target event determination unit determines that the triggering operation triggers a target event for displaying a page at the first preset area if the first judgment result indicates that the first event monitoring task monitors a call event of the browser application for a first preset function at the Unreal Engine.

[0120] The second judgment unit determines whether the second event monitoring task listens to the call event of the first preset function of the Unreal Engine by the browser application if the first judgment result indicates that the first event monitoring task does not listen to the call event of the first preset function of the Unreal Engine, and obtains a second judgment result.

[0121] The target event determination unit determines that the triggering operation triggers a target event for displaying a page at the second preset area if the second judgment result indicates that the second event monitoring task monitors a call event of the Unreal Engine for a second preset function at the browser application.

[0122] Optionally, the module for generating the page to be displayed may specifically include:

[0123] The first preset function return value obtaining unit obtains the first preset function return value after the first preset function is called if the target event is a calling event of the first preset function of the browser application at the Unreal Engine monitored by the first event monitoring task.

[0124] The third judgment unit is used to judge whether the return value of the first preset function is a first preset value; if so, allow the Unreal Engine to generate a first page to be displayed in the first preset area.

[0125] The second preset function return value obtaining unit obtains the second preset function return value after the second preset function is called if the target event is a calling event of the second preset function of the Unreal Engine monitored by the second event monitoring task for the browser application.

[0126] The fourth judgment unit is used to judge whether the return value of the second preset function is a second preset value; if so, allow the browser application to generate a second page to be displayed in the second preset area.

[0127] Based on the same idea, the embodiments of this specification also provide devices corresponding to the above methods.

[0128] Figure 5 The embodiments of this specification provide corresponding Figure 1 A schematic diagram of the structure of a page setting device based on Unreal Engine. Figure 5As shown, the device 500 may include:

[0129] at least one processor 510; and,

[0130] A memory 530 in communication with the at least one processor; wherein,

[0131] The memory 530 stores instructions 520 executable by the at least one processor 510. The instructions are executed by the at least one processor 510 to enable the at least one processor 510 to:

[0132] Get user-triggered actions for Unreal Engine's built-in UI Blueprints.

[0133] In response to the trigger operation, a predefined WebBrowser class is created at the Unreal Engine for displaying a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to generate a first page to be displayed in the first preset area according to the event information of the first call event after a first event listening task created by the predefined WebBrowser class listens to a first call event of the browser application for a first preset function at the Unreal Engine; the browser application is configured to generate a second page to be displayed in the second preset area according to the event information of the second call event after a second event listening task created by the predefined WebBrowser class listens to a second call event of the Unreal Engine for a second preset function at the browser application.

[0134] Figure 6 The embodiments of this specification provide corresponding Figure 2 A schematic diagram of the structure of a page display device based on Unreal Engine. Figure 6 As shown, the device 600 may include:

[0135] at least one processor 610; and,

[0136] A memory 630 in communication with the at least one processor; wherein,

[0137] The memory 630 stores instructions 620 that can be executed by the at least one processor 610. The instructions are executed by the at least one processor 610 to enable the at least one processor 610 to:

[0138] Acquire a user's triggering operation for a target application page; the target application page includes a page generated based on an Unreal Engine and displayed in a first preset area and a page generated based on a browser application and displayed in a second preset area.

[0139] A target event triggered by the triggering operation is determined by utilizing a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine.

[0140] If the target event is a call event of the browser application for a first preset function at the Unreal Engine monitored by the first event monitoring task, the Unreal Engine is used to generate a first page to be displayed at the first preset area according to the event information of the target event.

[0141] If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, the browser application is used to generate a second page to be displayed at the second preset area according to the event information of the target event.

[0142] The first page to be displayed or the second page to be displayed is displayed in the target application page.

[0143] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Figure 5 and Figure 6 As for the device shown, 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.

[0144] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0145] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to implement the same functionality in the form of logic gates, switches, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the means for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as both a software module implementing the method and a structure within the hardware component.

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

[0147] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0148] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

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

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

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

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

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

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

[0155] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

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

[0157] The foregoing is merely an example of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.

Claims

1. A page setting method based on Unreal Engine, characterized in that: The method comprises: Get the user's trigger action on the Unreal Engine's built-in user interface blueprint; In response to the triggering operation, a predefined WebBrowser class is created at the Unreal Engine for displaying target application pages; the target application pages include pages generated based on the Unreal Engine and displayed in a first preset area and pages generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to generate a first page to be displayed at the first preset area according to event information of the first call event after a first event listening task created by the predefined WebBrowser class listens to a first call event of the browser application for a first preset function at the Unreal Engine; the browser application is configured to generate a second page to be displayed at the second preset area according to event information of the second call event after a second event listening task created by the predefined WebBrowser class listens to a second call event of the Unreal Engine for a second preset function at the browser application; The Unreal Engine is UE4; the step of obtaining a user's triggering operation for a user interface blueprint built into the Unreal Engine specifically includes: Get the user's trigger operation on the built-in user interface blueprint of UE4; In response to the triggering operation, creating a predefined WebBrowser class for displaying the target application page at the Unreal Engine, specifically comprising: In response to the triggering operation, creating a predefined WebBrowser class for displaying a target application page at the UE4; After creating a predefined WebBrowser class for displaying the target application page at the UE4, the method further includes: A target installation file is generated according to the first installation file of the UE4 carrying the predefined WebBrowser class and the second installation file of the browser application; the target installation file is used to display the target application page when running at the terminal device.

2. A page display method based on Unreal Engine, characterized in that: The method comprises: The terminal device obtains a user trigger operation for a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; Determining a target event triggered by the triggering operation by using a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine; If the target event is a call event of the browser application to a first preset function at the Unreal Engine monitored by the first event monitoring task, generating a first page to be displayed at the first preset area according to event information of the target event by using the Unreal Engine; If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, generating a second page to be displayed at the second preset area according to event information of the target event by the browser application; Displaying the first page to be displayed or the second page to be displayed in the target application page; The first event monitoring task at the Unreal Engine and the second event monitoring task at the browser application created by utilizing the predefined WebBrowser class in the Unreal Engine to determine the target event triggered by the triggering operation specifically include: Determine whether the first event monitoring task monitors a call event of the browser application to a first preset function at the Unreal Engine, and obtain a first determination result; If the first judgment result indicates that the first event monitoring task monitors the call event of the browser application for the first preset function of the Unreal Engine, then determining that the triggering operation triggers a target event for displaying the page at the first preset area; If the first judgment result indicates that the first event monitoring task has not monitored the call event of the browser application for the first preset function at the Unreal Engine, then determining whether the second event monitoring task has monitored the call event of the Unreal Engine for the second preset function at the browser application, to obtain a second judgment result; If the second judgment result indicates that the second event monitoring task monitors the call event of the Unreal Engine for the second preset function at the browser application, it is determined that the trigger operation triggers the target event for displaying the page at the second preset area.

3. The method according to claim 2, characterized in that Before the terminal device obtains the user's triggering operation on the target application page, the method further includes: The terminal device obtains a target installation file; the target installation file is generated based on the first installation file of the Unreal Engine carrying the predefined WebBrowser class and the second installation file of the browser application; The terminal device starts the Unreal Engine and the browser application based on the target installation file.

4. The method according to claim 2, characterized in that If the target event is a call event of the browser application to a first preset function at the Unreal Engine monitored by the first event monitoring task, generating a first page to be displayed at the first preset area according to event information of the target event by using the Unreal Engine; If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, generating a second page to be displayed at the second preset area by using the browser application according to event information of the target event, specifically comprising: If the target event is a call event of the browser application to the first preset function at the Unreal Engine monitored by the first event monitoring task, obtaining a first preset function return value after the first preset function is called; Determining whether the return value of the first preset function is a first preset value; if so, allowing the Unreal Engine to generate a first page to be displayed in the first preset area; If the target event is a call event of the second preset function of the browser application monitored by the second event monitoring task, obtaining a return value of the second preset function after the second preset function is called; Determine whether the second preset function return value is a second preset value; if so, allow the browser application to generate a second page to be displayed in the second preset area.

5. A page setting device based on Unreal Engine, characterized in that: The device comprises: The trigger operation acquisition module is used to obtain the user's trigger operation for the user interface blueprint built into the Unreal Engine; A WebBrowser class creation module is configured to, in response to the trigger operation, create a predefined WebBrowser class at the Unreal Engine for displaying target application pages; the target application pages include pages generated based on the Unreal Engine and displayed in a first preset area, and pages generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to, after a first event monitoring task created using the predefined WebBrowser class monitors a first call event of the browser application for a first preset function at the Unreal Engine, generate a first page to be displayed at the first preset area according to event information of the first call event; the browser application is configured to, after a second event monitoring task created using the predefined WebBrowser class monitors a second call event of the Unreal Engine for a second preset function at the browser application, generate a second page to be displayed at the second preset area according to event information of the second call event; The Unreal Engine is UE4; the step of obtaining a user's triggering operation for a user interface blueprint built into the Unreal Engine specifically includes: Get the user's trigger operation on the built-in user interface blueprint of UE4; In response to the triggering operation, creating a predefined WebBrowser class for displaying the target application page at the Unreal Engine, specifically comprising: In response to the triggering operation, creating a predefined WebBrowser class for displaying a target application page at the UE4; After creating a predefined WebBrowser class for displaying the target application page at the UE4, the method further includes: A target installation file is generated according to the first installation file of the UE4 carrying the predefined WebBrowser class and the second installation file of the browser application; the target installation file is used to display the target application page when running at the terminal device.

6. A page display device based on Unreal Engine, characterized in that: The device comprises: A trigger operation acquisition module is used to acquire a user's trigger operation for a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; a target event determination module, configured to determine a target event triggered by the triggering operation by using a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine; a to-be-displayed page generating module, configured to, if the target event is a call event of the browser application for a first preset function at the Unreal Engine monitored by the first event monitoring task, utilize the Unreal Engine to generate a first to-be-displayed page at the first preset area based on the event information of the target event; or, if the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, utilize the browser application to generate a second to-be-displayed page at the second preset area based on the event information of the target event; A page display module, configured to display the first page to be displayed or the second page to be displayed in the target application page; The first event monitoring task at the Unreal Engine and the second event monitoring task at the browser application created by utilizing the predefined WebBrowser class in the Unreal Engine to determine the target event triggered by the triggering operation specifically include: Determine whether the first event monitoring task monitors a call event of the browser application to a first preset function at the Unreal Engine, and obtain a first determination result; If the first judgment result indicates that the first event monitoring task monitors the call event of the browser application for the first preset function of the Unreal Engine, then determining that the triggering operation triggers a target event for displaying the page at the first preset area; If the first judgment result indicates that the first event monitoring task has not monitored the call event of the browser application for the first preset function at the Unreal Engine, then determining whether the second event monitoring task has monitored the call event of the Unreal Engine for the second preset function at the browser application, to obtain a second judgment result; If the second judgment result indicates that the second event monitoring task monitors the call event of the Unreal Engine for the second preset function at the browser application, it is determined that the trigger operation triggers the target event for displaying the page at the second preset area.

7. A page setting device based on Unreal Engine, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Get the user's trigger action on the Unreal Engine's built-in user interface blueprint; In response to the triggering operation, a predefined WebBrowser class is created at the Unreal Engine for displaying target application pages; the target application pages include pages generated based on the Unreal Engine and displayed in a first preset area and pages generated based on the browser application and displayed in a second preset area; the Unreal Engine is configured to generate a first page to be displayed at the first preset area according to event information of the first call event after a first event listening task created by the predefined WebBrowser class listens to a first call event of the browser application for a first preset function at the Unreal Engine; the browser application is configured to generate a second page to be displayed at the second preset area according to event information of the second call event after a second event listening task created by the predefined WebBrowser class listens to a second call event of the Unreal Engine for a second preset function at the browser application; The Unreal Engine is UE4; the step of obtaining a user's triggering operation for a user interface blueprint built into the Unreal Engine specifically includes: Get the user's trigger operation on the built-in user interface blueprint of UE4; In response to the triggering operation, creating a predefined WebBrowser class for displaying the target application page at the Unreal Engine, specifically comprising: In response to the triggering operation, creating a predefined WebBrowser class for displaying a target application page at the UE4; After creating a predefined WebBrowser class for displaying the target application page at the UE4, the method further includes: A target installation file is generated according to the first installation file of the UE4 carrying the predefined WebBrowser class and the second installation file of the browser application; the target installation file is used to display the target application page when running at the terminal device.

8. A page display device based on Unreal Engine, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining a user's triggering operation for a target application page; the target application page includes a page generated based on the Unreal Engine and displayed in a first preset area and a page generated based on the browser application and displayed in a second preset area; Determining a target event triggered by the triggering operation by using a first event monitoring task at the Unreal Engine and a second event monitoring task at the browser application created by a predefined WebBrowser class in the Unreal Engine; If the target event is a call event of the browser application to a first preset function at the Unreal Engine monitored by the first event monitoring task, generating a first page to be displayed at the first preset area according to event information of the target event by using the Unreal Engine; If the target event is a call event of the Unreal Engine for a second preset function at the browser application monitored by the second event monitoring task, generating a second page to be displayed at the second preset area according to event information of the target event by the browser application; The first page to be displayed or the second page to be displayed is displayed in the target application page.

Citation Information

Patent Citations

  • Component operating method for unreal engine, system and equipment

    CN110496395A

  • Method and device for model switching, electronic device, and storage medium

    WO2022127275A1