How to Create a Struct in c++

Hello everyone,
I want to create a global struct in c++ so i can use it as struct blueprint as shown in image.
Note: i mean that i can create an instance of it in multiple classes for example i want a struct contain an array of montages then create an instance for each character with his own array of montages.

1 Like

Have a look into the ue documentation:

3 Likes

You can’t create the blueprint structs from C++. You can of course create USTRUCT implementations that can be used in Blueprint, but you won’t be able to open them in the asset editor from your screenshot.

1 Like

i already did, but this is not what i want. what i want is to create a struct class like we do with actors and take a reference for it in multiple classes so each class initialize his own data in struct. i wish that i could explain what i want to say to u and thanks in advance.

1 Like

i know, i want to implement the logic inside the blueprint as we implement a c++ version of the actor class for example. so i can take a reference for it inside a multiple classes so each class initialize his own data in struct. i wish that i could explain what i want to say to u and thanks in advance.

1 Like

For short, i need to implement a global struct to take reference for it in multiple classes