<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Urszula &quot;Ula&quot; Kustra on Medium]]></title>
        <description><![CDATA[Stories by Urszula &quot;Ula&quot; Kustra on Medium]]></description>
        <link>https://medium.com/@ukustra?source=rss-43c9ecba2af0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eqzlOnX9MfgNtm2DSAY_-w.png</url>
            <title>Stories by Urszula &amp;quot;Ula&amp;quot; Kustra on Medium</title>
            <link>https://medium.com/@ukustra?source=rss-43c9ecba2af0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:53:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ukustra/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A quick overview of privacy-focused Instant Messengers]]></title>
            <link>https://ukustra.medium.com/a-quick-overview-of-privacy-focused-instant-messengers-cf15de181f12?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf15de181f12</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 18:26:02 GMT</pubDate>
            <atom:updated>2026-07-28T21:00:09.378Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my first article about something other than UE development! But apart from making games in Unreal Engine, I’m also a bit interested in data privacy 👩🏻‍💻 I like looking for alternatives to Big Tech softwares and I switch to them if it doesn’t noticeably downgrade my UX experience and security.</p><p>I already rely on the <a href="https://proton.me/">Proton</a> ecosystem quite heavily. Their tools are not only privacy-focused but also often quite secure and effective out-of-the-box.</p><p>However, I was looking for an alternative to mainstream instant messengers recently… and it turned out that, unfortunately, Proton didn’t develop any 😞 So I was checking the software developed by other companies, and I want to share my experience. But first, let’s compare the pros and cons of using mainstream and alternative messengers.</p><h3>Advantages of privacy-focused messengers</h3><ol><li><strong>End-to-end encryption (E2EE)</strong> — probably the most famous data privacy feature. It’s a communication method where only the sender and the recipient can read the messages (as long as they have a recovery key). No one else, including the software/telecom/Internet providers, can read the messages (as long as they don’t have a recovery key). Even though many mainstream messengers already use E2EE, there are still some that don’t. For instance, <a href="https://discord.com/blog/every-voice-and-video-call-on-discord-is-now-end-to-end-encrypted">Discord doesn’t use E2EE for text messages</a>.</li><li><strong>Zero-Knowledge Architecture</strong> — it’s a design that goes further than E2EE. E2EE focuses on secure message transmission. However, the system may still contain a recovery key or certain access mechanisms. The Zero-Knowledge Architecture ensures that recovery keys are isolated from the provider, and it never has access to the plaintext.</li><li><strong>Minimal metadata collection</strong> — the privacy-focused software should log only the technically necessary data. Not the data used for tracking or profiling (for instance, your search history). It also shouldn’t use your metadata for the AI training.</li><li><strong>No identity verification required</strong> — like phone number or your ID card.</li><li><strong>Decentralization</strong> — Big Tech messengers are usually centralized, which means that one company stores all your metadata on its servers. Decentralized messengers store your data on distributed servers owned by different entities. They also often give the self-hosting option and let users store their data on their own servers.</li></ol><h3>Advantages of mainstream messengers</h3><ol><li><strong>They’re feature-rich</strong> — many alternative programs don’t have as many functionalities as the ones from Big Tech companies.</li><li><strong>Security </strong>— non-mainstream programs might not have some security features (like 2FA, automatic backups, signing out on another device), or it’s not trivial to set them up. Big Tech companies usually deliver security features out-of-the-box, but you “pay” for them with your data.</li><li><strong>Community </strong>— Big Tech instant messengers have more users, and it might be difficult to convince people to come to the less popular ones.</li><li><strong>Financial stability</strong> — mainstream companies are very unlikely to go bankrupt, but very niche programs are at risk of being shut down.</li></ol><h3>My privacy-focused instant messenger criteria</h3><ol><li>E2EE and as many other privacy features as possible</li><li>Lower level of metadata collection than mainstream messengers</li><li>No phone number required for registration</li><li>Enough features for convenient communication</li><li>Has a stable development (so no or little risk of being shut down in the near future)</li></ol><p>I personally tested <a href="https://signal.org/">Signal</a>, <a href="https://element.io/">Element</a>, and <a href="https://threema.com/">Threema</a>. However, I also read about <a href="https://telegram.org/">Telegram</a>, <a href="https://getsession.org/">Session</a>, <a href="https://wire.com/">Wire</a>, <a href="https://simplex.chat/">SimpleX</a>, and <a href="https://delta.chat/">Delta Chat</a>, and here are my thoughts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*cju5dsinMSuDZgwjkzgZFw.png" /></figure><h3>My personal winner is…</h3><h4><a href="https://element.io/">Element</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*im8--ghMJyKE1w-7" /></figure><p><strong>Pros:</strong></p><ol><li><strong>E2EE</strong>.</li><li><strong>No phone number required</strong>.</li><li><strong>Decentralized with the self-hosting option</strong>.</li><li><strong>Have enough features for convenient communication</strong> (voice and video calls, group chats, screen sharing, emoji reactions, a few bots).</li><li><strong>Automatic backups and signing out on another device</strong>.</li><li><strong>Its development is financially stable</strong>.</li></ol><p><strong>Cons:</strong></p><ol><li><strong>The mobile app could be better (especially Element X, not Element Classic)</strong> — for instance, it doesn’t have the “Message Search” feature (fortunately, it’s present in the Desktop app).</li><li><strong>Enabling 2FA is not trivial</strong> (not every server allows it).</li><li><strong>The level of metadata collection could be even lower</strong>.</li></ol><h3>My issues with other instant messengers</h3><h4><a href="https://signal.org/">Signal</a> | <a href="https://telegram.org/">Telegram</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hZ-zNeOPdC-DC_KR" /></figure><ol><li><strong>They require the phone number for registration</strong>.</li><li><strong>They’re centralized</strong>.</li></ol><h4><a href="https://threema.com/">Threema</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*ycrFJ80h1-gXx7gN" /></figure><p>I had high hopes for this one. Threema offers a truly anonymous registration — you don’t have to provide your phone number or email address. Your unique ID is generated during registration and bound to your device. Threema offers the Zero-Knowledge Architecture, so it masters the privacy features very well. But it has some issues that eventually discouraged me from it:</p><ol><li><strong>No automatic backups or signing out on another device</strong> — you create your Threema account locally on your device. From this moment, <strong>it’s entirely your responsibility to keep your messages secure</strong>. You need to save the data necessary to revoke your Threema ID remotely. You also have to create manual backups regularly. If you don’t do that and lose access to your device, you’ll be in trouble.</li><li><strong>It’s paid</strong>. Fortunately, it’s not a subscription but a single payment. However, convincing other people to use non-mainstream messengers can be difficult, even if they’re free, not to mention if they’re paid.</li><li><strong>It’s centralized</strong>.</li></ol><h4><a href="https://getsession.org/">Session</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/0*8rtxQ0jK-2RhXcF7" /></figure><p>Session was also very promising in terms of privacy and usability, but there was one thing that clearly discouraged me from it:</p><ol><li><strong>Lack of financial stability</strong> — this year, <a href="https://cyberinsider.com/session-avoids-shutdown-as-community-donations-save-the-project/">Session was almost shut down</a>, but eventually it was saved by donors. No matter how private or secure the tool is, I don’t want to risk that my data will suddenly disappear due to no funding.</li><li><strong>No automatic backups</strong>.</li></ol><h4><a href="https://wire.com/">Wire</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*-rua-fVXlqT3LPEp" /></figure><ol><li><strong>A free version has massive limitations</strong> (for instance, you can only have up to 5 contacts).</li><li><strong>It’s centralized</strong>.</li></ol><h4><a href="https://simplex.chat/">SimpleX</a> | <a href="https://delta.chat/">Delta Chat</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*zXu31rM4yunLHDbeZERB3Q.png" /></figure><ol><li><strong>No automatic backups or signing out on another device</strong>.</li><li><strong>Their financial stability is unclear</strong>.</li></ol><h3>A more detailed comparison of instant messengers</h3><p><a href="https://eylenburg.github.io/im_comparison.htm">Comparison of Instant Messengers</a></p><p>But keep in mind that some information might be outdated.</p><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf15de181f12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why StateTree is becoming my favorite tool from Unreal Engine 5]]></title>
            <link>https://ukustra.medium.com/why-statetree-is-becoming-my-favorite-tool-from-unreal-engine-5-b3c682594c73?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3c682594c73</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Sun, 24 May 2026 22:56:41 GMT</pubDate>
            <atom:updated>2026-05-24T22:56:41.753Z</atom:updated>
            <content:encoded><![CDATA[<p>Back in the UE4 era, I didn’t really like AI programming, and one of the reasons for that is because <a href="https://dev.epicgames.com/documentation/unreal-engine/behavior-tree-in-unreal-engine---quick-start-guide">Behavior Trees</a> were a bit non-intuitive for me to use. The fact that the BT constantly iterates all the composites and executes the first available ones made the state management quite inconvenient. How can I trigger a specific state instantly? How can I describe a specific transition between states? And when you finally created a properly functioning BT, it often turned out that it became difficult to analyze.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cyI1wQ9fnEq2tw2w" /><figcaption>A Behavior Tree</figcaption></figure><p>So when I first heard about <a href="https://dev.epicgames.com/documentation/unreal-engine/overview-of-state-tree-in-unreal-engine">StateTrees</a>, I was sceptical. I thought to myself: <em>Oh geez, another boring AI tool</em> 🙄But after learning a bit more about the ST, I started to love this tool and wanted to use it in many other game systems than just AI. Here is why:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QZNmgYsX8UdYmT2P" /><figcaption>A State Tree</figcaption></figure><h3>The advantages of StateTrees</h3><ul><li><strong>Event-driven workflow</strong> (<a href="https://www.gameprogrammingpatterns.com/observer.html">Observer design pattern</a>) — instead of evaluating composites continuously on tick, StateTree provides a framework for reacting to a specific event, and that approach should make the state management easier.</li><li><strong>Cleanliness</strong> — the whole system flow is stored in a single asset with a simple, hierarchical structure. You can easily analyze it, group tasks, their transitions, conditions for them, and write descriptions for all of that. StateTree assets also provide a built-in, simple yet efficient <a href="https://dev.epicgames.com/documentation/unreal-engine/statetree-debugger-quick-start-guide">debugger</a>.</li><li><strong>Modularity</strong> — UE5 promotes the “<a href="https://en.wikipedia.org/wiki/Composition_over_inheritance">Composition over inheritance</a>” approach in many game systems, and StateTree is one of them. StateTree Tasks should be reusable between other ST assets, and StateTree assets are supposed to be used in various Actors (and also in other ST assets as subtrees) that don’t have to inherit from each other.</li><li><strong>Flexibility</strong> — this is probably the biggest StateTree perk. ST is a design-agnostic system, which means <strong>you can use it not only for AI, but potentially for any other game system!</strong></li></ul><h3>Examples of non-AI systems where StateTrees can be used</h3><h4>Quest System</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*vRtq8pLFKjq_DYGPqgSqfA.png" /><figcaption>An example of the StateTree quest state machine</figcaption></figure><p>StateTree is a perfect match for quests. Typically, you need 1 Quest Manager per world (created as a <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/UWorldSubsystem">WorldSubsystem</a>), but the quest data should be stored in the <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/AGameStateBase">GameState</a> to tweak it efficiently per level. Quests have specific states (undiscovered, inactive, active, completed, failed), and they also need conditions, transitions, and often subquests. Storing all the quest data in a single StateTree asset makes the quest flow easy to read and iterate. And if you need to activate multiple quests at once, you can do that by adding multiple instances of the <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Plugins/StateTreeModule/FStateTreeRunParallelStateTreeTa-">FStateTreeRunParallelStateTreeTask</a> to your Quest Task.</p><p>Additionally, it’s recommended to integrate the <a href="https://github.com/imnazake/gameplay-message-router">GameplayMessageRouter</a> plugin (also known as the “<strong>Gameplay Message Subsystem</strong>” plugin) from the <a href="https://www.fab.com/listings/93faede1-4434-47c0-85f1-bf27c0820ad0">Lyra</a> project, so you can easily create a global delegate that is broadcast every time the quest state has been changed, so other game objects can react to that change without being connected to each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WicDAFhytBlx_OuFLv9eWw.png" /><figcaption>How to use the GameplayMessageRouter plugin from Lyra</figcaption></figure><h4>Dialogue System</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*bAZaVdDTFOImn1WjTBO3pA.png" /><figcaption>An example of the StateTree dialogue state machine</figcaption></figure><p>Due to similar arguments as in the Quest System. A good narrative tool requires:</p><ul><li>Simplicity</li><li>Convenience</li><li>Zero or little risk that non-technical developers (like writers) will break the game</li></ul><p>StateTrees bring it all. The StateTree assets are basically an extended <a href="https://unreal-garden.com/tutorials/data-driven-design/#data-assets">DataAssets</a>, so when narrative designers iterate them, they actually don’t change the logic of the game (unless they edit StateTree Objects like Tasks), but only tweak the data in a more interactive way.</p><h4>Interaction System</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*soinWn_K5fzMnRIpcnBwlw.png" /><figcaption>An example of the StateTree interaction state machine</figcaption></figure><p>If you combine the StateTree, <a href="https://bigm227.medium.com/smart-objects-and-you-in-ue5-pt-1-what-is-smart-object-a9d3e579a077">Smart Objects</a>, and the <a href="https://ukustra.medium.com/why-you-should-use-the-gameplay-ability-system-in-basically-every-unreal-engine-game-bc148b64498a">Gameplay Ability System</a>, you should be able to create a generic interaction system that doesn’t rely strongly on inheritance and can be used potentially by any Actor.</p><h4>Playable Pawns’ States</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*sJwH0sKJivriuM2Rs8UzrA.png" /><figcaption>An example of the StateTree player state machine</figcaption></figure><p>StateTree can be used not only for AI, but also to organize playable Actors’ (player, vehicles) states. You will most likely want to combine it with the <a href="https://ukustra.medium.com/why-you-should-use-the-gameplay-ability-system-in-basically-every-unreal-engine-game-bc148b64498a">Gameplay Ability System (GAS)</a> to do that effectively.</p><h3>The disadvantages of StateTrees</h3><ul><li><strong>Debugging StateTree assets might not scale well </strong>— if you have only 1 ST instance in the level, debugging should be efficient. If you have numerous ST instances, debugging can be painful.</li><li><strong>Limited data exposed to external systems </strong>— for instance, it’s not trivial to check the current StateTree State by external classes.</li><li>Sometimes, <strong>creating custom Tasks or Conditions might require writing the </strong><a href="https://en.wikipedia.org/wiki/Boilerplate_code"><strong>boilerplate code</strong></a><strong> in C++</strong>.</li></ul><h3>Summary</h3><p>Like everything, StateTrees have their flaws. However, to be honest, <strong>StateTree is a game-changer for me</strong>. With its general-purpose design, it can be adapted to possibly any game system. StateTree has the potential to make any gameplay-related third-party plugin obsolete. Whether you need a combat, movement, quest, narrative, or interaction system: you should be able to build it quite easily by using STs. For some game systems, it should be even possible to build such things with Tasks and Conditions created entirely or mostly with BPs, and your systems should still be quite performant, flexible, and easy to iterate.</p><h3>Learning resources</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FU8CkmOJg93M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DU8CkmOJg93M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FU8CkmOJg93M%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/347adc298022720ece85fa34d6fe66cc/href">https://medium.com/media/347adc298022720ece85fa34d6fe66cc/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYEmq4kcblj4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYEmq4kcblj4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYEmq4kcblj4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/558c5481f3e0d34ae30aecfefc5c4735/href">https://medium.com/media/558c5481f3e0d34ae30aecfefc5c4735/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FX4-PFAb3th0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DX4-PFAb3th0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FX4-PFAb3th0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e26101e3a9060f7e4d76ef0705dcf3a/href">https://medium.com/media/8e26101e3a9060f7e4d76ef0705dcf3a/href</a></iframe><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3c682594c73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate everything you can in Unreal Engine! You will thank me later]]></title>
            <link>https://ukustra.medium.com/automate-everything-you-can-in-unreal-engine-you-will-thank-me-later-b9f8824753b9?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f8824753b9</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[gamedev]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Sun, 05 Jan 2025 22:56:06 GMT</pubDate>
            <atom:updated>2026-10-02T22:08:49.418Z</atom:updated>
            <content:encoded><![CDATA[<p>I love automating stuff in Unreal Engine because it makes both the development process less frustrating and finding crucial issues way easier. When it comes to the topic of automation in the UE, there are 3 main subjects to cover:</p><ol><li><a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/data-validation-in-unreal-engine">Data Validation</a></li><li><a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/scripting-and-automating-the-unreal-editor">Scripting and Automating the UE Editor</a></li><li><a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/create-automation-tests-in-unreal-engine">Automation tests</a></li></ol><h3>Data Validation</h3><p><a href="https://unrealdirective.com/articles/data-validation-what-you-need-to-know">Data Validators</a> are important in terms of keeping the best possible practices in your UE assets. You can write any custom condition (for instance: checking the size of the asset, its naming convention, validating the Blueprint Event Graph) for any asset type (Blueprints, Materials, Textures) to validate whether they’re properly created or not. If the asset is invalid, a warning or an error will be displayed in the message log right after saving the asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ak_tBx_EACV7mLjBcSlLQ.png" /></figure><h3>Scripting the editor</h3><p>The editor scripting is important when you want to set similar data in multiple assets or Actors in the level, or if you want to find some specific data in your Content folder. Do you want to set some properties in multiple assets? Recompile and resave many Blueprints at once? Or find assets with specific properties? If so, this is where the editor automation should come in.</p><p>Creating editor scripts is relatively easy because you should be able to automate quite a lot of things by using Blueprints only — <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/scripting-the-unreal-editor-using-blueprints">Editor Utility Blueprints and Editor Utility Widgets</a>, to be more precise. They are called <strong>Editor Utilities</strong> or <strong>Blutilities</strong>.</p><p>However, I highly encourage you to use <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/scripting-the-unreal-editor-using-python"><strong>Python</strong></a> for scripting the editor as well. There are several advantages to using it:</p><ul><li><a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/">Unreal Python API</a> allows you to use not only all the BlueprintCallable functions, but also some functions that by default are available in C++ only (for instance, UObject::Modify).</li><li>Python scripts are text files, so they can be easily modified and merged by multiple people at once.</li><li>With Python, you can use <strong>StartupScripts</strong> that are triggered right after the Engine initialization. You can set them up in <strong>Project Settings-&gt;Plugins-&gt;Python</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gf4TRqC3byhFKd_OKfE6Uw.png" /><figcaption>An option in Project Settings-&gt;Plugins-&gt;Python</figcaption></figure><p>Btw, you can create <a href="https://medium.com/@joe.j.graf/building-ue4-blueprint-function-libraries-in-python-746ea9dd08b2">Blueprint Function Libraries in Python</a> as well.</p><p>You shouldn’t really need C++ for the editor automation. Combining Editor Utility BPs with Python should be more than enough most of the time. But sometimes you might need to write static helper functions in C++ if you need functionality that is missing in the engine by default.</p><h3>Automation tests</h3><p>Even though automation tests and automating the editor sound similar, they are handled by a bit different frameworks. Most of the automation tests should be written in C++ because the FAutomationTestBase structure exists outside of the UObject ecosystem. However, some tests can be created in BP too (I will talk about them later).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*VchiBpgW7l6yqeDS5wft6A.png" /><figcaption>If you work with <a href="https://ukustra.medium.com/why-i-cannot-imagine-coming-back-to-visual-studio-after-using-jetbrains-rider-for-unreal-engine-e619df3cd54d">Rider</a>, you can add a template test class easily</figcaption></figure><p>The most crucial thing to add is the IMPLEMENT_SIMPLE_AUTOMATION_TEST or IMPLEMENT_COMPLEX_AUTOMATION_TEST macro. You need to define a test tag and test flags in it. Then, the only virtual function you need to override is FAutomationTestBase::RunTest (or together with the FAutomationTestBase::GetTests function, if you’re making a complex test).</p><pre>IMPLEMENT_SIMPLE_AUTOMATION_TEST(FPlaceholderTest, &quot;TestGroup.TestSubgroup.PlaceholderTest&quot;, EAutomationTestFlags::EditorContext | EAutomationTestFlags::MediumPriority | EAutomationTestFlags::ProductFilter)<br>     <br>bool FPlaceholderTest::RunTest(const FString&amp; Parameters)<br>{<br>    // you can use those functions to print the test results<br>    const FString LogMessage = TEXT(&quot;TestLog&quot;);<br>    AddInfo(LogMessage);<br>    AddWarning(LogMessage);<br>    AddError(LogMessage);<br>    <br>    return true;<br>}</pre><p>You can trigger the test from the Command Line by using the tag (<a href="https://plugins.jetbrains.com/plugin/16411-ezargs">EzArgs</a> plugin for Rider or <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/using-the-unrealvs-extension-for-unreal-engine-cplusplus-projects">UnrealVS</a> plugin for Visual Studio will be useful to do that):</p><pre>-skipcompile -execcmds=”Automation RunTests TestGroup.TestSubgroup.PlaceholderTest$;Quit” -stdout -unattended -NOSPLASH -NullRHI</pre><p>That means you can trigger automation tests by using CI/CD (Jenkins, TeamCity). You can test your game 24/7, even when you sleep! 🎉</p><p>You can also run your tests through the UE Editor. First of all, make sure that the <strong>Functional Testing Editor plugin is enabled</strong>.</p><p>Then, go to <strong>Tools-&gt;Test Automation</strong>.<strong> </strong>You can easily trigger multiple tests at once there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6QcTErLZxaZyDfQg_HO-w.png" /><figcaption>Testing Automation Frontend in the UE Editor</figcaption></figure><h3>Functional Tests</h3><p>The Functional Test class inherits from an Actor and is supposed to test runtime features. Functional Tests can be created in BP. Here are the most important events and functions provided by a Functional Test class:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*bH-By93uqDX0JqIWxfOrAg.png" /></figure><p>After creating your Functional Test Actor, simply put it on your map. Now, its test tag should be automatically generated in the Testing Automation Frontend window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*b7BkCSJWEWaiTA6JBdKHZA.png" /></figure><h3>Editor Tests</h3><p>If you enable the <strong>Editor Tests plugin</strong>, you can use a new Editor Utility Blueprint class — <strong>Editor Utility Test</strong>. That means you can create editor tests in BP too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*GgKHRYjEhjgZu53TozSBog.png" /><figcaption>The <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Plugins/EditorTests/UEditorUtilityTest">UEditorUtilityTest</a> class has very similar features to the <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Developer/FunctionalTesting/AFunctionalTest">AFunctionalTest</a> class</figcaption></figure><p>Similar to Functional Tests, Editor Utility Tests should be automatically visible in the Testing Automation Frontend as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*J0J2drus0-xf4MuUkyC_GA.png" /></figure><p>Moreover, you can use those tags to trigger both Functional Tests and Editor Utility Tests from the Command Line! 🎉</p><h3>Example Tests</h3><p>Recently, I created a plugin called <a href="https://www.fab.com/listings/4fd21346-ccea-46b1-8a41-40ddade0086c">Editor Test Utilities</a>. It’s basically a package of automation tests for common asset issues. With tests provided, you can test issues like:</p><ul><li>Too complex asset dependency/reference chain of the Player Pawn</li><li>Assets with too big size map (disk size)</li><li>Meshes with too big triangle count</li><li>Blueprints with empty ticks or ticks enabled by default</li><li>Blueprints with Input Axis nodes</li><li>Blueprints that use functions like “GetAllActorsOfClass”</li><li>Blueprints that use pure functions with multiple outputs, or pure functions are connected directly to the “looped” macro</li><li>User Widgets that use bindings</li><li>Widgets that have an inefficient visibility option (Visible or Hidden)</li><li>Redirectors in the project</li></ul><p>I also provided Python scripts that trigger those tests. Those scripts can be executed during the editor startup. If a test from a script fails, it will generate a notification in the Message Log (if the test is passed successfully, no notification should be added to the Message Log during the editor startup).</p><p>The package contains some Editor Functional Tests too.</p><p>Those tests should help you maintain the project in a good state.</p><h3>Other useful stuff</h3><ol><li><a href="https://www.youtube.com/playlist?list=PLKgYiIAqG99cwlb4Y2Pu-cSb_Vw14-t0c">Unreal Engine 5 Python Automation Course</a></li><li><a href="https://www.youtube.com/playlist?list=PLBLmKCAjA25Br8cOVzUroqi_Nwipg-IdP">How To Use Python Inside Unreal Engine 4</a></li><li><a href="https://www.youtube.com/watch?v=BAM5crm-BMM">Python Input &amp; Output Variables In Blueprints Utilities</a></li><li><a href="https://www.orfeasel.com/functional-tests/">Creating Functional Tests with the Automation System</a></li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F0guOMTiwmhk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0guOMTiwmhk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0guOMTiwmhk%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e36c9c835a6d913ec01ff2e21b4cc57/href">https://medium.com/media/2e36c9c835a6d913ec01ff2e21b4cc57/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FD-mDLwNawVU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DD-mDLwNawVU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FD-mDLwNawVU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1748e6ab277259fd34a7c6d25d1b57b/href">https://medium.com/media/b1748e6ab277259fd34a7c6d25d1b57b/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FKmaGxprTUfI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKmaGxprTUfI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FKmaGxprTUfI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/240068479853b58545522f0b94970e4e/href">https://medium.com/media/240068479853b58545522f0b94970e4e/href</a></iframe><p><em>Do you like my articles? Please consider </em><a href="https://buymeacoffee.com/aasurasan"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f8824753b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to easily bind Gameplay Ability System to Enhanced Input]]></title>
            <link>https://ukustra.medium.com/how-to-easily-bind-gameplay-ability-system-to-enhanced-input-b45ece2ca02b?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b45ece2ca02b</guid>
            <category><![CDATA[gameplay-ability-system]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 20:53:05 GMT</pubDate>
            <atom:updated>2026-05-24T19:08:16.303Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>NOTE:</em></strong><em> it’s not a tutorial about any of these plugins but about binding them efficiently.</em></p><p><a href="https://www.unrealdirective.com/articles/enhanced-input-what-you-need-to-know">Enhanced Input</a> is a new default input system in Unreal Engine 5. It’s way more convenient to create inputs than the older system, which is currently deprecated. However, when I tried to learn how to bind it to the <a href="https://ukustra.medium.com/why-you-should-use-the-gameplay-ability-system-in-basically-every-unreal-engine-game-bc148b64498a">Gameplay Ability System</a> (GAS), most solutions I found looked either overcomplicated or not very well designed… So I spent some time creating an efficient solution from both the clean code and the user experience perspectives, and I hope you will find it useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*9ID2G5qvO_uBeqGI30FysQ.png" /></figure><p>In this tutorial, I will use Enhanced Input assets from the <strong>Third Person template:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SI8aohRj2Gw9af0jtz5uIw.png" /></figure><p>First of all, make sure that you have both plugins (“<strong>Gameplay Abilities</strong>” and “<strong>Enhanced Input</strong>”) enabled in <strong>Plugins</strong> and that you have the <strong>DefaultInputComponentClass</strong> set to “<strong>EnhancedInputComponent</strong>” in <strong>Project Settings-&gt;Engine-&gt;Input</strong>.</p><p>Now, let’s create a Data Asset class called <strong>PlayerGameplayAbilitiesDataAsset</strong> that will store our Gameplay Ability data. It’s better to store it in a separate asset than directly in the Character BP because the Character BP often might be needed by other devs from our team:</p><pre>#pragma once<br><br>#include &quot;CoreMinimal.h&quot;<br>#include &quot;Engine/DataAsset.h&quot;<br>#include &quot;Abilities/GameplayAbility.h&quot;<br>#include &quot;PlayerGameplayAbilitiesDataAsset.generated.h&quot;<br><br>class UInputAction;<br><br>USTRUCT()<br>struct FGameplayInputAbilityInfo<br>{<br> GENERATED_USTRUCT_BODY()<br> <br> UPROPERTY(EditAnywhere, Category = &quot;GameplayInputAbilityInfo&quot;)<br> TSubclassOf&lt;UGameplayAbility&gt; GameplayAbilityClass;<br><br> UPROPERTY(EditAnywhere, Category = &quot;GameplayInputAbilityInfo&quot;)<br> TObjectPtr&lt;UInputAction&gt; InputAction;<br> <br> /** It will be generated automatically. */<br> UPROPERTY(VisibleAnywhere, Category = &quot;GameplayInputAbilityInfo&quot;)<br> int32 InputID;<br><br> bool IsValid() const<br> {<br>  return GameplayAbilityClass &amp;&amp; InputAction;<br> }<br> <br> bool operator==(const FGameplayInputAbilityInfo&amp; Other) const<br> {<br>  return GameplayAbilityClass == Other.GameplayAbilityClass &amp;&amp; InputAction == Other.InputAction;<br> }<br><br> bool operator!=(const FGameplayInputAbilityInfo&amp; Other) const<br> {<br>  return !operator==(Other);<br> }<br><br> friend uint32 GetTypeHash(const FGameplayInputAbilityInfo&amp; Item)<br> {<br>  return HashCombine(GetTypeHash(Item.GameplayAbilityClass), GetTypeHash(Item.InputAction));<br> }<br><br> FGameplayInputAbilityInfo()<br>  : InputID(INDEX_NONE)<br> {<br> }<br>};<br><br>/**<br> * <br> */<br>UCLASS()<br>class MYPROJECT_API UPlayerGameplayAbilitiesDataAsset : public UDataAsset<br>{<br> GENERATED_UCLASS_BODY()<br><br>protected:<br> UPROPERTY(EditAnywhere, Category = &quot;AbilitySystem&quot;)<br> TSet&lt;FGameplayInputAbilityInfo&gt; InputAbilities;<br> <br>public:<br> const TSet&lt;FGameplayInputAbilityInfo&gt;&amp; GetInputAbilities() const;<br><br>#if WITH_EDITOR<br> virtual void PostEditChangeProperty(FPropertyChangedEvent&amp; PropertyChangedEvent) override;<br>#endif<br>};</pre><pre>#include &quot;PlayerGameplayAbilitiesDataAsset.h&quot;<br><br>UPlayerGameplayAbilitiesDataAsset::UPlayerGameplayAbilitiesDataAsset(const FObjectInitializer&amp; ObjectInitializer)<br> : Super(ObjectInitializer)<br>{<br>}<br><br>const TSet&lt;FGameplayInputAbilityInfo&gt;&amp; UPlayerGameplayAbilitiesDataAsset::GetInputAbilities() const<br>{<br> return InputAbilities;<br>}<br><br>#if WITH_EDITOR<br>void UPlayerGameplayAbilitiesDataAsset::PostEditChangeProperty(FPropertyChangedEvent&amp; PropertyChangedEvent)<br>{<br> Super::PostEditChangeProperty(PropertyChangedEvent);<br><br> const FProperty* Property = PropertyChangedEvent.Property;<br> if (Property &amp;&amp; Property-&gt;GetFName() == GET_MEMBER_NAME_CHECKED(UPlayerGameplayAbilitiesDataAsset, InputAbilities) &amp;&amp; !InputAbilities.IsEmpty())<br> {<br>  TArray&lt;FGameplayInputAbilityInfo&gt; InputAbilitiesArray = InputAbilities.Array();<br>  <br>  Modify();<br>  <br>  InputAbilities.Empty();<br>  <br>  for (int32 i = 0; i &lt; InputAbilitiesArray.Num(); ++i)<br>  {<br>   FGameplayInputAbilityInfo&amp; Info = InputAbilitiesArray[i];<br>   if (!InputAbilities.Contains(Info))<br>   {<br>    Info.InputID = InputAbilities.Num();<br>    InputAbilities.Add(Info);<br>   }<br>  }<br> }<br>}<br>#endif</pre><p>I created a TSet instead of a TArray because I want to make sure that there will be no more than 1 instance of a pair of the same GameplayAbilityClass AND the same InputAction.</p><p>The InputID needed for a proper GAS setup is automatically generated.</p><p>Now, this is what I implemented into my TestPlayerCharacter.h header file:</p><pre>private:<br> UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = &quot;Input&quot;, meta = (AllowPrivateAccess = &quot;true&quot;))<br> TObjectPtr&lt;UInputMappingContext&gt; DefaultMappingContext;<br><br> UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = &quot;AbilitySystem&quot;, meta = (AllowPrivateAccess = &quot;true&quot;))<br> TObjectPtr&lt;UPlayerGameplayAbilitiesDataAsset&gt; PlayerGameplayAbilitiesDataAsset;<br><br> void InitAbilitySystem();<br> void OnAbilityInputPressed(int32 InputID);<br> void OnAbilityInputReleased(int32 InputID);<br><br>protected:<br> //~ Begin APawn Interface<br> virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;<br> //~ End APawn Interface<br> <br> //~ Begin AActor Interface<br> virtual void BeginPlay() override;<br> //~ End AActor Interface<br><br>public:<br> //~ Begin IAbilitySystemInterface Interface<br> virtual UAbilitySystemComponent* GetAbilitySystemComponent() const override;<br> //~ End IAbilitySystemInterface Interface<br><br> FORCEINLINE UPlayerGameplayAbilitiesDataAsset* GetPlayerGameplayAbilitiesDataAsset() const { return PlayerGameplayAbilitiesDataAsset; }<br></pre><p>The most important ones are InitAbilitySystem, OnAbilityInputPressed and OnAbilityInputReleased functions.</p><p>Here are the implementations from the TestPlayerCharacter.cpp:</p><pre>void ATestPlayerCharacter::InitAbilitySystem()<br>{<br> if (PlayerGameplayAbilitiesDataAsset &amp;&amp; HasAuthority())<br> {<br>  const TSet&lt;FGameplayInputAbilityInfo&gt;&amp; InputAbilities = PlayerGameplayAbilitiesDataAsset-&gt;GetInputAbilities();<br>  constexpr int32 AbilityLevel = 1;<br>  <br>  for (const auto&amp; It : InputAbilities)<br>  {<br>   if (It.IsValid())<br>   {<br>    const FGameplayAbilitySpec AbilitySpec = FGameplayAbilitySpec(It.GameplayAbilityClass, AbilityLevel, It.InputID);<br>    AbilitySystemComponent-&gt;GiveAbility(AbilitySpec);<br>   }<br>  }<br> }<br>}<br><br>void ATestPlayerCharacter::OnAbilityInputPressed(int32 InputID)<br>{<br> if (AbilitySystemComponent)<br> {<br>  AbilitySystemComponent-&gt;AbilityLocalInputPressed(InputID);<br> }<br>}<br><br>void ATestPlayerCharacter::OnAbilityInputReleased(int32 InputID)<br>{<br> if (AbilitySystemComponent)<br> {<br>  AbilitySystemComponent-&gt;AbilityLocalInputReleased(InputID);<br> }<br>}<br><br>void ATestPlayerCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)<br>{<br> if (UEnhancedInputComponent* EnhancedInputComponent = Cast&lt;UEnhancedInputComponent&gt;(PlayerInputComponent))<br> {<br>  if (PlayerGameplayAbilitiesDataAsset)<br>  {<br>   const TSet&lt;FGameplayInputAbilityInfo&gt;&amp; InputAbilities = PlayerGameplayAbilitiesDataAsset-&gt;GetInputAbilities();<br>   for (const auto&amp; It : InputAbilities)<br>   {<br>    if (It.IsValid())<br>    {<br>     const UInputAction* InputAction = It.InputAction;<br>     const int32 InputID = It.InputID;<br>     <br>     EnhancedInputComponent-&gt;BindAction(InputAction, ETriggerEvent::Started, this, &amp;ATestPlayerCharacter::OnAbilityInputPressed, InputID);<br>     EnhancedInputComponent-&gt;BindAction(InputAction, ETriggerEvent::Completed, this, &amp;ATestPlayerCharacter::OnAbilityInputReleased, InputID);<br>    }<br>   }<br>  }<br> }<br>}<br><br>void ATestPlayerCharacter::BeginPlay()<br>{<br> InitAbilitySystem();<br><br> if (const APlayerController* PlayerController = Cast&lt;APlayerController&gt;(Controller))<br> {<br>  if (UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem&lt;UEnhancedInputLocalPlayerSubsystem&gt;(PlayerController-&gt;GetLocalPlayer()))<br>  {<br>   constexpr int32 Priority = 0;<br>   Subsystem-&gt;AddMappingContext(DefaultMappingContext, Priority);<br>  }<br> }<br> <br> Super::BeginPlay();<br>}<br><br>UAbilitySystemComponent* ATestPlayerCharacter::GetAbilitySystemComponent() const<br>{<br> return AbilitySystemComponent;<br>}</pre><p>Last but not least, I also created the GameplayAbility_BaseTriggeredInputActionAbility class for abilities that should have some action during the ETriggerEvent::Triggered InputAction event:</p><pre>#pragma once<br><br>#include &quot;CoreMinimal.h&quot;<br>#include &quot;Abilities/GameplayAbility.h&quot;<br>#include &quot;GameplayAbility_BaseTriggeredInputActionAbility.generated.h&quot;<br><br>struct FInputActionValue;<br><br>/**<br> * <br> */<br>UCLASS(Abstract)<br>class MYPROJECT_API UGameplayAbility_BaseTriggeredInputActionAbility : public UGameplayAbility<br>{<br> GENERATED_UCLASS_BODY()<br><br> UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = &quot;Ability&quot;)<br> bool bCancelAbilityOnInputReleased;<br><br>protected:<br> UPROPERTY()<br> TObjectPtr&lt;UEnhancedInputComponent&gt; EnhancedInputComponent;<br><br> TArray&lt;uint32&gt; TriggeredEventHandles;<br><br> //~ Begin UGameplayAbility Interface<br> virtual void ActivateAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, const FGameplayEventData* TriggerEventData) override;<br> virtual void EndAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled) override;<br>public:<br> virtual void InputReleased(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo) override;<br> //~ End UGameplayAbility Interface<br><br>protected:<br> //~ Begin UGameplayAbility_BaseTriggeredInputActionAbility Interface<br> virtual void OnTriggeredInputAction(const FInputActionValue&amp; Value);<br> //~ End UGameplayAbility_BaseTriggeredInputActionAbility Interface<br>};</pre><pre>UGameplayAbility_BaseTriggeredInputActionAbility::UGameplayAbility_BaseTriggeredInputActionAbility(const FObjectInitializer&amp; ObjectInitializer)<br> : Super(ObjectInitializer)<br> , bCancelAbilityOnInputReleased(true)<br>{<br> InstancingPolicy = EGameplayAbilityInstancingPolicy::InstancedPerActor;<br> NetExecutionPolicy = EGameplayAbilityNetExecutionPolicy::LocalOnly;<br>}<br><br>void UGameplayAbility_BaseTriggeredInputActionAbility::ActivateAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, const FGameplayEventData* TriggerEventData)<br>{<br> Super::ActivateAbility(Handle, ActorInfo, ActivationInfo, TriggerEventData);<br><br> bool bSuccess = false;<br><br> if (const ATestPlayerCharacter* PlayerCharacter = Cast&lt;ATestPlayerCharacter&gt;(GetAvatarActorFromActorInfo()))<br> {<br>  EnhancedInputComponent = Cast&lt;UEnhancedInputComponent&gt;(PlayerCharacter-&gt;InputComponent);<br>  if (EnhancedInputComponent)<br>  {<br>   if (const UPlayerGameplayAbilitiesDataAsset* PlayerGameplayAbilitiesDataAsset = PlayerCharacter-&gt;GetPlayerGameplayAbilitiesDataAsset())<br>   {<br>    const TSet&lt;FGameplayInputAbilityInfo&gt;&amp; InputAbilities = PlayerGameplayAbilitiesDataAsset-&gt;GetInputAbilities();<br>    for (const auto&amp; It : InputAbilities)<br>    {<br>     if (It.IsValid() &amp;&amp; It.GameplayAbilityClass == GetClass())<br>     {<br>      const FEnhancedInputActionEventBinding&amp; TriggeredEventBinding = EnhancedInputComponent-&gt;BindAction(It.InputAction, ETriggerEvent::Triggered, this, &amp;UGameplayAbility_BaseTriggeredInputActionAbility::OnTriggeredInputAction);<br>      const uint32 TriggeredEventHandle = TriggeredEventBinding.GetHandle();<br><br>      TriggeredEventHandles.AddUnique(TriggeredEventHandle);<br>      <br>      bSuccess = true;<br>     }<br>    }<br>   }<br>  }<br> }<br><br> if (bSuccess)<br> {<br>  // You can skip committing ability here if the ability was committed in the parent class<br>  CommitAbility(Handle, ActorInfo, ActivationInfo);<br> }<br> else<br> {<br>  constexpr bool bReplicateCancelAbility = true;<br>  CancelAbility(Handle, ActorInfo, ActivationInfo, bReplicateCancelAbility);<br> }<br>}<br><br>void UGameplayAbility_BaseTriggeredInputActionAbility::EndAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled)<br>{<br> Super::EndAbility(Handle, ActorInfo, ActivationInfo, bReplicateEndAbility, bWasCancelled);<br><br> if (EnhancedInputComponent)<br> {<br>  for (const uint32 EventHandle : TriggeredEventHandles)<br>  {<br>   EnhancedInputComponent-&gt;RemoveBindingByHandle(EventHandle);<br>  }<br>  <br>  EnhancedInputComponent = nullptr;<br> }<br><br> TriggeredEventHandles.Reset();<br>}<br><br>void UGameplayAbility_BaseTriggeredInputActionAbility::InputReleased(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo)<br>{<br> Super::InputReleased(Handle, ActorInfo, ActivationInfo);<br><br> if (bCancelAbilityOnInputReleased)<br> {<br>  CancelAbility(Handle, ActorInfo, ActivationInfo, true);<br> }<br>}<br><br>void UGameplayAbility_BaseTriggeredInputActionAbility::OnTriggeredInputAction(const FInputActionValue&amp; Value)<br>{<br> <br>}</pre><p>Then I created GameplayAbility_PlayerMove and GameplayAbility_PlayerLook abilities that are inherited from GameplayAbility_BaseTriggeredInputActionAbility and overridden the OnTriggeredInputAction virtual function in them to handle basic player movement and camera rotation.</p><p>That’s it from the C++ site, now let’s set it up in assets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*6caMnjZc0KoLgZQ-qI6q3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*VQv3KT_7kqaLH6lSwCTtpQ.png" /></figure><p>Add the DataAsset to the PlayerCharacter BP:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ofhdCAy-3rpYl5S8Nej-Aw.png" /></figure><p>Now simply assign abilities to the input actions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8bfbC4nSZBmzQkxPNt7yg.png" /></figure><p>That’s it! Now all input actions are handled by GAS and bound to Enhanced Input!</p><p>‼️ Also, note that with this technique, <strong>you can bind multiple input actions to the same ability</strong>. ‼️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ejj3UIM26oBPj7KI1cMniA.png" /></figure><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan?source=about_page-------------------------------------"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b45ece2ca02b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to override engine classes of the Actors’ instances in levels without modifying the UE engine…]]></title>
            <link>https://towardsdev.com/how-to-override-engine-classes-of-the-actors-instances-in-levels-without-modifying-the-ue-engine-a11397a71bf7?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a11397a71bf7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Tue, 30 Jan 2024 01:42:43 GMT</pubDate>
            <atom:updated>2026-05-24T19:06:16.632Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to override engine classes of the Actors’ instances in levels without modifying the Unreal Engine source code</h3><p>Sometimes you might want to override Unreal Level Actors’ classes like <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/AStaticMeshActor">AStaticMeshActor</a>, <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/ASkeletalMeshActor">ASkeletalMeshActor</a>, <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/APlayerStart">APlayerStart</a>, and so on — to either expand their functionalities or optimize their settings. But you cannot set their default classes in Project Settings, and modifying the engine’s source code with project-specific changes is not a good idea — that breaks the <a href="https://en.wikipedia.org/wiki/SOLID">SOLID principles</a>.</p><p>So, is it even possible?</p><p>Fortunately, yes. You can do that with <a href="https://docs.unrealengine.com/en-US/ProgrammingAndScripting/ProgrammingWithCPP/Assets/CoreRedirects/">Core Redirects</a>.</p><p><a href="https://www.unrealdirective.com/articles/core-redirectors-what-you-need-to-know"><strong>Core Redirects</strong></a><strong> are one of the most important tools in terms of Unreal Engine programming</strong> — you should use them every time you change the names of any <a href="https://benui.ca/unreal/uproperty/">UPROPERTY</a>, <a href="https://benui.ca/unreal/ufunction/">UFUNCTION</a>, <a href="https://benui.ca/unreal/uclass/">UCLASS</a>, <a href="https://benui.ca/unreal/ustruct/">USTRUCT</a>, <a href="https://benui.ca/unreal/uinterface/">UINTERFACE</a>, or <a href="https://benui.ca/unreal/uenum-umeta/">UENUM</a> — <strong>otherwise, their usages in Blueprints will break </strong>(btw, <a href="https://ukustra.medium.com/why-i-cannot-imagine-coming-back-to-visual-studio-after-using-jetbrains-rider-for-unreal-engine-e619df3cd54d">Rider refactoring tools can generate Core Redirects automatically!</a>).</p><p>In this example, I will use ClassRedirects to redirect the engine’s ASkeletaMeshActor class to my custom AMySkeletaMeshActor class in Actors’ instances in levels. <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/USkeletalMeshComponent">USkeletalMeshComponent</a> has various properties for skeletal mesh optimization, so we can apply them to every Skeletal Mesh Actor in every level.</p><h3>‼️ATTENTION ‼️</h3><p>You shouldn’t use this technique with BP classes because the size of the BP class can noticeably increase very easily because of <a href="https://medium.com/advanced-blueprint-scripting-in-unreal-engine/object-references-in-blueprints-4c0df7f4dc1d">how object references in BPs are handled</a>. So<strong>, overriding engine classes of Level Actors with Blueprint classes might noticeably increase the loading times and have a bad impact on performance. You should use this technique with C++ classes only.</strong></p><p>So let’s create the AMySkeletalMeshActor C++ class. Before we start, I suggest disabling the bAutomaticallyCompileNewClasses in <strong>Edit-&gt;Editor Preferences</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*oUnjEaEZoHBftfsMIyYSOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*-QanSgxP_z9EcRbksgzMSg.png" /><figcaption>I suggest disabling those properties in Edit-&gt;Editor Preferences</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*pMZLY405koKb2bW1WHFKFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*1GsNPsfY1YdDkRZ8ptnL4Q.png" /></figure><p>Now, let’s create a very simple class with some optimizations:</p><pre>#pragma once<br><br>#include &quot;CoreMinimal.h&quot;<br>#include &quot;Animation/SkeletalMeshActor.h&quot;<br>#include &quot;MySkeletalMeshActor.generated.h&quot;<br><br>/**<br> * <br> */<br>UCLASS()<br>class MYPROJECT_API AMySkeletalMeshActor : public ASkeletalMeshActor<br>{<br> GENERATED_UCLASS_BODY()<br>};</pre><pre>#include &quot;MySkeletalMeshActor.h&quot;<br><br>AMySkeletalMeshActor::AMySkeletalMeshActor(const FObjectInitializer&amp; ObjectInitializer)<br> : Super(ObjectInitializer)<br>{<br> // Enabling some optimization settings<br> USkeletalMeshComponent* MeshComponent = GetSkeletalMeshComponent();<br> MeshComponent-&gt;bEnableUpdateRateOptimizations = true;<br> MeshComponent-&gt;bPerBoneMotionBlur = false;<br>}</pre><p>After compiling the code, add this to your DefaultEngine.ini in the Config directory in your project:</p><pre>[CoreRedirects]<br>+ClassRedirects=(OldName=&quot;/Script/Engine.SkeletalMeshActor&quot;,NewName=&quot;/Script/MyProject.MySkeletalMeshActor&quot;,InstanceOnly=true)</pre><p>‼️Of course, you have to replace MyProject with the actual name of your project.‼️</p><p>I set InstanceOnly to true, because I want to redirect only Actors’ instances in levels, not the potential Blueprints that inherit from that class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6tuQYsbxpn6xas3OxpogQ.png" /></figure><p>Now, after reopening your projects, Skeletal Mesh Actors’ instances should inherit from my custom class and have specific properties overridden:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tife-6zLnpaSm3FiLh68RQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*ouTBYqtzYrLzKxwx9Nf0Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*uPUTdG62oQPe0cCZkMDjOw.png" /></figure><p>That’s it! Extending the engine classes of Level Actors is that easy, and fortunately, it doesn’t require recompiling the whole source code 😌</p><h3>References:</h3><ol><li><a href="https://docs.unrealengine.com/en-US/core-redirects-in-unreal-engine/">Core Redirects in the UE Documentation</a></li><li><a href="https://www.unrealdirective.com/articles/core-redirectors-what-you-need-to-know">Core Redirectors: What you need to know</a></li></ol><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan?source=about_page-------------------------------------"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a11397a71bf7" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/how-to-override-engine-classes-of-the-actors-instances-in-levels-without-modifying-the-ue-engine-a11397a71bf7">How to override engine classes of the Actors’ instances in levels without modifying the UE engine…</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Please, stop using Level Blueprints. Now.]]></title>
            <link>https://ukustra.medium.com/please-stop-using-level-blueprints-now-691246c3ad41?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/691246c3ad41</guid>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[blueprint]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 00:52:51 GMT</pubDate>
            <atom:updated>2026-08-05T21:14:28.818Z</atom:updated>
            <content:encoded><![CDATA[<p>Unreal Engine’s <a href="https://unrealcommunity.wiki/fundamental-blueprint-practices-fw8bkyyw">Blueprints Visual Scripting</a> is probably the most famous UE feature, and it’s good for starting learning programming, prototyping, <a href="https://benui.ca/unreal/data-driven-design/">data-driven development</a> with all core mechanics written in C++ and just overriding properties in BPs, or implementing the <a href="https://www.gameprogrammingpatterns.com/observer.html">Observer design pattern</a> when the core implementations are written in C++, with additional <a href="https://unreal-garden.com/docs/ufunction/#blueprintimplementableevent">BlueprintImplementableEvents</a>, <a href="https://unreal-garden.com/docs/ufunction/#blueprintnativeevent">BlueprintNativeEvents</a> or <a href="https://unreal-garden.com/docs/uproperty/#blueprintassignable">BlueprintAssignable</a> delegates that can be overridden in BPs with some cosmetic implementations.</p><p>However, Blueprints are not so great in terms of performance or extending the default tools provided by UE, so you shouldn’t make an entire game with them unless you work on very simple project and plan to release it on just one platform.</p><h3>The major issues with Blueprints in general are:</h3><ul><li><strong>Object references</strong></li></ul><ol><li><a href="https://medium.com/advanced-blueprint-scripting-in-unreal-engine/object-references-in-blueprints-4c0df7f4dc1d">Object references in Blueprints</a></li><li><a href="https://raharuu.github.io/unreal/hard-references-reasons-avoid/">Hard References &amp; Reasons to Avoid Them</a></li></ol><ul><li><strong>Pure functions</strong></li></ul><ol><li><a href="https://medium.com/advanced-blueprint-scripting-in-unreal-engine/pure-impure-functions-516367cff14f">Pure &amp; impure functions</a></li><li><a href="https://raharuu.github.io/unreal/blueprint-pure-functions-complicated/">Blueprint Pure Functions: Yes? No? It’s Complicated</a></li></ol><ul><li><strong>Bad performance in handling tick functions or big containers because of how </strong><a href="https://www.youtube.com/watch?v=6XkyDjry3ag&amp;t=556s"><strong>Blueprints are compiled</strong></a></li><li><strong>Classes, Structs or Enums created in BPs cannot be used in C++, but the same things created in C++ can be used both in C++ and BPs</strong></li></ul><p>Here is a detailed UE documentation article about how BPs and C++ should be combined:</p><p><a href="https://docs.unrealengine.com/4.27/en-US/Resources/SampleGames/ARPG/BalancingBlueprintAndCPP/"><strong>Balancing Blueprint and C++</strong></a></p><p>‼️ <strong>And it’s probably one of the most important articles in the whole UE docs. ‼️</strong></p><h3>Level Blueprints are just bad for almost everything</h3><p>Among all Blueprint types, Level Blueprints have the worst design and have barely any advantages<a href="#17f7">¹</a>. They have very limited support for OOP concepts, and their main problems are:</p><h4>Weird inheritance support</h4><p>Yes, Level Blueprints support some inheritance — you can create a base class that inherits from <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/ALevelScriptActor">ALevelScriptActor</a> both in BP and C++ and add some generic implementations that should be reusable in every Level Blueprint in the game. Then you can set that class in <strong>Project Settings-&gt;Engine-&gt;General Settings-&gt;Level Script Actor Class</strong>, and it will be used as a default parent class of every Level Blueprint in the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*wd4Q1dtRftI-AcwxOI35fQ.png" /><figcaption>An option in Project Settings-&gt;Engine-&gt;General Settings</figcaption></figure><p>However, you can set both BP and C++ classes as a default class, but <strong>if you want to reparent a specific Level Blueprint in File-&gt;Reparent Blueprint, only C++ classes will be allowed</strong>. Also, Level Blueprints don’t show you the class they currently inherit from, like other Blueprints. Those issues might lead to potential problems with the binary asset after changing the parent class too carelessly.</p><h4>No access to other Level Blueprints</h4><p>By default, it’s not possible to access other Level Blueprints’ properties in the Level Blueprint Event Graph. Most likely, it was done on purpose because you need to load another level for that, which might have a huge impact on performance. Although you can write a BP node in C++ for that (it’s a latent node because big assets should be loaded asynchronously):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*F3TKTFcsP6XbOXTpnfIGEg.png" /><figcaption>An example of the custom BlueprintAsyncActionBase node for loading the LevelScriptActor from the soft object of the World</figcaption></figure><p>But still, you will have very limited access to Level Blueprint properties, because the ALevelScriptActor class has the <a href="https://unreal-garden.com/docs/uclass/#minimalapi">MinimalAPI</a> <a href="https://benui.ca/unreal/uclass/">UCLASS</a> specifier (unless you work with <a href="https://dev.epicgames.com/community/learning/tutorials/bLXe/interfaces-bp-c">Interfaces</a>).</p><h4>What do those issues mean?</h4><p>Because of the Level Blueprints design, many people don’t use any good programming principles in them at all. The <a href="https://medium.com/0xcode/dry-dont-repeat-yourself-avoiding-redundancy-in-software-programming-e264ec97276e">DRY</a> principle is commonly broken in Level Blueprints because many people copy-paste the same implementation into every Level instance. The fact that the polymorphism in Level Blueprints is very limited means that the <a href="https://dev.to/kwereutosu/the-k-i-s-s-principle-in-programming-1jfg">KISS</a> principle is also often broken and the implementations made there are usually painful to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*OhPgF-LEaQpPGRg7lf6G0Q.png" /><figcaption>A typical Level Blueprint Event Graph after a few weeks of development</figcaption></figure><p>‼️ Also, keep in mind that <strong>Level assets are essential for other teams</strong> — artists, level designers, and so on. So <strong>you shouldn’t lock them often and block other people’s work</strong>. ‼️</p><h3>So are Level Blueprints good for something?</h3><p>The only thing they’re safe and useful for is testing your implementations in your test levels.</p><h3>What should I use instead of Level Blueprints?</h3><ol><li>Other classes from the <a href="https://www.tomlooman.com/unreal-engine-gameplay-framework/">Unreal Engine Gameplay Framework</a>: <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/UGameInstance">UGameInstance</a>, <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/AWorldSettings">AWorldSettings</a>, <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/AGameModeBase">AGameModeBase</a>, <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/AGameStateBase">AGameStateBase</a>, <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/APlayerState">APlayerState</a> — a choice depends on what exactly you want to implement</li><li><a href="https://ukustra.medium.com/why-statetree-is-becoming-my-favorite-tool-from-unreal-engine-5-b3c682594c73">StateTrees</a></li><li>Unreal <a href="https://benui.ca/unreal/subsystem-singleton/">Subsystems</a> (preferably derived from <a href="https://dev.epicgames.com/documentation/unreal-engine/API/Runtime/Engine/UWorldSubsystem">UWorldSubsystem</a>)</li><li>External plugins like <a href="https://github.com/MothCocoon/FlowGraph">FlowGraph</a> or <a href="https://arcweave.com/">Arcweave</a></li></ol><p>[<a href="#e9d9">1</a>]: This article was made from the UE 5.3 perspective. Theoretically, the issues mentioned there might be fixed in the future release, but it’s not very likely because ever since I can remember, they have been present in UE.</p><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan?source=about_page-------------------------------------"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=691246c3ad41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I cannot imagine coming back to Visual Studio after using JetBrains Rider for Unreal Engine]]></title>
            <link>https://ukustra.medium.com/why-i-cannot-imagine-coming-back-to-visual-studio-after-using-jetbrains-rider-for-unreal-engine-e619df3cd54d?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e619df3cd54d</guid>
            <category><![CDATA[jetbrains-rider]]></category>
            <category><![CDATA[visual-studio]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[jetbrains]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 23:47:03 GMT</pubDate>
            <atom:updated>2026-05-24T18:46:47.913Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s not sponsored content, I promise<a href="#3577">¹</a>! I just love working with this IDE because of various reasons, and I want to explain why I think Rider is the best choice for Unreal Engine programmers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ye_20G2GIs9EjHZpGBxQoA.jpeg" /></figure><h3><strong>Performance</strong></h3><p>Rider is way faster than VS in most cases, especially if you use Visual Studio with extensions (and you will most likely use at least some extensions like <a href="https://www.unrealengine.com/marketplace/en-US/product/visual-studio-integration-tool">Visual Studio Integration Tool</a>, because working with pure VS with UE is a huge pain in the neck, especially if you develop a bigger project).</p><p>While searching the entire solution can even freeze Visual Studio, <strong>searching the whole Unreal Engine source code takes just a moment</strong>, and you won’t even notice any impact on performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*rM0xKsmFfWLIKc20no9vAw.png" /><figcaption>Source: <a href="https://blog.ndepend.com/visual-studio-vs-jetbrains-rider-performance/">https://blog.ndepend.com/visual-studio-vs-jetbrains-rider-performance/</a></figcaption></figure><h3>Great C++ support &amp; productivity tools available out-of-the-box</h3><p>By default, C++ syntax support in Visual Studio is very limited. Rider will suggest various types of code improvements: From the most basic ones like passing structure parameters by const reference, to the more advanced ones like using <a href="https://www.geeksforgeeks.org/what-are-forward-declarations-in-c/">forward declarations</a> or the <a href="https://www.learncpp.com/cpp-tutorial/constexpr-variables/">constexpr</a> keyword:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*pyT8TJBzeAmAEuax4LXD_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*6_yJrm80YngHCLmzNTlD4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*ZM-6rQM5fFb4NLeze857Dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*E9m5yUV3VANbxn8IhDwYKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*ADmrIXVECgYqm8wnu3Bjfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*5bZzGn7tB-oGdQhfseMoTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*Yb5L3RSzE47N4GANO4y01A.png" /></figure><p>It also has a convenient code description system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*a9nUKMkKMvWhwRedAF4IJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*gpuL-6KYSvk4tKfO2bIiIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*_qeeTiyL_eJQTLznwJ0iVA.png" /></figure><p>Rider also provides very handy productivity tools, like generating multiple definitions at once or a very detailed refactoring tool for changing the function’s declaration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*4MkniSFxiLrUbP8X_WBKGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*LSxJpN1dKLPmcddGC-bNXg.png" /></figure><h3>Fantastic Unreal Engine support</h3><p>Apart from the famous scanning “Content” folder feature that allows showing usages of <a href="https://benui.ca/unreal/uclass/">UCLASS</a>, <a href="https://benui.ca/unreal/uproperty/">UPROPERTY</a> and <a href="https://benui.ca/unreal/ufunction/">UFUNCTION</a>, Rider supports everything essential for convenient and efficient work with Unreal: from detailed tooltips for Unreal syntax to suggesting how to work with <a href="https://gameblog.deancaldwell.com/posts/gc-in-ue/">Unreal Engine’s Garbage Collection</a> or automatically adding <a href="https://www.unrealdirective.com/articles/core-redirectors-what-you-need-to-know">Core Redirectors</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-HqHGfQhg8a24A96ldGIbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iw0dxcZ53fQHgV4vYEodeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mUy8uuop785H49fRO5XPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*RcxIFhBBKOdFm9QR3vhHwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*_I4g9GAm0AQELKDLPGz4pA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgqdAsM2OU-JnO4tCrCHWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*B0U9PMlUvf81Xz6_LL_fUA.png" /><figcaption>You can call “Generate Visual Studio project files” directly from the IDE too</figcaption></figure><h3>Having a positive impact on Visual Studio development</h3><p>The mentioned earlier <a href="https://www.unrealengine.com/marketplace/en-US/product/visual-studio-integration-tool">Visual Studio Integration Tool</a> was developed after Rider delivered its game-changing Blueprint support.<br>However, the overall quality of JetBrains tools seems to motivate Microsoft to boost the Unreal Engine support in Visual Studio. You can read <a href="https://devblogs.microsoft.com/cppblog/author/davidli1/">David Li’s Microsoft DevBlog</a> for the latest improvements of Visual Studio in terms of Unreal Engine development.</p><h3>Does Rider have any flaws?</h3><p>Actually, yes…</p><h4>It’s paid</h4><p>U̶n̶l̶i̶k̶e̶ ̶V̶i̶s̶u̶a̶l̶ ̶S̶t̶u̶d̶i̶o̶ ̶o̶r̶ ̶P̶y̶C̶h̶a̶r̶m̶,̶ ̶R̶i̶d̶e̶r̶ ̶d̶o̶e̶s̶n̶’̶t̶ ̶h̶a̶v̶e̶ ̶t̶h̶e̶ ̶C̶o̶m̶m̶u̶n̶i̶t̶y̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶a̶n̶d̶ ̶i̶t̶ ̶h̶a̶s̶ ̶a̶ ̶p̶a̶i̶d̶ ̶l̶i̶c̶e̶n̶s̶e̶ ̶o̶n̶l̶y̶.̶ ̶O̶n̶ ̶t̶h̶e̶ ̶o̶t̶h̶e̶r̶ ̶h̶a̶n̶d̶,̶ ̶i̶t̶ ̶d̶e̶l̶i̶v̶e̶r̶s̶ ̶o̶u̶t̶-̶o̶f̶-̶t̶h̶e̶-̶b̶o̶x̶ ̶e̶v̶e̶n̶ ̶b̶e̶t̶t̶e̶r̶ ̶f̶e̶a̶t̶u̶r̶e̶s̶ ̶t̶h̶a̶n̶ ̶V̶S̶ ̶w̶i̶t̶h̶ ̶p̶a̶i̶d̶ ̶e̶x̶t̶e̶n̶s̶i̶o̶n̶s̶ ̶l̶i̶k̶e̶ ̶<a href="https://www.wholetomato.com/">V̶i̶s̶u̶a̶l̶ ̶A̶s̶s̶i̶s̶t̶</a>.̶ — This paragraph is not true anymore! <a href="https://blog.jetbrains.com/blog/2024/10/24/webstorm-and-rider-are-now-free-for-non-commercial-use/">Rider provides a free license for non-commercial use</a> now! 🎉</p><p>However, if you want to buy the paid license, I suggest buying the <a href="https://www.jetbrains.com/dotnet/">dotUltimate</a> license, because it has a similar price as Rider, but also contains <a href="https://www.jetbrains.com/resharper-cpp/">ReSharper C++</a> — the Visual Studio extension that has the most crucial Rider features.</p><h4>Debugger</h4><p>It seems the Visual Studio debugger can be better in some cases, for instance, <a href="https://youtrack.jetbrains.com/issue/RIDER-43889">debugging console builds</a>.</p><p>However, as you can read in the comment section of that YouTrack thread, <a href="https://www.jetbrains.com/lp/rider-consoles/">Rider has already developed some console support</a>.</p><h3>Free plugins that make Rider even better</h3><ol><li><a href="https://plugins.jetbrains.com/plugin/16411-ezargs">EzArgs </a>— an equivalent of <a href="https://docs.unrealengine.com/en-US/using-the-unrealvs-extension-for-unreal-engine-cplusplus-projects/">UnrealVS</a></li><li><a href="https://plugins.jetbrains.com/plugin/18787-enhancedunrealenginedocumentation">EnhancedUnrealEngineDocumentation </a>— provides tooltips with <a href="https://benui.ca/unreal/docs/">benui’s Unreal Engine Documentation</a></li></ol><h3>More detailed comparisons</h3><ol><li><a href="https://www.jetbrains.com/rider/compare/rider-vs-visual-studio/">JetBrains Rider vs Visual Studio</a> (with and without ReSharper)</li><li><a href="https://codingsight.com/visual-studio-vs-jetbrains-rider-a-detailed-comparison/">Visual Studio vs JetBrains Rider: A Detailed Comparison</a> (from a .NET developer perspective)</li></ol><p><a href="#2eb5">[1]</a>: <em>I wouldn’t mind some donation for praising Rider though, so if someone from JetBrains is reading this article, feel free to contact me…</em> 😉</p><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan?source=about_page-------------------------------------"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e619df3cd54d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should use the Gameplay Ability System in basically every Unreal Engine game]]></title>
            <link>https://ukustra.medium.com/why-you-should-use-the-gameplay-ability-system-in-basically-every-unreal-engine-game-bc148b64498a?source=rss-43c9ecba2af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc148b64498a</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[gameplay-ability-system]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[Urszula "Ula" Kustra]]></dc:creator>
            <pubDate>Tue, 02 Jan 2024 00:16:48 GMT</pubDate>
            <atom:updated>2026-05-24T18:49:43.503Z</atom:updated>
            <content:encoded><![CDATA[<p>Initially designed for <a href="https://www.unrealengine.com/en-US/paragon">Paragon</a>, the Gameplay Ability System (GAS) is a flexible framework for handling gameplay states. It’s mostly recommended for multiplayer projects because it also provides efficient and secure MP support. But I would highly recommend using that framework even in single-player projects that need something similar to a <a href="https://www.gamedeveloper.com/programming/bitmask-multi-state-machine">Bitmask Multi State Machine</a> — so basically in almost every game genre. Here’s why:</p><h3>Gameplay Ability</h3><p>It’s a base class for every gameplay state, designed to implement any gameplay behaviour (jumping, shooting, casting a spell, and so on). <a href="https://docs.unrealengine.com/en-US/using-gameplay-abilities-in-unreal-engine/">UGameplayAbility</a> — and GAS in general — uses <strong>GameplayTags</strong> widely. They are one of the best and most important features in terms of Unreal Engine development. <a href="https://www.tomlooman.com/">Tom Looman</a> wrote a detailed article about <a href="https://www.tomlooman.com/unreal-engine-gameplaytags-data-driven-design/"><strong>why GameplayTags are awesome</strong></a> and why you should use them as much as possible, but long story short:</p><ul><li>They’re great for filtering the data: They are divided into subcategories, so if you manage them properly (Some examples: Skills.Player.Shooting, Skills.Player.Idle), you can simply pass a parent tag to a specific function (Skills.Player) to easily affect all the child tags, without needing any kind of refactoring. That approach is also consistent with the <a href="https://en.wikipedia.org/wiki/SOLID">SOLID principles</a>.</li><li>They work with the <a href="https://docs.unrealengine.com/4.27/en-US/Basics/ContentBrowser/ReferenceViewer/">Reference Viewer</a>, so searching and managing assets with GameplayTags is way more efficient than using simple FName. I also recommend setting <strong>ShowSearchableNames</strong> in <strong>Project Settings-&gt;Editor-&gt;Appearance</strong> to <strong>“ShowByDefault”</strong>. Thanks to that option, the Reference Viewer will show used GameplayTags and other important structures (like Table rows) by default.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*1vVKTRD2OYYxWFaDATX27w.png" /><figcaption>An option in Project Settings-&gt;Editor-&gt;Appearance</figcaption></figure><ul><li>Combined with the <a href="https://forums.unrealengine.com/t/why-the-heck-is-igameplaytagassetinterface-not-exposed-to-blueprints/99819/3"><strong>IGameplayTagAssetInterface</strong></a>, GameplayTags are great to avoid casts, which also means <strong>decreasing the usage of hard object references in BPs</strong>. And you can read <a href="https://medium.com/advanced-blueprint-scripting-in-unreal-engine/object-references-in-blueprints-4c0df7f4dc1d">here</a> or <a href="https://raharuu.github.io/unreal/hard-references-reasons-avoid/">here</a> why <strong>this can be a HUUUGE pain in the neck during the Unreal Engine development</strong> (btw, both <a href="https://medium.com/u/9b1f5dbcc806">Morva Kristóf</a> and <a href="https://raharuu.github.io/">raharu</a> are great authors!)‼️</li></ul><p>So let’s return to the UGameplayAbility class…</p><p>It uses several <a href="https://docs.unrealengine.com/en-US/API/Runtime/GameplayTags/FGameplayTagContainer/"><strong>GameplayTagContainers</strong></a> for handling the interactions with other states. Most GameplayAbilities should have the AbilityTags — it’s an ID of the specific ability class. Then you have containers like CancelAbilitiesWithTags, BlockAbilitiesWithTags — they will cancel or block specific abilities when our ability is active.<br>Other important containers are ActivationOwnedTags, ActivationRequiredTags, and ActivationBlockedTags. Those tags refer not to ability objects but to the <a href="https://docs.unrealengine.com/en-US/gameplay-ability-system-component-and-gameplay-attributes-in-unreal-engine/">AbilitySystemComponent</a> — a core ActorComponent that must be implemented in every Actor that uses GAS. ActivationOwnedTags will apply specific tags to ASC while the ability is active, so you can easily check current active states by calling functions from IGameplayTagAssetInterface (HasMatchingGameplayTag, HasAllMatchingGameplayTags, or HasAnyMatchingGameplayTags) on your ASC. ActivationRequiredTags will allow activating the ability only if its ASC has specific tags, and ActivationBlockedTags will fail to activate the ability as long as its ASC has those tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MGrRjX-lVKSZCljB1DZFgQ.png" /><figcaption>Blueprint properties from UGameplayAbility class</figcaption></figure><p>You can also override methods like CanActivateAbility, ActivateAbility, K2_ActivateAbilityFromEvent, EndAbility, K2_CommitExecute (<a href="https://dev.epicgames.com/documentation/unreal-engine/API/Plugins/GameplayAbilities/UGameplayAbility">more of them are possible to override in C++</a>).</p><p>UGameplayAbility also allows easy instancing. Simply change <strong>InstancingPolicy</strong> to <strong>“InstancedPerActor”</strong> and you’ll be guaranteed that this ability won’t have more instances than one per Actor!</p><p>If you make a multiplayer game, playing with <strong>NetExecutionPolicy</strong> and <strong>NetSecurityPolicy</strong> enums will also be handy in terms of separating server and client implementations.</p><p>In C++, GameplayAbilities can also be quite easily bound to inputs. You can see an example in the source code of my game called <a href="https://store.steampowered.com/app/1460300/Kittens_Maze/"><strong>Kittens’ Maze</strong></a>, in <a href="https://github.com/ukustra/KittensMaze/blob/master/Source/KittensMaze/KittensMazeCharacter.cpp#L173">AKittensMazeCharacter::SetupPlayerInputComponent</a>. The values of the InputType enum should be the same as the Input Mapping names we want to bind to:</p><pre>void AKittensMazeCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)<br>{<br> Super::SetupPlayerInputComponent(PlayerInputComponent);<br><br> AbilitySystemComponent-&gt;BindToInputComponent(PlayerInputComponent);<br><br> for (const auto&amp; InputAbilityData : InputAbilities)<br> {<br>    if (InputAbilityData.AbilityClass)<br>    {<br>     const int32 AbilityID = static_cast&lt;int32&gt;(InputAbilityData.InputType);<br>     const FGameplayAbilitySpec Spec = FGameplayAbilitySpec(InputAbilityData.AbilityClass, 1, AbilityID);<br>     AbilitySystemComponent-&gt;GiveAbility(Spec);<br>  <br>     const FGameplayAbilityInputBinds InputBinds = FGameplayAbilityInputBinds(TEXT(&quot;AbilityConfirm&quot;), TEXT(&quot;AbilityCancel&quot;), TEXT(&quot;EAbilityInput&quot;), AbilityID, AbilityID);<br>     AbilitySystemComponent-&gt;BindAbilityActivationToInputComponent(PlayerInputComponent, InputBinds);<br>    }<br> }<br>}</pre><p>‼️ <strong>NOTE:</strong> It’s a solution for UE4. You can read how to bind GameplayAbilities to inputs in UE5 <a href="https://ukustra.medium.com/how-to-easily-bind-gameplay-ability-system-to-enhanced-input-b45ece2ca02b">here</a>. ‼️</p><h3>Ability Task</h3><p><a href="https://docs.unrealengine.com/5.3/en-US/gameplay-ability-tasks-in-unreal-engine/">UAbilityTask</a> is a GameplayTask class that will be automatically ended on UGameplayAbility::EndAbility (but you can also manually end it when the ability is active by calling the UGameplayTask::EndTask). They are extremely important in terms of making efficient gameplay mechanics because they’re objects supposed to handle any generic asynchronous implementation that can be reused in any ability. AbilityTasks are designed to work with delegates, so they’re perfect for implementing the <a href="https://www.gameprogrammingpatterns.com/observer.html">Observer Design Pattern</a> — the most important game design pattern in game development in my opinion‼️ They can also be used for latent actions based on timers:</p><p>Some examples of AbilityTasks available by default in Unreal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*Rxre5KbqWvEc5ZPd17UvbA.png" /><figcaption>Ability Tasks</figcaption></figure><p>You can also write your AbilityTasks in C++. Here is an example of the <a href="https://dev.epicgames.com/community/learning/tutorials/qZYY/unreal-engine-on-tick-ability-task">OnTickAbility</a> Task:</p><pre>#pragma once<br><br>#include &quot;CoreMinimal.h&quot;<br>#include &quot;Abilities/Tasks/AbilityTask.h&quot;<br>#include &quot;AbilityTask_OnTick.generated.h&quot;<br><br>DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTickTaskDelegate, float, DeltaTime);<br><br>/**<br> * Task for abilities that supply tick and its&#39; delta time.<br> */<br>UCLASS()<br>class YOUR_API UAbilityTask_OnTick : public UAbilityTask<br>{<br> GENERATED_UCLASS_BODY()<br> <br> UPROPERTY(BlueprintAssignable)<br> FOnTickTaskDelegate OnTick;<br><br> UFUNCTION(BlueprintCallable, Category = &quot;Ability|Tasks&quot;, meta = (HidePin = &quot;OwningAbility&quot;, DefaultToSelf = &quot;OwningAbility&quot;, BlueprintInternalUseOnly = &quot;TRUE&quot;))<br> static UAbilityTask_OnTick* AbilityTaskOnTick(UGameplayAbility* OwningAbility, const FName TaskInstanceName = NAME_None);<br><br> virtual void Activate() override;<br> virtual void TickTask(float DeltaTime) override;<br>};</pre><pre>#include &quot;AbilityTask_OnTick.h&quot;<br><br>UAbilityTask_OnTick::UAbilityTask_OnTick(const FObjectInitializer&amp; ObjectInitializer)<br> : Super(ObjectInitializer)<br>{<br> bTickingTask = true;<br>}<br><br>UAbilityTask_OnTick* UAbilityTask_OnTick::AbilityTaskOnTick(UGameplayAbility* OwningAbility, const FName TaskInstanceName)<br>{<br> UAbilityTask_OnTick* MyObj = NewAbilityTask&lt;UAbilityTask_OnTick&gt;(OwningAbility, TaskInstanceName);<br> return MyObj;<br>}<br><br>void UAbilityTask_OnTick::Activate()<br>{<br> Super::Activate();<br>}<br><br>void UAbilityTask_OnTick::TickTask(float DeltaTime)<br>{<br> Super::TickTask(DeltaTime);<br> if (ShouldBroadcastAbilityTaskDelegates())<br> {<br>  OnTick.Broadcast(DeltaTime);<br> }<br>}</pre><h3>Gameplay Attribute</h3><p>FGameplayAttribute is designed to store numeric attributes like <em>HP</em>, <em>MP</em>, <em>Attack Power</em>, <em>Movement Speed</em>, and so on. To create it, you actually need to declare a FGameplayAttributeData, which is a struct that stores 2 floats — BaseValue and CurrentValue. Because of that, it’s way more efficient to maintain than a single float variable, because no matter how many triggers change the variable, you’re guaranteed that it will always return to its proper default value.</p><p>You can easily bind to the GameplayAttribute value change by using AbilityTasks or accessing the delegate from UAbilitySystemComponent::GetGameplayAttributeValueChangeDelegate.</p><p><strong>GameplayAttributes are stored in </strong><a href="https://docs.unrealengine.com/5.0/en-US/gameplay-attributes-and-attribute-sets-for-the-gameplay-ability-system-in-unreal-engine/"><strong>AttributeSets</strong></a><strong>‼️</strong></p><p>AttributeSet.h provides several useful macros like GAMEPLAYATTRIBUTE_PROPERTY_GETTER that creates a static function in your UAttributeSet that returns a specific FGameplayAttribute property.</p><p>In that header, there is also an example of initializing attributes with <a href="https://benui.ca/unreal/curve-tables/"><strong>CurveTables</strong></a>:</p><pre>/**<br> * Helper struct that facilitates initializing attribute set default values from spread sheets (UCurveTable).<br> * Projects are free to initialize their attribute sets however they want. This is just want example that is <br> * useful in some cases.<br> * <br> * Basic idea is to have a spreadsheet in this form: <br> * <br> *         1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20<br> *<br> * Default.Health.MaxHealth  100 200 300 400 500 600 700 800 900 999 999 999 999 999 999 999 999 999 999 999<br> * Default.Health.HealthRegenRate 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1<br> * Default.Health.AttackRating  10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10<br> * Default.Move.MaxMoveSpeed  500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500<br> * Hero1.Health.MaxHealth   100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100<br> * Hero1.Health.HealthRegenRate 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1  1 1 1 1<br> * Hero1.Health.AttackRating  10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10<br> * Hero1.Move.MaxMoveSpeed   500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500<br> * <br> * <br> * Where rows are in the form: [GroupName].[AttributeSetName].[Attribute]<br> * GroupName   - arbitrary name to identify the &quot;group&quot;<br> * AttributeSetName - what UAttributeSet the attributes belong to. (Note that this is a simple partial match on the UClass name. &quot;Health&quot; matches &quot;UMyGameHealthSet&quot;).<br> * Attribute   - the name of the actual attribute property (matches full name).<br> *  <br> * Columns represent &quot;Level&quot;. <br> * <br> * FAttributeSetInitter::PreloadAttributeSetData(UCurveTable*)<br> * This transforms the CurveTable into a more efficient format to read in at run time. Should be called from UAbilitySystemGlobals for example.<br> *<br> * FAttributeSetInitter::InitAttributeSetDefaults(UAbilitySystemComponent* AbilitySystemComponent, FName GroupName, int32 Level) const;<br> * This initializes the given AbilitySystemComponent&#39;s attribute sets with the specified GroupName and Level. Game code would be expected to call<br> * this when spawning a new Actor, or leveling up an actor, etc.<br> * <br> * Example Game code usage:<br> * <br> * IGameplayAbilitiesModule::Get().GetAbilitySystemGlobals()-&gt;GetAttributeSetInitter()-&gt;InitAttributeSetDefaults(MyCharacter-&gt;AbilitySystemComponent, &quot;Hero1&quot;, MyLevel);<br> * <br> * Notes:<br> * -This lets system designers specify arbitrary values for attributes. They can be based on any formula they want.<br> * -Projects with very large level caps may wish to take a simpler &quot;Attributes gained per level&quot; approach.<br> * -Anything initialized in this method should not be directly modified by gameplay effects. E.g., if MaxMoveSpeed scales with level, anything else that <br> *  modifies MaxMoveSpeed should do so with a non-instant GameplayEffect.<br> * -&quot;Default&quot; is currently the hardcoded, fallback GroupName. If InitAttributeSetDefaults is called without a valid GroupName, we will fallback to default.<br> *<br> */</pre><p>In my opinion, Curve Tables are better for initializing attributes’ base values than Data Dables, because they don’t require any C++ coding to maintain them. Besides, since GameplayAttributes store only float values, we don’t need to define a new FTableRowBase with custom variables. This is why I prefer to work with Curve Tables rather than Data Tables in terms of the <a href="https://benui.ca/unreal/data-driven-design/">data-driven design</a> in GAS. Especially when Curve Tables are also used in…</p><h3>Gameplay Effect</h3><p><a href="https://docs.unrealengine.com/en-US/gameplay-effects-for-the-gameplay-ability-system-in-unreal-engine/">UGameplayEffect</a> is a class designed to update attributes’ values or apply tags to a specific AbilitySystemComponent. They’re designed to be data-only on the BP side, which also makes them helpful in terms of reducing object references in BPs.</p><p>Yes, I want to remind you that <strong>referencing objects in BPs is a BIG deal in terms of Unreal Engine development</strong> ‼️</p><ul><li><a href="https://medium.com/advanced-blueprint-scripting-in-unreal-engine/object-references-in-blueprints-4c0df7f4dc1d">Object references in Blueprints</a></li><li><a href="https://raharuu.github.io/unreal/hard-references-reasons-avoid/">Hard References &amp; Reasons to Avoid Them</a></li></ul><p>However, for some more complex attribute calculations, you might need to create <a href="https://gist.github.com/mklabs/fcf8b3c355fdc43b3738957687b492e7">UGameplayEffectExecutionCalculation</a> or <a href="https://docs.unrealengine.com/en-US/API/Plugins/GameplayAbilities/UGameplayModMagnitudeCalculation/">UGameplayModMagnitudeCalculation</a> for your UGameplayEffect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*nWJY1JBMb0-8EUPrdSzCWA.jpeg" /><figcaption>An example of the Gameplay Effect BP</figcaption></figure><h3>Gameplay Cue</h3><p>Although <a href="https://combo-graph.github.io/gameplay-cues">GameplayCues</a> are quite pointless in single-player games (unless you use the <a href="https://www.thegames.dev/?p=234"><strong>IGameplayCueInterface</strong></a><strong> </strong>to reduce <a href="https://medium.com/unreal-engine-technical-blog/object-references-in-blueprints-4c0df7f4dc1d">object references in Blueprints</a>), they’re very important in multiplayer development. It’s the class designed to handle cosmetic implementations, like playing VFXes or SFXes.</p><p>There are 2 base classes for GameplayCues:</p><ol><li><a href="https://docs.unrealengine.com/en-US/API/Plugins/GameplayAbilities/UGameplayCueNotify_Static/">UGameplayCueNotify_Static</a></li><li><a href="https://docs.unrealengine.com/5.0/en-US/API/Plugins/GameplayAbilities/AGameplayCueNotify_Actor/">AGameplayCueNotify_Actor</a></li></ol><p>You can read about the differences between those classes <a href="http://gameplayabilities.com/wiki/5/gameplay-cues">here</a>.</p><p>GameplayCues are basically <strong>Unreliable Multicasts that are NEVER triggered on the dedicated server by default</strong>, so they’re more efficient in terms of cosmetic implementations than <a href="https://dev.epicgames.com/documentation/unreal-engine/remote-procedure-calls-in-unreal-engine">default RPCs in Unreal</a>. However, you can also extend triggering GameplayCues in C++, for instance, to trigger them only locally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*28TxMk5YLKXmnp3oVDGHmA.png" /><figcaption>If you implement the IGameplayCueInterface in the GAS Actor, you can create a GameplayCue event based on the GameplayCue tag inside that Actor, without the need to create a new GameplayCue BP classes</figcaption></figure><h3>Does GAS have any disadvantages?</h3><p>Well, it requires some C++ coding, which might be a disadvantage for some people. Even though Epic Games exposes more and more GAS functionalities to Blueprints, C++ skills are still required to use this framework properly, which means it might not be a good choice for BP-only projects.</p><h3>Examples:</h3><p><a href="https://github.com/ukustra/KittensMaze/tree/master/Source/KittensMaze/AbilitySystem">AbilitySystem code samples from Kittens’ Maze</a></p><h3>References:</h3><ol><li><a href="https://docs.unrealengine.com/en-US/gameplay-ability-system-for-unreal-engine/">Gameplay Ability System docs</a></li><li><a href="https://docs.unrealengine.com/4.26/en-US/Resources/SampleGames/ARPG/GameplayAbilitiesinActionRPG/">Gameplay Abilities in Action RPG</a></li><li><a href="https://docs.unrealengine.com/en-US/abilities-in-lyra-in-unreal-engine/">Abilities in Lyra</a></li><li><a href="https://vorixo.github.io/devtricks/gas/">The truth of the Gameplay Ability System</a></li><li><a href="https://ikrima.dev/ue4guide/gameplay-programming/gameplay-ability-system/overview/">Gameplay Ability System Overview</a></li><li><a href="https://github.com/tranek/GASDocumentation">GAS Documentation on GitHub</a></li><li><a href="https://www.tomlooman.com/unreal-engine-gameplaytags-data-driven-design/">Why you should be using GameplayTags in Unreal Engine</a></li><li><a href="https://benui.ca/unreal/curve-tables/">Curve Tables</a></li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYvXvWa6vbAA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYvXvWa6vbAA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYvXvWa6vbAA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a5cb5e844dc421aaaddcfe711d3ffb4/href">https://medium.com/media/6a5cb5e844dc421aaaddcfe711d3ffb4/href</a></iframe><p><em>Do you like my articles? Please consider </em><a href="https://www.buymeacoffee.com/aasurasan?source=about_page-------------------------------------"><em>supporting me</em></a><em>. Thank you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc148b64498a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>