Where to create ShooterTypes.h

Hi gays! I want to konw, the ShooterGame Project’s C++ code , Where to create ShooterTypes.h??

![80687-nsp[ccqjg2]930hfn2$e]ns.jpg|1321x772](upload://gXbb4dk3mQFQqHipCp62KyGBIbL.jpeg)

Could you elaborate on your question a bit? I’m not entirely sure what you are looking for.

UE4 Editor create C++ code not found “Type”,I want to kown this ShooterTypes.h how to create. I tired new a .h files in VS2015, but It doesn’t work. :frowning:

Are you trying to create this file in a new project?
In Shooter Game, the file is already there and all you would need to do in order to make changes is compile the project.

yes, I tried create this file in my project,but it’s doesn’t work╮(╯▽╰)╭

Have you tried creating a class based on None (essentially a blank class) and then using that as the base for your ShooterTypes class?

yes. but it’s not exactly right, the ShooterTypes.h is not a class,just a “.h” file。but,I found a Solution.

  1. in your project path, source/ projectname/public create a new .txt, chang name txt->h;
  2. right click project.uproject, and generate
  3. open this new file in your VS2015, add #include"objectbase.h" header files,and you can wirte UENM or USTRUCT, finaly, generate in VS2015
  4. delete #include"objectbase.h", and write #include“filename.generated.h”
  5. Congratulation!!

Original answer by Mr.zippo was removed.

Here is the answer:

“yes. but it’s not exactly right, the ShooterTypes.h is not a class,just a “.h” file。but,I found a Solution. 1. in your project path, source/ projectname/public create a new .txt, chang name txt->h; 2. right click project.uproject, and generate 3. open this new file in your VS2015, add #include"objectbase.h” header files,and you can wirte UENM or USTRUCT, finaly, generate in VS2015 4. delete #include"objectbase.h", and write #include“filename.generated.h” 5. Congratulation!!"

OMG!! this my fault, sorry, guys not gays. and thank you for helping me solve the problem.

Good night