Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.25.4 Does not see Components directories #8

Open
salimp2009 opened this issue Mar 12, 2021 · 3 comments
Open

4.25.4 Does not see Components directories #8

salimp2009 opened this issue Mar 12, 2021 · 3 comments

Comments

@salimp2009
Copy link

salimp2009 commented Mar 12, 2021

Hi Tom,
Just wanted to learn how do you handle when you folders in c++ classes like Components; In 4.25.4 VS 2019 or Unreal does not see them ; you have identify the full path or at least in my case ; like

#include "CoopGame/Public/Components/SHealthComponent.h"

if i write directly #include "SHealthComponent.h" it does not see even SHealthComponent.cpp does not see .

Actually when you create from Unreal the SHealthComponent class in a seperate Components directory at the begining; it creates the class but it give compiling error and it is fixed when you fix the header file in the cpp file.
Is there another way to that in 4.25.4 .
It was not like this in prev version of UE4 . Somethng to do file include path parsers with UE4 is broken i believe; not sure if it is fixed in 4.26.
Not a big deal but just wanted to learn if there is any other way to it

@tomlooman
Copy link
Owner

You should be able to use just the sub-folder like Components/SHealthComponent instead now. This is from a change to how unreal handles paths in newer versions.

@salimp2009
Copy link
Author

thnks a lot :)

@tinhchuquang
Copy link

tinhchuquang commented Apr 28, 2022

Hi Toom
Just wanted to learn how do you handle when you folders in c++ classes like Components; In 4.27.2 VS 2019,. I Include
#include "Components/SHealthComponent" OR #include "CoopGame/Public/Components/SHealthComponent.h"
-> error C4458: declaration of 'HealthComp' hides class member. note: see declaration of 'ASCharacter::HealthComp'
I'm use google but can't not import correct path.
You can show me fix it? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants