C++ Character Class Creation UE4 / Unreal Engine 4 C++

  Рет қаралды 27,964

Dev Enabled

Dev Enabled

Күн бұрын

Пікірлер: 57
@DevEnabled
@DevEnabled 4 жыл бұрын
There seems to be an issue in recent versions of Unreal where splitting the classes into their public/private counterparts is causing reference issues. It seems to be tracked as an official bug so it will be easier at the moment to avoid splitting them into a public folder.
@myanrueller91
@myanrueller91 4 жыл бұрын
Gotta love it when a bug screws with good practices...
@ROSALIEIK
@ROSALIEIK 3 жыл бұрын
oh fuck oki is it stillbroken? do i delete my project and start over?
@DevEnabled
@DevEnabled 3 жыл бұрын
@@ROSALIEIK you'll likely have a problem with a specific #include. The fix is to just include the full path so #include "ProjectName/FolderStructure/Class.h" Compared to what should have been generated previously would have been something more like #include "Class.h"
@matt-g-recovers
@matt-g-recovers 3 жыл бұрын
@@DevEnabled Thanks for the heads up, I used the public visibility as well so we'll see if I have a linker/build issue I will try to use the full path for imports. Otherwise no biggie to redo it at this point.
@smac3086
@smac3086 4 жыл бұрын
For anyone else that cannot compile because the BaseCharacter.h file could not be imported. Make sure that in your BaseCharacter.cpp file you change the #import to read: #include "Characters/BaseCharacter.h". You have to add `Characters` to the include file path or it will not be found. Seems like the editor's class creation tool should take care of that automatically when it generates the class file, but it doesn't.
@DevEnabled
@DevEnabled 4 жыл бұрын
Thanks for the update. Not sure if that's a result of some changes with the recent release.
@MatthewCC0311
@MatthewCC0311 4 жыл бұрын
Wow, I looked for hours for this solution, and it was right under my nose, or in this case, my comment. Thank you!
@joelholdbrooks6729
@joelholdbrooks6729 3 жыл бұрын
If you're following along with UE5, you can find "New C++ Class..." menu under the "Tools" menu.
@DevEnabled
@DevEnabled 5 жыл бұрын
In this video, we create the character class that we will control throughout this playlist and cover some of the basics of C++. With some of the important C++ basics covered we'll be jumping into implementation in future videos.
@oddstuffcs3296
@oddstuffcs3296 4 жыл бұрын
hi, when I Create Class as you do at 5:11, it gives me an error: "ue4 failed to automatically compile YT_CPP". Any ideas?
@oddstuffcs3296
@oddstuffcs3296 4 жыл бұрын
never mind, I figured it out. Follow Mackenzie Fishers advice.
@DevEnabled
@DevEnabled 4 жыл бұрын
Good to hear you've solved it.
@capivara-sama3408
@capivara-sama3408 4 жыл бұрын
@@oddstuffcs3296 How?
@oddstuffcs3296
@oddstuffcs3296 4 жыл бұрын
@@capivara-sama3408 look at the comment made by Mackenzie Fishers, that comment told me how to fix it
@ROSALIEIK
@ROSALIEIK 3 жыл бұрын
bruh i broke my project like 5 times lol. just me?
@Andy_S79
@Andy_S79 5 жыл бұрын
Nice more C++ stuff :) Is the "Unreal 2D" Udemy tutorial in planing, any news about that?
@DevEnabled
@DevEnabled 5 жыл бұрын
Hey, thank you. It's still in progress, the project template is all together and I've almost finished outlining the learning points and quizzes I want to focus on. I just need to free up some time to record and edit the content now.
@DevEnabled
@DevEnabled 4 жыл бұрын
@J S Yeah that's quite an old course now though, I plan on releasing some new content on Udemy going into 2020. Between both, I really like Pluralsight due to their consistent quality control whereas Udemy is obviously open to anyone so some courses quality can be questionable. I'd like to think I make reliably good quality content though so I like Udemy for some of the extra freedom I get as an author when coming up with ideas for topics. Also, the people managing and helping develop the courses are great so I'd be happy to work with them again if more opportunities come up.
@riyansaeed2596
@riyansaeed2596 3 жыл бұрын
In Content Browser How can I create a c++ class for an actor in Content instead of c++ classes folder?
@riyansaeed2596
@riyansaeed2596 3 жыл бұрын
"Create new c++ class" option is missing because I tried to move my object and main actor which was alongside starter content into a new blueprint folder which I created in Content. After that "create new c++ class" option went missing.
@zjfjack
@zjfjack 4 жыл бұрын
In UE4 v4.24.3, YTCharacterBase header cannot be found, which means we have to #include "Characters/YTCharacterBase.h"
@rudey38
@rudey38 2 жыл бұрын
Do you have a video on how to create a FPS shooter?
@DevEnabled
@DevEnabled 2 жыл бұрын
Hey, afraid not. Maybe a good topic for the future.
@abdulahmad2680
@abdulahmad2680 Жыл бұрын
amazing walkthrough, thanks! i’ve been developing in unity and looking for a good UE resource to get started and it’s been tough. this video explains everything so nicely!
@LawMasterTimmy
@LawMasterTimmy 4 жыл бұрын
When I add the Characters in the path of the character class, it fails to rebuild itself in the editor. So I run the uproject, I keep gettings this error: Game1 could not be compiled. Try rebuilding from source manually
@alexandersh895
@alexandersh895 3 жыл бұрын
nice video. For anyone having issues with public/private classes and not being able to compile updating to 4.26.1 solved that for me.
@aurelianobuendia24
@aurelianobuendia24 4 жыл бұрын
OMG I've been programming in openframeworks, just starting with unreal engine. The most awsome thing I learn about this tutorial was the ctrl+k+o shorcut. Can´t beleieve i live all this years without using it
@twitchingpsycho
@twitchingpsycho 4 жыл бұрын
Would it be possible to make a custom movement component for a pawn that is perhaps based off of the character class but implement stuff like prone with proper collisions while in that stance and a corrective head rotation to camera view that would account for body orientations? Also, it would be awesome if somehow the movement component would have an option to work on the -Z or gravity direction. The reason i want char orientation to get the gravity direction is for possibility to make space ships with gravity on them and be possible to make a character move within a spaceship and the movement to work no matter how the ship is turned relative to world. There's literally no tutorial on that matter while more and more games are space focused and more and more third person games offer prone movements which i love. (love sneaking and sniping and would like to make such a game). Thanks for the tuts anyway, they are amazing and very informative.
@Sanityy2G
@Sanityy2G 5 жыл бұрын
Going to start a side project soon, willing to follow your steps! Earned yourself a new sub!!
@lunaricko5759
@lunaricko5759 Жыл бұрын
3:56 for real bro ?
@DevEnabled
@DevEnabled Жыл бұрын
😅KZbin hears what it wants to hear when generating the CC's. Suffice to say I've stopped saying Pawn now.
@bobdillon1138
@bobdillon1138 5 жыл бұрын
Really looking forward to this series...Thank you so much!
@MatthewCC0311
@MatthewCC0311 4 жыл бұрын
I appreciate the thoroughness of your explanations. Any Udemy course you come out with that has that level of quality, I am all in for :)
@DevEnabled
@DevEnabled 4 жыл бұрын
Thanks again, Matthew. Be sure to stay tuned to the channel then, I have a lot planned and in the works right now, just need the time to complete it all :p
@MatthewCC0311
@MatthewCC0311 4 жыл бұрын
@@DevEnabled ​Of course! I dabbled in KZbin for a time, so I know how much work goes into it! I will also check out your courses on PluralSight :)
@DevEnabled
@DevEnabled 4 жыл бұрын
@@MatthewCC0311 Oh nice, I'm guessing you don't have an active channel anymore? Pluralsight is a good idea, everything on there is free until the end of the month. I should probably make a post about that on the Community section, I always forget to utilise that part of KZbin.
@MatthewCC0311
@MatthewCC0311 4 жыл бұрын
@@DevEnabled No not anymore. It wasn't the exact direction I wanted to take with a channel, but eventually when I can get more experienced with C++, and UE4 Development, I want to create another channel, and focus it on a devblog of my current game, as well as game design. I'm very much in the beginning stages on my experience though. Just starting CS courses in college, and self educating on game development! I'm falling in love with programming more and more every day :)
@DevEnabled
@DevEnabled 4 жыл бұрын
@@MatthewCC0311 Nice, sounds cool. Be sure to leave a comment when you start the devlogs, I love following other developers and watching their progress.
@CombatFXZone
@CombatFXZone 5 жыл бұрын
3:57 lmao
@DevEnabled
@DevEnabled 5 жыл бұрын
I'm guessing you have CC on?... YT seems to default to that regardless of how I pronounce it, I'm starting to worry about it having a bit of an obsession...
@CombatFXZone
@CombatFXZone 5 жыл бұрын
@@DevEnabled don't worry, for a childish moron like me this "advanced humor for mature people" is a nice addition to your already great videos haha
@JeffKwak
@JeffKwak 4 жыл бұрын
Thank you for explaining _WHY_ you are doing things and why you are making certain decisions like prefixing the class names with the project name et. al.
@DevEnabled
@DevEnabled 4 жыл бұрын
No worries, the process is as important, if not more so than just copying the code.
@lennartlut
@lennartlut 4 жыл бұрын
Thanks for the great video. Do you have some sort of Unreal Cheat Sheet? It feels like there is quite a lot to remember at the beginning and so much to keep in mind. It would be great to have a general goto sheet of paper regarding the general process.
@DevEnabled
@DevEnabled 4 жыл бұрын
I don't have anything like that. A lot of procedures and approaches are just things that you start to memorise the more you do them and then for other things like engine specific functions people tend to not remember them as there are just too many so I tend to have the documentation up on the other screen if there's something I might need during a video.
@erikpolygon5471
@erikpolygon5471 4 жыл бұрын
Rider is amazing! Thanks for the tip yesterday
@DevEnabled
@DevEnabled 4 жыл бұрын
Yeah, it is. I'm not sure on the pricing yet but I have a feeling I'll be buying it whenever it goes into full release. It's made UE4 C++ almost not a chore to work with.
@baconhairman
@baconhairman 5 жыл бұрын
when i try to create the character class i cannot compile the files. Please help!
@DevEnabled
@DevEnabled 5 жыл бұрын
check the compiler errors, there're so many issues that it could be that it'd be hard to just guess. Also, make sure you have all the correct parts of VS installed and maybe even restart the pc just to check it's all synced up, that can sometimes be an issue for complete first-time installations.
@baconhairman
@baconhairman 5 жыл бұрын
@@DevEnabled Thank you its now fixed
@thescrimsknight9554
@thescrimsknight9554 4 жыл бұрын
What do u do if the c++ compilie fails??? I have followed every step up to the compiling process. What do I do???
@DevEnabled
@DevEnabled 4 жыл бұрын
Read the output log, locate the error and fix it.
C++ Character Header Implementation UE4 / Unreal Engine 4 C++
14:28
C++ Character Input Implementation UE4 / Unreal Engine 4 C++
17:16
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 17 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 54 МЛН
C++ Character Movement Functions UE4 / Unreal Engine 4 C++
11:11
Dev Enabled
Рет қаралды 38 М.
C++ Health & Damage System UE4 / Unreal Engine 4 C++
16:57
Dev Enabled
Рет қаралды 24 М.
C++ Line Trace UE4 / Unreal Engine 4 C++
13:55
Dev Enabled
Рет қаралды 19 М.
C++ Interfaces Pt 1/3 UE4 / Unreal Engine 4 C++
11:04
Dev Enabled
Рет қаралды 22 М.
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
Learn Unreal Engine Networking in 30 Minutes
27:25
reubs
Рет қаралды 103 М.
Unreal Engine C++ Tutorial - Unreal Engine 4 C++ Character Movement - UE4 C++
33:12
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 85 М.
Learn Unreal Engine C++ In One Hour
55:43
reubs
Рет қаралды 287 М.