# Wiki Code Tutorials

**URL:** <https://forums.unrealengine.com/t/wiki-code-tutorials/256>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [March 20, 2014, 9:39pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256 "2014-03-20T21:39:34Z")\
**Posts on this page:** 20\
**Page:** 14

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [September 8, 2015, 12:49am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/278 "2015-09-08T00:49:53Z")

</div>

4.9 Update to USTRUCT Wiki

Dear Community,

I’ve updated my USTRUCT wiki to reflect the removal of RepRetry UPROPERTY keyword

**UE4 UStructs**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Enjoy!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [September 14, 2015, 5:10am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/279 "2015-09-14T05:10:24Z")

</div>

UE4 Engine Singleton Class

Dear Community,

I’ve updated my Engine Singleton Wiki to 4.9

**Global Data Storage Class**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

is a class that you can define and Blueprint, and store any core essential asset references or other core game data that you need.

Keep in mind you should only store essential info here as the class is instanced at game startup and any assets it links to are also loaded.

🙂

---

<div class="post-metadata">

**Author:** ![Anonymous\_58139d3ec968ceae23e67a9ff17c178d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_58139d3ec968ceae23e67a9ff17c178d](https://forums.unrealengine.com/u/Anonymous_58139d3ec968ceae23e67a9ff17c178d)\
**Post date:** [September 20, 2015, 5:02am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/280 "2015-09-20T05:02:04Z")

</div>

@

Do you know whether I can use UE4 in my own programs(eg: I get a window handle, and then use UE4 to show the 3d scene in the window. It seem like directx 3d)?

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 3, 2015, 10:12pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/281 "2015-10-03T22:12:47Z")

</div>

Empower Your Entire Team With Blueprint Native Events

Dear Community,

In wiki I show you how you can empower your entire team with Blueprint Native Events!

These events allow you to run Blueprint code from C++, with an optional C++ implementaiton.

A great example is a lot of the core functions in the **GameMode** class which can now be overridden in Blueprints, adding to or replacing the C++ base functionality!

**Empower Your Team With BlueprintNativeEvents**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 9, 2015, 9:40pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/282 "2015-10-09T21:40:42Z")

</div>

[=张朝锐;382927]  
@

Do you know whether I can use UE4 in my own programs(eg: I get a window handle, and then use UE4 to show the 3d scene in the window. It seem like directx 3d)?  
[/]

I’ve never tried to do that 🙂 Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 9, 2015, 9:42pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/283 "2015-10-09T21:42:28Z")

</div>

How to Modify BP Variable References in C++ And Send Back to BP

Dear Community,

Here’s a wiki on how you can pass BP variable data to C++, modify it in C++, and then send it back to BP without copying the data!

is really imporant for modifying BP variable arrays, and I also found a handy usecase for making a BP ++ operator node!

**How to Modify Blueprint Variable References In C++ Without Copying**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Enjoy!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 14, 2015, 8:01am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/284 "2015-10-14T08:01:09Z")

</div>

Learning UE4 C++

I have over **80 wiki tutorials** on the UE4 Code wiki to help you learn UE4 C++!

[UE4 Code Wiki](https://wiki.unrealengine.com/Category:Code)

Enjoy!

❤

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 16, 2015, 10:49am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/285 "2015-10-16T10:49:40Z")

</div>

How to Run Dedicated Servers From Commandline

Dear Community,

I"ve just created a tutorial on how to run Dedicated Servers with 2 connecting clients from commandline! (editor closed)

**How To Test Dedicated Server Games Via Commandline**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Enjoy!

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 17, 2015, 5:21am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/286 "2015-10-17T05:21:03Z")

</div>

How to Prevent Stale AActor\* Pointers in UE4

Dear Community,

If you are experiencing crashes due to stale AActor\* pointers, I have just the new wiki for you!

A stale pointer means the AActor\* returns true when you verify != nullptr, but then dereferencing still causes a crash.

Check out the solution here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 21, 2015, 3:42am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/287 "2015-10-21T03:42:05Z")

</div>

You can now Get Traced Distance At No Extra CPU Cost!

Dear Community,

Epic accepted my pull request to expose Distance information as part of FHitResult!

The PhysX engine was always returning information, so my requested Engine code change did not affect performance at all.

The advantage is that now whenever you do a trace, you already have the **non-squared actual distance** from the start of the trace to the impact point available to you!

**Trace Functions Wiki Updated With Info About New Distance Property of FHitResult**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Enjoy!

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 27, 2015, 6:51am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/288 "2015-10-27T06:51:59Z")

</div>

Packaged Game Paths: Obtain Paths based on Game Executable

Dear Community,

In wiki I share with you many functions that enable you to obtain absolute paths that are based on the location of the game exectuable.

In otherwords you can package the game, and then move it at any time to any directory, and the path generated will be accurate for your whole moved project!

Example:

```auto

//InstallDir/WindowsNoEditor/GameName
const FString ThePath = FPaths::ConvertRelativePathToFull(FPaths::GameDir());

```

In a pre-packaged game will be where the .uproject is, but in packaged game it will be your game directory off of windowsnoeditor!

**Packaged Game Paths ~ Obtain Directories Based on Executable Location**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 5, 2015, 7:47am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/289 "2015-11-05T07:47:51Z")

</div>

AI Pathing Customization in C++

Dear Community,

In wiki I show you how you can completely customize the UE4 PathFollowing behavior every tick in C++!

I used method to make my C++ AI Jump Pathing videos!

**Custom UE4 AI Pathing Every Tick**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

