# 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:** 2

<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 21, 2014, 9:26pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/21 "2014-03-21T21:26:58Z")

</div>

**[FONT=Comic Sans MS]New tutorial!**

\*\*  
[Static Libraries, Your Own Version of UE4 C++, No Engine Compile Times](https://wiki.unrealengine./Static_Libraries,_Your_Own_Version_of_UE4_C%2B%2B,_No_Engine_Compile_Times)\*\*

[=Straits;2428]  
Wow, is a fantastic start. I am amazed you’ve done all so quickly 😃

Hopefully will break the ice for more people to contribute, although you seem to be a one man coding tutorial army at the moment hah.  
[/]

Haha yea!

But\*\* Bob Gneu\*\*, \*\*\*\*, and \*\* \*\* have contributed amazingly helpful tutorials as well!

---

<div class="post-metadata">

**Author:** ![SaxonRah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaxonRah](https://forums.unrealengine.com/u/SaxonRah)\
**Post date:** [March 22, 2014, 1:25am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/22 "2014-03-22T01:25:37Z")

</div>

[=;1699]  
**[FONT=Comic Sans MS]New Tutorial: Dynamic Arrays**

**[Dynamic Arrays](https://wiki.unrealengine./Dynamic_Arrays_in_UE4_C%2B%2B)**  
[https://wiki.unrealengine](https://wiki.unrealengine)./Dynamic\_Arrays\_in\_UE4\_C%2B%2B

Hee hee your welcome SaxonRah!

UE4 C++ is so much fun!

🙂

[/]

So essentially i have little bit of code that is  
[]  
const int MazeSize = 21;  
AStaticMeshActor\* grid[MazeSize][MazeSize];  
[/]  
are you telling me i can assign MazeSize’s value inside a blueprint ? O\_O ?

EDIT -  
Nvm doesnt look like it. If you have any ideas I’d love to know. I probably should just use a vector for x and y instead.

---

<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 22, 2014, 2:30am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/23 "2014-03-22T02:30:33Z")

</div>

[=SaxonRah;2564]  
So essentially i have little bit of code that is are you telling me i can assign MazeSize’s value inside a blueprint ? O\_O ?  
[/]

Dear SaxonRah,

My example of assigning values to a dynamic array in Blueprints was more for:

1. adding values in blueprints, to then be accessed during run time in C++
2. something like

```auto

UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category=BP)
TArray<FVector2D> DesignerSpecified2DPoints;

```

In hypothetical case,

you are giving the rest of your team the power to create a list of 2D points in the default properties of a blueprint

And then you can access data in the C++ at game launch.

could be 2D points where you are supposed to iterate over all the points and create hud elements, or anything really!

Or it could be 3D points where you should spawn items, or FNames that you should iterate over and use for some purpose.

The point is that you can give your Team the power to send you an unknown amount of data, \*\*AFTER compile time, \*\*

that can vary day to day,

and you can set up the C++ code to use unknown amount of data!

**It’s an amazing thing about blueprints!**

That you can add more data AFTER compile time, yet use dynamic arrays to perform the same logic in C++ no matter how much data the Designers add.

````auto

**Concrete Example**

You give Designers an FName Array to add entries to over the lifetime of the project

```

UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category=SMAssetPaths)
TArray<FName> SMAssetPaths;

```

In the C++, for each FName Entry, which should be the full asset path of a static mesh,

you **[dynamically load](https://wiki.unrealengine./Dynamic_Load_Object)** the UStaticMesh and spawn a new Static Mesh Actor and assign the UStaticMesh.

In way you have engineered a C++ system that Blueprint Designers can extend and utilize to create their chosen number of unique static mesh actors with unique static mesh assets that they create!

The best part is,

**they can add more tomorrow, and the next day, without you ever doing a code compile!**

**I think aspect of C++ to Blueprint interaction is amazing!**

It really means that you are empowering your entire team!

Whereas you are 1 programmer, you might have 30 Designers who can now create a change to the C++ behavior using **Blueprints + Dynamic Arrays.**
````

---

<div class="post-metadata">

**Author:** ![Vorx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vorx](https://forums.unrealengine.com/u/Vorx)\
**Post date:** [March 22, 2014, 3:26am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/24 "2014-03-22T03:26:47Z")

</div>

Thank you! Very generous of you.

---

<div class="post-metadata">

**Author:** ![SaxonRah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaxonRah](https://forums.unrealengine.com/u/SaxonRah)\
**Post date:** [March 22, 2014, 3:39am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/25 "2014-03-22T03:39:44Z")

</div>

🆒 Now I understand. That’s super useful.

---

<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 22, 2014, 4:14am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/26 "2014-03-22T04:14:45Z")

</div>

[FONT=Comic Sans MS] **New Tutorial!**

**My Static Library Trace Functions For You** ]([https://wiki.unrealengine](https://wiki.unrealengine)./Trace\_Functions\_For\_You)

[=Vorx;2631]  
Thank you! Very generous of you.  
[/]

Hee hee!

[=SaxonRah;2636]  
🆒 Now I understand. That’s super useful.  
[/]

Hee heeeeeee!

---

<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 22, 2014, 7:51pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/27 "2014-03-22T19:51:25Z")

</div>

Bump for new arrivals

Enjoy the 41 C++ tutorials on the wiki!

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

---

<div class="post-metadata">

**Author:** ![chiefGui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chiefgui/32/612858_2.png) [@chiefGui](https://forums.unrealengine.com/u/chiefGui)\
**Post date:** [March 22, 2014, 7:54pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/28 "2014-03-22T19:54:21Z")

</div>

Perfect! Thank you very much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d3efe8b0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d3efe8b0](https://forums.unrealengine.com/u/anonymous_user_d3efe8b0)\
**Post date:** [March 23, 2014, 3:02am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/29 "2014-03-23T03:02:33Z")

</div>

Thank you!!!🙂

---

<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 23, 2014, 3:06am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/30 "2014-03-23T03:06:36Z")

</div>

[=chiefGui;3099]  
Perfect! Thank you very much!  
[/]

[=spdd;3375]  
Thank you!!!🙂  
[/]

Hee hee you’re welcome!

---

<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 23, 2014, 9:59am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/31 "2014-03-23T09:59:16Z")

</div>

Bump for new comers over weekend,

Enjoy the tutorials!

---

<div class="post-metadata">

**Author:** ![KamiKaii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KamiKaii](https://forums.unrealengine.com/u/KamiKaii)\
**Post date:** [March 23, 2014, 10:44am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/32 "2014-03-23T10:44:25Z")

</div>

Thank you great work as usual!🙂

---

<div class="post-metadata">

**Author:** ![DaveVoyles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DaveVoyles](https://forums.unrealengine.com/u/DaveVoyles)\
**Post date:** [March 23, 2014, 4:50pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/33 "2014-03-23T16:50:39Z")

</div>

So glad that you finally got to make a wiki out of all of these. So much easier to view them now 🙂

---

<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 23, 2014, 5:53pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/34 "2014-03-23T17:53:25Z")

</div>

[=iMuse;3541]  
Thank you great work as usual!🙂  
[/]

Hee hee!

[=DaveVoyles;3769]

So glad that you finally got to make a wiki out of all of these. So much easier to view them now 🙂  
[/]

Yea I agree!

I love the table of content system especially!

🙂

Thank You Epic for the Epic Wiki !

Special thanks to !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c1df161](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c1df161](https://forums.unrealengine.com/u/anonymous_user_6c1df161)\
**Post date:** [March 23, 2014, 7:56pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/35 "2014-03-23T19:56:24Z")

</div>

Just came here looking for C++ tutorials, many thanks  
Hope a moderator make a sticky post for all tutorials, books or any resources that may come up so we dont miss it and new members can find easily.

---

<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 23, 2014, 9:03pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/36 "2014-03-23T21:03:20Z")

</div>

[=MorningStar;3927]  
Just came here looking for C++ tutorials, many thanks  
Hope a moderator make a sticky post for all tutorials, books or any resources that may come up so we dont miss it and new members can find easily.  
[/]

You’re welcome Morning Star!

---

<div class="post-metadata">

**Author:** ![Tim\_Sweeney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Sweeney](https://forums.unrealengine.com/u/Tim_Sweeney)\
**Post date:** [March 23, 2014, 10:50pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/37 "2014-03-23T22:50:36Z")

</div>

Wow, great work! is an amazing amount of useful content for the Wiki, which was pretty sparse just 4.5 days ago.

---

<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 23, 2014, 11:05pm UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/38 "2014-03-23T23:05:10Z")

</div>

[=;4087]  
Wow, great work! is an amazing amount of useful content for the Wiki, which was pretty sparse just 4.5 days ago.  
[/]

Yaaay!

I am very happy that you are enjoying my efforts!

I’ve also published the entire source code for my **Vertex Snap Editor Plugin** , as well as the plugin itself!

So that people have an entire working foundation for making their own plugins or editor plugins!

**Vertex Snap Editor Plugin With Entire Source Code**  
[https://forums.unrealengine](https://forums.unrealengine)./showthread.php?777–s-Vertex-Snap-Editor-Plugin-Download-for-You!

Thank you for taking the time to write to me !

[https://www.mediafire](https://www.mediafire)./convkey/a416/xh2a0w6qocsc9xb6g.jpg

---

<div class="post-metadata">

**Author:** ![Meltdown](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Meltdown](https://forums.unrealengine.com/u/Meltdown)\
**Post date:** [March 24, 2014, 3:31am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/39 "2014-03-24T03:31:20Z")

</div>

Thank you, is much appreciated!

---

<div class="post-metadata">

**Author:** ![SwitchNZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SwitchNZ](https://forums.unrealengine.com/u/SwitchNZ)\
**Post date:** [March 24, 2014, 5:12am UTC](https://forums.unrealengine.com/t/wiki-code-tutorials/256/40 "2014-03-24T05:12:01Z")

</div>

Thanks for these !

As a heads up I have been tidying up the formatting (not changing any text but removing excess section headers that had no content etc - blame my need for consistency :P). If for some reason you have left these with blank headings to come back later please let me know and I will stop doing it 🙂

Thanks,

SwitchNZ

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

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