UObject get deleted just after being created

hey, thanks !

I placed the NewObject() in BeginPlay and it worked fine, but adding UResource::StaticClass() and this or not seems to change nothing (I thoght they were the default parameter).

The crash with the code compiled with “this” as parameter isn’t happening when NewObject() is in BeginPlay, so I suppose that “this” isn’t defined yet in the constructor (a bit odd yes).

Do you know when PostInitProperties() is called (compared to the constructor and BeginPlay) ?

Thanks again, it helps me a lot