参考子系统与库
UCFImpactFeedbackLibrary
模块CrushformImpact头文件CFImpactFeedbackLibrary.h父类UBlueprintFunctionLibrary
播放撞击反馈的蓝图函数。
函数
AUTHORITY · 服务器,每个端LOCAL · 本机PURE · 只读
void PlayImpact(const UObject* WorldContextObject, FGameplayTag Tag, FVector Location, FVector Normal = FVector::UpVector, float Intensity = 1.f, EPhysicalSurface Surface = SurfaceType_Default, const UObject* Source = nullptr)
LOCAL
在此处播放映射到 Tag 的撞击效果,仅限本机,其行为与 UCFImpactFeedbackSubsystem::PlayImpact 相同。在专用服务器上或没有撞击反馈子系统的世界中不执行任何操作。若要让所有玩家都看到,请在每一端上调用。@param Intensity 0..1:缩放音量以及特效的 Intensity 参数。@param Surface 若该行设有表面覆盖,则选用该覆盖。@param Source 可选:来自同一来源的撞击共享冷却时间。None:无冷却。
- 分类
- Crushform|Impact