Tencent / UnLua

A feature-rich, easy-learning and highly optimized Lua scripting plugin for UE.
Other
2.28k stars 619 forks source link

TYPE_CHECK self 类型检查误报 #594

Open zoloypzuo opened 1 year ago

zoloypzuo commented 1 year ago

UnLua 2.3.3

LogUnLua: Error: Lua error message: [string "F:/UnrealEngine/Lyra/Content/Script/ShooterCo..."]:59: attempt to call UFunction 'RemoveMappingContext' on invalid self type. 'EnhancedInputSubsystemInterface' required but got 'EnhancedInputLocalPlayerSubsystem'.
stack traceback:
    [C]: in method 'RemoveMappingContext'
    [string "F:/UnrealEngine/Lyra/Content/Script/ShooterCo..."]:59: in function 'ShooterCore.Input.Abilities.GA_ADS.K2_OnEndAbility'

Lyra GA_ADS

EnhancedInputLocalPlayerSubsystem:AddMappingContext(BP.Class.IMC_ADS_Speed_C, 11, nil)
xuyanghuang-tencent commented 1 year ago

595