Can compare Template or get the class of template?

Hello,

I’m guessing you want to compare the template class to an actor?
Then this is how I do it:

// .h

template<typename T = AActor>
TSubclassOf<T> ToSpawn;

// .cpp

if (ToSpawn.Get() == AActor::StaticClass())
{
}
else
{
}

~ Dennis “MazyModz” Andersson