Files
PHY/Plugins/GMS/Source/GenericMovementSystem/Private/Settings/GMS_SettingStructLibrary.cpp
2026-03-03 01:23:02 +08:00

28 lines
733 B
C++

// Copyright 2025 https://yuewu.dev/en All Rights Reserved.
#include "Settings/GMS_SettingStructLibrary.h"
#include "Settings/GMS_SettingObjectLibrary.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(GMS_SettingStructLibrary)
#if WITH_EDITOR
void FGMS_AnimDataSetting_General::PostEditChangeProperty(const FPropertyChangedEvent& PropertyChangedEvent)
{
if (PropertyChangedEvent.GetPropertyName() != GET_MEMBER_NAME_CHECKED(FGMS_AnimDataSetting_General, GroundPredictionResponseChannels))
{
return;
}
GroundPredictionSweepResponses.SetAllChannels(ECR_Ignore);
for (const auto CollisionChannel : GroundPredictionResponseChannels)
{
GroundPredictionSweepResponses.SetResponse(CollisionChannel, ECR_Block);
}
}
#endif