嗨,我在UE4得到了非常简单的游戏,我猜我做了静态网格,并添加了终端到它,所以它现在显示,当玩家运行它的生活它应该结束时,我得到它像
void UBullCowCartridge::BeginPlay() // When the game starts
{
Super::BeginPlay();
PrintLine(TEXT("DEV: Slovo je: "));
PrintLine(TEXT("Riskuj"));
PrintLine(TEXT("Budes hadat slovo"));
PrintLine(TEXT("Mas 5 zivotu slovo je ISOGram (pismenka ve"));
PrintLine(TEXT("slove se neopakuji)"));
PrintLine(TEXT("pokud nejake pismeno bude dobre pricte se ti byk pokud nejake spatne pricte se ti"));
PrintLine(TEXT("krava"));
PrintLine(TEXT("Zacnes psat pomoci TAB tlacitka."));
HiddenWord = TEXT("Svoboda");
}
void UBullCowCartridge::OnInput(const FString& Input) // When the player hits enter
{
ClearScreen();
if(Input == HiddenWord)
{
PrintLine(TEXT("You win!"));
} else {
PrintLine(TEXT("You lose"));
--live;
}
if(live == 0) {
end();
}
}发布于 2021-07-05 07:43:24
如果我没理解错的话,你想设置不可见的“终端”静态网格。在这种情况下,您可以这样做:
//don't forget cast the class containing mesh component
terminal_static_mesh_component->SetVisibility(false);https://stackoverflow.com/questions/68243774
复制相似问题