Classes and Global Variables

  1. My Unreal Engine project seems to be incapable of global variables in Blueprints. I’ve tried everything I can think of, as well as suggestions from the Unreal Engine website. Creating any kind of variable in a blueprint will not be visible for me in any other blueprint, even if I set it to public and get the eye icon open and green. Does anyone know of ANY setting which would prevent this from happening? It’s creating problems, as I end up needing to do all blueprinting, design, movement, and events in a single Blueprint.

  2. I’ve managed to create an object (a block) which has an on hit event which does some stuff. However, any other instances of that block do not trigger. I’m guessing this ties into classes, and setting up a class, a blueprint for that class to handle events, and then creating objects/instances of the class, but I’m unsure of how to do that. Does anyone have a good explanation, or a helpful video tutorial? Please keep in mind that I’m new, so be as detailed as possible, or pick a tutorial as easy as possible.

Also, when speaking of classes, could I have a class (block) and then have a variable for color, so I could change the color of an instance on the fly in the editor, and have it actually change color?

Thanks in advance. I know these probably sound like basic questions and some people may tell me to look up tutorials and guides, but I have looked through quite a few. Some are too advanced for me right now, some are for slightly different things, and some just glance over and don’t explain what I’m wanting to know. I’m definitely trying to learn a lot on my own, but assistance would definitely be appreciated!

  1. you set and get varables of other object by draging objectbpin output from any node and drop it in empty space, context menu with list of all possible connections, including varables set and get nodes. There classes that exist in single instance, are easily accessable from any class like gamemode for example, you can use them to store global varables

2)can you tell more about the blueprint? It should work alright from what you saying

  1. about color yes you can do that by using material parameters, input values of material that can change material looks which you can set via blueprints. You need to prepare material first.