# Questions on BluePrint and C++

**URL:** <https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 21, 2015, 1:29am UTC](https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932 "2015-03-21T01:29:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiden\_Morancy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aiden\_Morancy](https://forums.unrealengine.com/u/Aiden_Morancy)\
**Post date:** [March 21, 2015, 1:29am UTC](https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932/1 "2015-03-21T01:29:09Z")

</div>

I have 2 questions, and any support is appreciated:

1. Is there anything you can achieve with C++ that you cannot achieve with BluePrint?
2. Can you create with BluePrint and C++ simultaneously on one project?

Thank you

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [March 21, 2015, 1:38am UTC](https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932/2 "2015-03-21T01:38:45Z")

</div>

1. Yes, you can make much more with C++. If you want to change something that epic hardcoded into the source, you will need to use C++.  
If you want to use a function, that Epic hasn’t exposed to Blueprints yet, you need to use C++. If you want to use variables that aren’t exposed to BP,  
you will also need C++. If you want to create UObjects, you will need C++ (because you don’t have a way to create these without C++ at the moment).  
If you want to implement more feature by including several headers of others libraries, you will ALSO need C++.

Blueprints are a good base to start your adventure with, but if you have the time and will, i highly recommend you to learn C++ as soon as possible.

1. Yes you can, if you created a C++ project, you can create variables and functions inside of your classes that are exposed to BP over UFUNCTION and UPROPERTY makros.  
You can also add code to your BP project later over “File” → “Add Code to Project…” or by righclicking the uproject file inside your project folder and choosing th same.

This is also a normal way to create your classes. Make a Base Class in C++ with all the logic and functions and create a BP of that Class without any logic in it. Now just  
set the Variables like “Mesh”, “Animation Blueprint” etc inside that BP, because it is easier as getting this assets through objectfinders in C++.

If you still have questions, feel free to ask me (:

---

<div class="post-metadata">

**Author:** ![Aiden\_Morancy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aiden\_Morancy](https://forums.unrealengine.com/u/Aiden_Morancy)\
**Post date:** [March 21, 2015, 6:42am UTC](https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932/3 "2015-03-21T06:42:45Z")

</div>

Thanks for all the info! I understand it a lot better now. Do you know where I can find the best tutorials for c++ and programming in general? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [March 21, 2015, 11:17am UTC](https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932/4 "2015-03-21T11:17:02Z")

</div>

> [@Aiden Morancy;253028](#):
>
> Thanks for all the info! I understand it a lot better now. Do you know where I can find the best tutorials for c++ and programming in general? Thanks 🙂

😕 No sorry. I learned C++ myself with a script from my university. By i guess you can just google a tutorial for generall c++ programming (which is good to be learned instead of only UE4 related C++).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a1e172a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a1e172a](https://forums.unrealengine.com/u/anonymous_user_6a1e172a)\
**Post date:** [March 26, 2015, 8:07pm UTC](https://forums.unrealengine.com/t/questions-on-blueprint-and-c/24932/5 "2015-03-26T20:07:56Z")

</div>

So I guess it’s not possible in Blueprint to create a class that would encapsulate data with functions acting on this data and use this class inside another Blueprint? Ideally I would have liked to create a class, instantiate several objects from this class in the construction script of my Blueprint (passing parameters to construct my class) and call functions on these objects at runtime.

I’m fairly new to UE4 and Blueprint (but I’m an experienced C++ programmer). I must admit it was quite nice to get started. But after a while you notice things that cannot be done with Blueprints, or can be done but in a less efficient way. And when the Blueprint code gets bigger and bigger, you feel the need to encapsulate your functionnalities into classes but I could not find a way to create instances of a class with parameters. So if it is really indeed not possible, I guess it will be time to go in C++ mode…
