<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lyra on BoilTask's Blog</title><link>https://boiltask.com/en/tags/lyra/</link><description>Recent content in Lyra on BoilTask's Blog</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Fri, 05 Sep 2025 12:59:55 +0800</lastBuildDate><atom:link href="https://boiltask.com/en/tags/lyra/index.xml" rel="self" type="application/rss+xml"/><item><title>Design of Lyra Settings Page</title><link>https://boiltask.com/en/knowledge/ue/lyra-setting-widget/</link><pubDate>Fri, 05 Sep 2025 12:59:55 +0800</pubDate><guid>https://boiltask.com/en/knowledge/ue/lyra-setting-widget/</guid><description>&lt;h2 id="introduction"&gt;&lt;a href="#introduction" class="header-anchor"&gt;&lt;/a&gt;Introduction
&lt;/h2&gt;&lt;p&gt;In Lyra, press &lt;code&gt;ESC&lt;/code&gt; and select &lt;code&gt;OPTIONS&lt;/code&gt; to open the settings page &lt;code&gt;W_LyraSettingScreen&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="page-analysis"&gt;&lt;a href="#page-analysis" class="header-anchor"&gt;&lt;/a&gt;Page Analysis
&lt;/h2&gt;&lt;p&gt;&lt;code&gt;W_LyraSettingScreen&lt;/code&gt; inherits from the C++ class &lt;code&gt;ULyraSettingScreen&lt;/code&gt;, which is based on the &lt;code&gt;GameSettings&lt;/code&gt; plugin&amp;rsquo;s &lt;code&gt;UGameSettingScreen&lt;/code&gt;.&lt;/p&gt;
&lt;pre class="mermaid"&gt;
classDiagram
class W_LyraSettingScreen {
+TopSettingsTabs
+Settings_Panel
+W_BottomActionBar
}
UCommonUserWidget &amp;lt;|-- UCommonActivatableWidget
UCommonActivatableWidget &amp;lt;|-- UGameSettingScreen
UGameSettingScreen &amp;lt;|-- ULyraSettingScreen
ULyraSettingScreen &amp;lt;|-- W_LyraSettingScreen
&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;GameSettings&lt;/code&gt; plugin is based on the &lt;code&gt;CommonUI&lt;/code&gt; plugin. For details, see: &lt;a class="link" href="https://boiltask.com/en/knowledge/ue/plugin-common-ui/"&gt;CommonUI Plugin in Unreal Engine&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="header-tabs"&gt;&lt;a href="#header-tabs" class="header-anchor"&gt;&lt;/a&gt;Header Tabs
&lt;/h3&gt;&lt;p&gt;The tab widget is built with a &lt;code&gt;ULyraTabListWidgetBase&lt;/code&gt;. By defining &lt;code&gt;BindWidget&lt;/code&gt; in C++, you can create a Blueprint widget that is accessible from C++.&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;
&lt;div class="highlight-header"&gt;
&lt;span class="highlight-language"&gt;cpp&lt;/span&gt;
&lt;/div&gt;
&lt;div class="highlight-body"&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-cpp" data-lang="cpp"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;UPROPERTY&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BlueprintReadOnly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Category&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Input&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BindWidget&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;OptionalWidget&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;AllowPrivateAccess&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;TObjectPtr&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;ULyraTabListWidgetBase&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;TopSettingsTabs&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;In Blueprint, this widget is set to a &lt;code&gt;W_HorizontalTabList&lt;/code&gt;, making it easy to adjust the specific style.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;See also: &lt;a class="link" href="https://dev.epicgames.com/documentation/zh-cn/unreal-engine/coding-in-unreal-engine-blueprint-vs-cplusplus?application_version=5.5#combining-blueprint-and-c" target="_blank" rel="noopener"&gt;Combining Blueprint and C++&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;During the page&amp;rsquo;s &lt;code&gt;Construct&lt;/code&gt;, &lt;code&gt;RegisterTopLevelTab&lt;/code&gt; is called to register each tab in sequence.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GameplayCollection&lt;/li&gt;
&lt;li&gt;VideoCollection&lt;/li&gt;
&lt;li&gt;AudioCollection&lt;/li&gt;
&lt;li&gt;MouseAndKeyboardCollection&lt;/li&gt;
&lt;li&gt;GamepadCollection&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For each tab, the actual settings are read via &lt;code&gt;UGameSettingScreen::GetSettingCollection&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The specific settings items depend on &lt;code&gt;GameSetting&lt;/code&gt;&amp;rsquo;s &lt;code&gt;UGameSettingCollection&lt;/code&gt; class.&lt;/p&gt;
&lt;p&gt;After registration, you only need to listen for &lt;code&gt;TopSettingsTabs&lt;/code&gt;&amp;rsquo;s &lt;code&gt;OnTabSelected&lt;/code&gt; to switch to the selected &lt;code&gt;Collection&lt;/code&gt; when the player selects the corresponding tab.&lt;/p&gt;
&lt;h3 id="page-content"&gt;&lt;a href="#page-content" class="header-anchor"&gt;&lt;/a&gt;Page Content
&lt;/h3&gt;&lt;p&gt;This part is mainly orchestrated by the &lt;code&gt;GameSettings&lt;/code&gt; plugin. &lt;code&gt;UGameSettingScreen&lt;/code&gt; defines the variable &lt;code&gt;Settings_Panel&lt;/code&gt; to mark the settings content widget.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Settings_Panel&lt;/code&gt; is the Blueprint &lt;code&gt;W_SettingsPanel&lt;/code&gt;, which is based on the &lt;code&gt;GameSettings&lt;/code&gt; plugin&amp;rsquo;s &lt;code&gt;UGameSettingPanel&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The UI provides the settings item list &lt;code&gt;ListView_Settings&lt;/code&gt;, as well as the settings item details &lt;code&gt;Details_Settings&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="footer-buttons"&gt;&lt;a href="#footer-buttons" class="header-anchor"&gt;&lt;/a&gt;Footer Buttons
&lt;/h3&gt;&lt;p&gt;TODO&lt;/p&gt;</description></item><item><title>Creating the Loading Screen in Lyra</title><link>https://boiltask.com/en/knowledge/ue/lyra-loading-ui/</link><pubDate>Mon, 28 Jul 2025 13:01:12 +0800</pubDate><guid>https://boiltask.com/en/knowledge/ue/lyra-loading-ui/</guid><description>&lt;p&gt;After opening the game map, you&amp;rsquo;ll notice that the Loading screen appears first. Let&amp;rsquo;s analyze the mechanics behind the Loading screen.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://r2.boiltask.com/2025/07/2ec341c6fd901bc93ff7a8570b35609c.png"
loading="lazy"
alt="image.png"
&gt;&lt;/p&gt;
&lt;p&gt;Through investigation, the displayed screen is &lt;code&gt;W_LoadingScreen_Host&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Since the Loading time is short and hard to capture, I searched globally for Loading and confirmed it&amp;rsquo;s this screen by modifying the UI.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Looking up references to this screen, I found no Blueprint that directly references it, so I guessed it was configured in Config.&lt;/p&gt;
&lt;p&gt;A search revealed it&amp;rsquo;s a configuration provided by the &lt;code&gt;CommonLoadingScreen&lt;/code&gt; plugin.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://r2.boiltask.com/2025/07/00893d0706eb8482b5fd9a7c4de009f6.png"
loading="lazy"
alt="image.png"
&gt;&lt;/p&gt;
&lt;p&gt;Below is a detailed analysis of the logic in the &lt;code&gt;CommonLoadingScreen&lt;/code&gt; plugin:&lt;/p&gt;
&lt;p&gt;&lt;a class="link" href="https://boiltask.com/en/knowledge/ue/common-loading-screen/"&gt;The CommonLoadingScreen plugin in UE5&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Creating the Level Selector in Lyra's Default Scene</title><link>https://boiltask.com/en/knowledge/ue/lyra-start-map/</link><pubDate>Thu, 28 Nov 2024 13:04:08 +0800</pubDate><guid>https://boiltask.com/en/knowledge/ue/lyra-start-map/</guid><description>&lt;p&gt;Open Lyra&amp;rsquo;s default scene and run it; you&amp;rsquo;ll find that several level selectors have been generated. Let&amp;rsquo;s look into how they are created.&lt;/p&gt;</description></item><item><title>Downloading the Official Lyra Sample Project in Unreal Engine</title><link>https://boiltask.com/en/knowledge/ue/lyra-download/</link><pubDate>Wed, 27 Nov 2024 12:54:43 +0800</pubDate><guid>https://boiltask.com/en/knowledge/ue/lyra-download/</guid><description>&lt;p&gt;Recently I&amp;rsquo;ve been wanting to study the official &lt;code&gt;UE5&lt;/code&gt; sample project &lt;code&gt;Lyra&lt;/code&gt; in depth, so I&amp;rsquo;ve created a few related blog posts to record my thoughts during the research and to summarize the technical points involved in the project.&lt;/p&gt;
&lt;p&gt;The starting point is November 2024; unless otherwise mentioned, the relevant projects are based on the latest versions as of that date.&lt;/p&gt;
&lt;p&gt;The Lyra project can currently be found on Fab: &lt;a class="link" href="https://www.fab.com/zh-cn/listings/93faede1-4434-47c0-85f1-bf27c0820ad0" target="_blank" rel="noopener"&gt;https://www.fab.com/zh-cn/listings/93faede1-4434-47c0-85f1-bf27c0820ad0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the Unreal Engine launcher &lt;code&gt;Epic Games Launcher&lt;/code&gt;, you can find the &lt;code&gt;Lyra&lt;/code&gt; project in the library and simply create the project.&lt;/p&gt;
&lt;p&gt;After testing, although the changelog states support for UE5.5, the project currently created is still the UE5.1 version, so I&amp;rsquo;ll use the UE5.1 version for testing first.&lt;/p&gt;</description></item></channel></rss>