```auto

https://youtube.com/watch?v=sMMSQdnyt6o

Enjoy!
```

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 9, 2015, 7:48am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/290 "2015-11-09T07:48:20Z")

</div>

Entry-level Guide to UE4 C++

Dear Community,

For anyone wanting to learn UE4 C++ I have posted an entry-level wiki guide here!

I discuss the essential basics you need to know to get used to both C++ and UE4 C++

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Have fun today!

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 25, 2015, 1:59pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/291 "2015-11-25T13:59:25Z")

</div>

Custom Level Blueprints in C++

Dear Community,

In wiki I show you how you can use a custom Level Blueprint, which enables your level designers to utilize custom features of your game’s code base!

**Solus C++ Wiki Tutorials ~ Custom Level Blueprint**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [December 25, 2015, 3:08pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/292 "2015-12-25T15:08:19Z")

</div>

Get Enum From String

Dear Community,

I’ve added a new entry to my UE4 C++ Enum wiki!

I am giving you the code to get an enum value back from a string, after it was initially converted to a string!

**UE4 Wiki Link**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

```auto

emplate <typename EnumType>
static FORCEINLINE EnumType GetEnumValueFromString(const FString& EnumName, const FString& String)
{ 
	UEnum* Enum = FindObject<UEnum>(ANY_PACKAGE, *EnumName, true);
	if(!Enum) 
        { 
          return EnumType(0);
        }		
	return (EnumType)Enum->FindEnumIndex(FName(*String));
}
 
//Sample Usage
EChallenge ChallengeEnumValue = //Initial Value

FString ParseLine = GetEnumValueAsString<EChallenge>("EChallenge", ChallengeEnumValue))); //To String

EChallenge Challenge = GetEnumValueFromString<EChallenge>("EChallenge", ParseLine); //Back From String!

```

Enjoy!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [January 13, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/293 "2016-01-13T17:29:55Z")

</div>

Solus C++ Wiki Tutorials

Dear Community,

I have created many C++ tutorials around the development of The Solus Project (with Hourences)

**Solus C++ Wiki**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

**Topics include:**

1. Custom Level Blueprints

2. Getting List of Hardware Supported Screen Resolutions

3. Concatenating FText

4. Custom Actor Components Via C++

5. Globally Accessible Data Storage Class

6. Custom Game Instance Class

7. Declare Console Commands in C++, implement in BP!

🙂

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [March 7, 2016, 5:52am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/294 "2016-03-07T05:52:39Z")

</div>

UDP Sockets Wiki, Send Data From UE4 Instance To Another!

Dear Community,

Here is my latest wiki, on sending any data you want from 1 UE4 Instance to Another using UDP sockets!

> **[\[New Wiki\] UDP Sockets, Sending / Receiving any custom data from 1 UE4...](https://forums.unrealengine.com/showthread.php?103182-New-Wiki-UDP-Sockets-Sending-Receiving-any-custom-data-from-1-UE4-instance-to-another&p=488223&viewfull=1#post488223)**
>
> Dear Community, I’ve justed posted a new wiki that shows you how you can send/receive any custom data you want from 1 UE4 instance to another, anywhere in the world using UDP connection! Wiki Link

❤

 ![UDPVictory.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/c/9c4be0afc37c3ff2b34d5606233b4b24d5ecc88a.jpeg)

 ![465c97e71f555224eab45a2f098c46ae669ed85a.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/5/465c97e71f555224eab45a2f098c46ae669ed85a.jpeg)

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [March 24, 2016, 9:58pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/295 "2016-03-24T21:58:38Z")

</div>

Wiki on Delegates

 ![6ea815f24385fedf27e8d89c5835a7e9bfd4c3f4.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/a/6ea815f24385fedf27e8d89c5835a7e9bfd4c3f4.jpeg)

I’ve released a new wiki on C++ and BP-Exposed Delegates!

I discuss:

1. Raw C++ Delegates
2. Slate Delegates
3. UObject Delegates
4. BP and Level BP exposed delegates

**Delegates in UE4**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [March 26, 2016, 5:41pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/296 "2016-03-26T17:41:23Z")

</div>

Thanks a lot for these tutorials I’ve benefited immensely from so many of them. Also happy to see the new wiki on delegates; just a few months ago I was searching to see if you’d written one!

With so many delegate types, combinations and special macros like BindDynamic/etc I found them very confusing while starting out despite being familiar with basic function pointers. Hopefully newcomers to delegates will find it easier now!

BTW I can’t be the only one who types “unreal \<search topic\>” while looking for UE4 resources 🙂 Definitely interested in the book you said you were working earlier in thread.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 1, 2016, 10:05am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/297 "2016-04-01T10:05:15Z")

</div>

[=anonymous\_user\_e71e0d8aSZ;500430]  
Thanks a lot for these tutorials I’ve benefited immensely from so many of them. Also happy to see the new wiki on delegates; just a few months ago I was searching to see if you’d written one!

With so many delegate types, combinations and special macros like BindDynamic/etc I found them very confusing while starting out despite being familiar with basic function pointers. Hopefully newcomers to delegates will find it easier now!

BTW I can’t be the only one who types “unreal \<search topic\>” while looking for UE4 resources 🙂 Definitely interested in the book you said you were working earlier in thread.  
[/]

You’re welcome @!

Yes the book is still something I am working on!

🙂

🙂

[Previous page](https://forums.unrealengine.com/t/wiki-code-tutorials/256.md?page=13)

[Next page](https://forums.unrealengine.com/t/wiki-code-tutorials/256.md?page=15)
