UActorAnimationController::UActorAnimationController() // Constructor
{
USkeletalMeshComponent* const skeletalMeshComponent = GetOwner()->FindComponentByClass();
~~
~~
}
.
return (T*)FindComponentByClass(T::StaticClass());
This code makes runtime error.
I think this is because Unreal engine don’t make reflection data yet.
I think I should move this FindComponentByClass to other callback function.
This code is relevant with CDO object.
I should do setting value of CDO.
Where should i move this code to?