Download

FObjectFinder and UPaperSprite

Hi

I want to call a sprite in my C++ Actor initialization to have a default one loaded. But it seems to be not possible to use UPaperSprite in FObjectFinder.
Is there a way to do this ?

If not i can create a blueprint of my sprite and call this blueprint in FObjectFinder but i’m not sure it’s the best thig to do …

Found the reason. Tha lib of paper are not integrated … Don’t know why.

What is the diffrence between FObjectFinderOptional and FObjectFinder ?

So found it …
I have it in the .build.cs

But my question here is not resolved :
What is the diffrence between FObjectFinderOptional and FObjectFinder ?

And another question : why don’t i have the private nor the public folder in my source ? Like in the code sample ?
I created the project in blueprint then i added code to project after … Is it the reason ?