在Gamemode中替换
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/blueprint/MyWeatherCharacter"));
注意,复制的引用地址必须删除最后的".MyWeatherCharacter",不可保留
为"MyWeatherCharacter.MyWeatherCharacter"
本文介绍了如何在Gamemode中使用FClassFinder替换预设的APawn类,如MyWeatherCharacter,并强调了正确引用的重要性,即去除类名后缀。
在Gamemode中替换
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/blueprint/MyWeatherCharacter"));
注意,复制的引用地址必须删除最后的".MyWeatherCharacter",不可保留
为"MyWeatherCharacter.MyWeatherCharacter"
2950

被折叠的 条评论
为什么被折叠?