Originally posted by Everynone
View Post
I have an alternative that I thought I'd share.
Instead of using Structs, which it looks like aren't objects and therefore can't be passed around like objects - Use a class. In C# Unity I would do this all the time for storing data.
How to implement it in Unreal
1. Make a new Blueprint of type Object, this becomes the data type.
2. Add the variables you want to hold your data. I made a helper function to set both vars at once.
3. When you want to use it in another blueprint, add a variable of that type (it can be an array just fine if you want)
4. When you want to add to this array, the one thing you do have to do is Create the Object like so:
5. What's great is that it is really easy to get the variable data
Comment