为ue4中的函数“实施空逻辑”是什么意思?

问题描述 投票:0回答:1

我正在学习设置角色交互的教程,其中一部分说要使用以下代码制作头文件:

public:

/*This property will be used in order to bind our subtitles
Binding will make sure to notify the UI if the content of the following
variable change.*/
UPROPERTY(BlueprintReadOnly)
FString SubtitleToDisplay;


/*Updates the displayed subtitles based on the given array*/
UFUNCTION(BlueprintCallable, Category = DialogSystem)
void UpdateSubtitles(TArray<FSubtitle> Subtitles);

/*This array will populate our buttons from within the show function*/
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
TArray<FString> Questions;

/*Adds the widget to our viewport and populates the buttons with the given questions*/
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category = DialogSystem)
void Show();

然后,它告诉我“现在为UpdateSubtitles函数实现一个空逻辑。”我不知道这意味着什么,并且考虑到UpdateSubtitles是在编译此代码时给我一个错误的一件事,这可能很重要。有谁知道这个术语指的是什么?

c++ logic unreal-engine4
1个回答
0
投票

这意味着仅将函数的内容保留为空白或返回空结果,例如:

© www.soinside.com 2019 - 2024. All rights reserved.