Beginner Blueprints problems ( cast)

Hi,

To be short, cast is a direct communication node. It allows you to communicate with another actor blueprint directly. It requires a reference from the receiver (the blueprint which you want to communicate with. get game mode gives you that reference). To use a pure cast to, just right click on your cast to node then click on pure cast (pure cast is used when you are sure your cast will always succeed). Pure function is a function with no execution pins on it. To set your game mode, you also should check it in the world settings as well.

Regards,

Hello everyone, I’m getting to know UE4. At the moment, I have sth stuck on my mind recently. So I follow an instructor, in that, we created a new GameMode Called A. And we keep have to do these steps in some blueprints:

  1. Get Game Mode
  2. Cast to A ( he even said he should let this be pure, which i don’t understand at all)
    So can anyone can explain for me:
  3. What does a Cast do?
  4. I though when I selected the default gamemode to A in ProjectSettings, it will be A eventually. So why I have to get and set to A everytime?
  5. What is pure function?
    Thank you in advance!!