MCPcopy Create free account
hub / github.com/crazytuzi/UnrealCSharp / RemoveKey

Method RemoveKey

Script/UE/CoreUObject/InputComponent.cs:307–330  ·  view source on GitHub ↗
(FInputChord InInputChord, EInputEvent InKeyEvent, UObject InObject, Action<FKey> InAction)

Source from the content-addressed store, hash-verified

305 }
306
307 public void RemoveKey(FInputChord InInputChord, EInputEvent InKeyEvent, UObject InObject, Action<FKey> InAction)
308 {
309 var InputKeyDelegateBinding = UInputComponentImplementation
310 .UInputComponent_GetDynamicBindingObjectImplementation<UInputKeyDelegateBinding>(
311 InObject.GetClass().GarbageCollectionHandle,
312 UInputKeyDelegateBinding.StaticClass().GarbageCollectionHandle);
313
314 if (InputKeyDelegateBinding != null)
315 {
316 foreach (var InputKeyDelegate in InputKeyDelegateBinding.InputKeyDelegateBindings)
317 {
318 if (InputKeyDelegate.InputChord == InInputChord &&
319 InputKeyDelegate.InputKeyEvent == InKeyEvent &&
320 InputKeyDelegate.FunctionNameToBind.ToString() == InAction.Method.Name)
321 {
322 InputKeyDelegateBinding.InputKeyDelegateBindings.Remove(InputKeyDelegate);
323
324 break;
325 }
326 }
327 }
328
329 InObject.GetClass().RemoveFunction(InAction.Method.Name);
330 }
331
332 public void RemoveKey(FKey InKey, EInputEvent InKeyEvent, UObject InObject, Action<FKey> InAction)
333 {

Callers

nothing calls this directly

Calls 5

StaticClassMethod · 0.80
RemoveFunctionMethod · 0.80
GetClassMethod · 0.45
ToStringMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected