Hello. I want to find out why there are interface variables. What is the use of them? Is it for editing them in runtime or anything like that?
Interfaces is a method to communicate different blueprints implementing the same interfaces.
You can share data or call functions and no need to cast the other blueprint or even know what kind is it. if it implements the interface (for example FIRE) you can make it fire. No need to know what type of BP it is, just knowing it implements FIRE interface you know it can FIRE.
I know. The question was about variables which contain interfaces.
Its just a form of categorization. All the interfaces are grouped there.
Just like struct will hold all structs that reside in your project.
They also hold default engine interfaces & stucts so there are many more than just the ones you create yourself
variable does not contain interface.
a class implements an interface.
you can think of it like a radio channel. Somebody can send a message over the channel. Whoever is on the other end, if they are on that channel, can do what they want from receiving the message.
That’s not a perfect analogy because the sender does need a soft reference to the receiver. However, a real programmer can explain that better than me.