I want my player character to have a function that takes a TSubclassOf variable.
This function should create a component of the exact class the TSubclassOf variable is, but I cant figure out a way to do this.
My question is:
Is it possible to create a component based on the class of a TSubclassOf variable and if yes how?