TSubclassOf is a special template of UClass which only accepts specific subclasses of some base class. So it's still a UClass which is just a class specifier which you can spawn things from, but it does not have the variables or functions of the declared class. however, you can GetDefaultObject<T>() which is a master copy of the defined class object and contains the default variables which you can use before spawning that object.
tsubclassof是一种特殊的模板,UClass只接受特定的一些基类的子类。所以,它仍然是一个UCLASS这是一类可以产生的东西,但它没有在类声明的变量或函数。然而,你可以getdefaultobject ()是定义的类对象的主副本和包含默认的变量,您可以使用该对象在产卵。
凑合翻译看吧。
例子:
(自定义的controller类) * ctrl = GameMode->PlayerControllerClass.getdefaultobject();