How to include MY DataAsset's header file from C++ ?

Hi,

having a couple of DataAsset’s I just cannot find a way to include their respective header files in my C++ code.

all tutorials show how to create a c++ class, and create BP data assets from it

I want to use my BP data assets inside my cpp code

thanks

Does

#include "Engine/DataAsset.h"

Still give errors?

1 Like

I mean my data assets
please read my post

[
please admin can you reset this thread so it has a chance someone gives an actual answer ?
thanks
]

You should probably re-write this question, try using different terms and showing your code.

the phrase is simple and concise

I thank you for trying to help

but throwing the first thing that comes up in your mind is not helping

I did not complain about an include error

I just dont know how to use my DataAsset’s in my c++ code, and obviously you dont either

rewriting the question wont help

thanks

I found a solution, inherit a child class in c++ and override the constructor

now I realize that another approach would be to leave the editor the responsibility of giving me DataAsset classes to use in C++

1 Like