Hello, this is my first post, nice to meet you all, really glad to be here.
Okey, in continuing to my problem, I have a few implementations of my interface and I want to add these implementations as default values to my blueprint.
My interface is called CoreObject, and the blueprint where I want to add this array of implementations of my interface is this one
But then I want to add these implementations to the default value of this blueprint and I am unable to add them, it shows in red
As you can see I am unable to add this “Coin” to the default values of my variable, and Coin does implement the “Core Object” interface.
My question is, how can I accomplish this or what I am doing wrong in the way I am trying now.
I have been the last 2 days looking for why it happens, reading about Unreal engine interfaces, and how to interact with them and I did not find an example to do what I am trying right now.
This is one of the best articles I found about variables:
And the unreal doc:
The reason I want to do this way is to only allow instances/implementations of my CoreObject interface to be added as values to this variable from here and in the future.
After a while, I realised that I can do it, setting my variable type as an Object ( The main base object of unreal) and yes I can add them as default this way, but then when I execute the begin play any of the default values implements the interface.
I hope It’s clear, I tried my best to explain it, really appreciate your help I am a newbie in unreal engine.
Thanks in advance,
Lorenzo