Instantiate TScriptInterface

Hey there.
I have a Property of Type


TScriptInterface

.
How do I instantiate it at runtime?


NewObject<T>()

throws an error when I put a


TScriptInterface 

into it

Hello Raildex_

We need more information to help you.
I hope you are well aware of the use of an interface.

Considering you have a UObj class inheriting from your interface IYourClass,
and you want to instantiate your UObj as a IYourClass you would do:

Hope this help.

2 Likes

Ay. Thank you very much! That’s it!