How do i make custom variables

i want to make a custom variable that has a float a int and a bool in it how can i do that?

1 Like

You are looking for struct variables, they are really helpful :slight_smile:

this is not what i need when i learned java we learned that we can make custom variables that have variables in them is this possible?

Yes, it’s possible with struct variables. Read the link.

In Java you probably learned about classes; translated to ue4, that would mean creating a blueprint with some variables and then spawing/accessing the values. That is not how it should be done in ue4, use structs instead :slight_smile:

is all about just spliting var is not helpful

  1. Click “Add New” in your content browser.
  2. Select “Blueprints” → “Structure”.
  3. Type a name for your struct.
  4. Double click on your new struct and add included types.
  5. In your Blueprint you can now add that struct as a variable type.
  6. You struct will appear under the “Structure” section when you select a variable type, see here https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Variables/Structs/index.html#creatingstructs for information on how to select the struct, split the struct, etc…

Hope that helps.

thank you now i get it it works thx

You’re welcome!