<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>unreal engine 4 custom event Archives - Couch Learn</title>
	<atom:link href="https://couchlearn.com/tag/unreal-engine-4-custom-event/feed/" rel="self" type="application/rss+xml" />
	<link>https://couchlearn.com/tag/unreal-engine-4-custom-event/</link>
	<description>Detailed Game Programming Tutorials</description>
	<lastBuildDate>Sat, 25 Jan 2025 17:32:44 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://couchlearn.com/wp-content/uploads/2020/05/cropped-logolarge-32x32.png</url>
	<title>unreal engine 4 custom event Archives - Couch Learn</title>
	<link>https://couchlearn.com/tag/unreal-engine-4-custom-event/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to use Custom Events in Unreal Engine 4</title>
		<link>https://couchlearn.com/how-to-use-custom-events-in-unreal-engine-4/</link>
					<comments>https://couchlearn.com/how-to-use-custom-events-in-unreal-engine-4/#respond</comments>
		
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Sun, 10 Jan 2021 23:34:09 +0000</pubDate>
				<category><![CDATA[Easy Difficulty]]></category>
		<category><![CDATA[UE4 Basics]]></category>
		<category><![CDATA[Unreal Basics]]></category>
		<category><![CDATA[Unreal Engine]]></category>
		<category><![CDATA[ue4 basics]]></category>
		<category><![CDATA[ue4 custom event]]></category>
		<category><![CDATA[unreal custom event]]></category>
		<category><![CDATA[unreal engine]]></category>
		<category><![CDATA[unreal engine 4]]></category>
		<category><![CDATA[unreal engine 4 basics]]></category>
		<category><![CDATA[unreal engine 4 custom event]]></category>
		<category><![CDATA[unreal engine basics]]></category>
		<guid isPermaLink="false">https://couchlearn.com/?p=1421</guid>

					<description><![CDATA[<p>An essential part of developing games with Unreal Engine 4 is learning Custom Events. Custom events are used to run a set of blueprint nodes <a class="mh-excerpt-more" href="https://couchlearn.com/how-to-use-custom-events-in-unreal-engine-4/" title="How to use Custom Events in Unreal Engine 4">[...]</a></p>
<p>The post <a href="https://couchlearn.com/how-to-use-custom-events-in-unreal-engine-4/">How to use Custom Events in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>An essential part of developing games with Unreal Engine 4 is learning Custom Events. <br><br><strong>Custom events are used to run a set of blueprint nodes on demand.</strong><br><br>Custom events are different from Functions as they can contain delay nodes and are created in the event graph.<br><br>In this guide we are learning how to create, setup and call custom events in Unreal Engine 4.</p>



<h3 class="wp-block-heading">Creating the Custom Event</h3>



<p>To create a custom event, right click anywhere in your actor&#8217;s event graph and write &#8220;Custom Event&#8221;.<br><br>Then click &#8220;Add Custom Event&#8221;.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="410" height="184" src="https://couchlearn.com/wp-content/uploads/2021/01/image-33.png" alt="Adding the custom event" class="wp-image-1422" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-33.png 410w, https://couchlearn.com/wp-content/uploads/2021/01/image-33-300x135.png 300w" sizes="(max-width: 410px) 100vw, 410px" /></figure>



<p>Once created, name the new custom event. <br><br><strong>It&#8217;s good practise to name your custom event based on its purpose.</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="189" height="116" src="https://couchlearn.com/wp-content/uploads/2021/01/image-34.png" alt="Naming the newly created custom event" class="wp-image-1423"/></figure>



<p>Your event has now been created! <br><br>For this guide we named our custom event &#8220;My Custom Event&#8221;.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="176" height="92" src="https://couchlearn.com/wp-content/uploads/2021/01/image-35.png" alt="Created event named &quot;My Custom Event&quot;" class="wp-image-1424"/></figure>



<h3 class="wp-block-heading">Adding Inputs</h3>



<p>Similar to functions, custom events can have input variables attached to them.<br><br><strong>These are used to send information to the nodes running from the custom event.</strong><br><br>To add an input firstly click your custom event in the event graph and look to the right side of the screen.<br><br>Click the &#8220;New Parameter&#8221; button shown below to add a new variable to the inputs list.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="381" height="279" src="https://couchlearn.com/wp-content/uploads/2021/01/image-40.png" alt="Adding a new input to the custom event" class="wp-image-1432" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-40.png 381w, https://couchlearn.com/wp-content/uploads/2021/01/image-40-300x220.png 300w" sizes="(max-width: 381px) 100vw, 381px" /></figure>



<p>Then change the name of the input. The left side text box is the name that will be displayed inside the custom event.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="378" height="267" src="https://couchlearn.com/wp-content/uploads/2021/01/image-41.png" alt="Renaming the added input variable" class="wp-image-1433" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-41.png 378w, https://couchlearn.com/wp-content/uploads/2021/01/image-41-300x212.png 300w" sizes="(max-width: 378px) 100vw, 378px" /></figure>



<p>On the right side we can then change the input variables type. <br><br>We are changing this variable from Boolean to String. This means we can use text values in our input.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="484" height="597" src="https://couchlearn.com/wp-content/uploads/2021/01/image-43.png" alt="Changing the new variable to be a string" class="wp-image-1435" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-43.png 484w, https://couchlearn.com/wp-content/uploads/2021/01/image-43-243x300.png 243w" sizes="(max-width: 484px) 100vw, 484px" /><figcaption>When making your own custom events you can use any of the variable types shown.</figcaption></figure>



<p>The finished custom event input should now look like this.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="382" height="266" src="https://couchlearn.com/wp-content/uploads/2021/01/image-44.png" alt="finished input variables for the custom event" class="wp-image-1437" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-44.png 382w, https://couchlearn.com/wp-content/uploads/2021/01/image-44-300x209.png 300w" sizes="(max-width: 382px) 100vw, 382px" /></figure>



<p>The custom event in the event graph will now look like this.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="177" height="123" src="https://couchlearn.com/wp-content/uploads/2021/01/image-45.png" alt="finished custom event" class="wp-image-1439"/></figure>



<h3 class="wp-block-heading">Using your Custom Event</h3>



<p>Now that are custom event is created and the input variable has been setup, we can now create a &#8220;Print String&#8221; node to display the value of &#8220;My New Input&#8221; on the screen.<br><br><strong>This is the easiest way to test if the custom event is working correctly.</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="611" height="189" src="https://couchlearn.com/wp-content/uploads/2021/01/image-46.png" alt="Creating a print string node to test the custom event input value." class="wp-image-1440" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-46.png 611w, https://couchlearn.com/wp-content/uploads/2021/01/image-46-300x93.png 300w" sizes="(max-width: 611px) 100vw, 611px" /></figure>



<p>Once the &#8220;Print String&#8221; node is created, connect the &#8220;My New Input&#8221; variable from your custom event to the In String pin on the Print String node.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="329" height="159" src="https://couchlearn.com/wp-content/uploads/2021/01/image-48.png" alt="Connecting the input variable to the In String value on the print string." class="wp-image-1443" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-48.png 329w, https://couchlearn.com/wp-content/uploads/2021/01/image-48-300x145.png 300w" sizes="(max-width: 329px) 100vw, 329px" /></figure>



<p>To run your custom event simply create a &#8220;Event BeginPlay&#8221; node, drag from the execution pin and type the name of your new custom event. In our case this is &#8220;My Custom Event&#8221;.<br><br>As your custom event is connected to an execution pin, it is now being called by the other event.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="616" height="156" src="https://couchlearn.com/wp-content/uploads/2021/01/image-36.png" alt="On begin play calling the new custom event." class="wp-image-1425" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-36.png 616w, https://couchlearn.com/wp-content/uploads/2021/01/image-36-300x76.png 300w" sizes="(max-width: 616px) 100vw, 616px" /></figure>



<p>Now that your custom event is being called by the BeginPlay event you can see the input variable. <br><br><strong>This input variable pin can be connected to any variable with the same type.</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="417" height="153" src="https://couchlearn.com/wp-content/uploads/2021/01/image-49.png" alt="Connecting the my custom event to the begin play node." class="wp-image-1444" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-49.png 417w, https://couchlearn.com/wp-content/uploads/2021/01/image-49-300x110.png 300w" sizes="(max-width: 417px) 100vw, 417px" /></figure>



<p>We can now write any text into the My New Input variable.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="422" height="171" src="https://couchlearn.com/wp-content/uploads/2021/01/image-50.png" alt="Writing my custom event works in the my custom event node." class="wp-image-1445" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-50.png 422w, https://couchlearn.com/wp-content/uploads/2021/01/image-50-300x122.png 300w" sizes="(max-width: 422px) 100vw, 422px" /></figure>



<h3 class="wp-block-heading">Testing the Custom Event</h3>



<p>Running the game will now show the text that we wrote in the custom event.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="398" height="239" src="https://couchlearn.com/wp-content/uploads/2021/01/image-51.png" alt="The custom event runs correctly and prints the text on the screen." class="wp-image-1446" srcset="https://couchlearn.com/wp-content/uploads/2021/01/image-51.png 398w, https://couchlearn.com/wp-content/uploads/2021/01/image-51-300x180.png 300w" sizes="(max-width: 398px) 100vw, 398px" /></figure>



<h3 class="wp-block-heading">Conclusion</h3>



<p>Now you have the knowledge to create and use custom events in Unreal Engine 4!<br><br>Custom events are an essential component of Unreal Engine and are especially important for multiplayer game creation using blueprints.<br><br>Below are a few links for the full custom event documentation and a guide for using custom events and other Unreal Engine 4 features to make a multiplayer damage and health system.<br><br><a href="https://docs.unrealengine.com/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Events/Custom/index.html">Click here to read the official documentation on Custom Events in Unreal Engine 4</a><br><br><a href="https://couchlearn.com/multiplayer-damage-and-health-system-in-unreal-engine-4/">Click here to see our guide on making a multiplayer ready damage and health system with custom events.</a></p>
<p>The post <a href="https://couchlearn.com/how-to-use-custom-events-in-unreal-engine-4/">How to use Custom Events in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://couchlearn.com/how-to-use-custom-events-in-unreal-engine-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: couchlearn.com @ 2026-04-15 17:16:30 by W3 Total Cache
-->