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

Method RemoveAxis

Script/UE/CoreUObject/InputComponent.cs:259–281  ·  view source on GitHub ↗
(FName InAxisName, UObject InObject, Action<float> InAction)

Source from the content-addressed store, hash-verified

257 }
258
259 public void RemoveAxis(FName InAxisName, UObject InObject, Action<float> InAction)
260 {
261 var InputAxisDelegateBinding = UInputComponentImplementation
262 .UInputComponent_GetDynamicBindingObjectImplementation<UInputAxisDelegateBinding>(
263 InObject.GetClass().GarbageCollectionHandle,
264 UInputAxisDelegateBinding.StaticClass().GarbageCollectionHandle);
265
266 if (InputAxisDelegateBinding != null)
267 {
268 foreach (var InputAxisDelegate in InputAxisDelegateBinding.InputAxisDelegateBindings)
269 {
270 if (InputAxisDelegate.InputAxisName == InAxisName &&
271 InputAxisDelegate.FunctionNameToBind.ToString() == InAction.Method.Name)
272 {
273 InputAxisDelegateBinding.InputAxisDelegateBindings.Remove(InputAxisDelegate);
274
275 break;
276 }
277 }
278 }
279
280 InObject.GetClass().RemoveFunction(InAction.Method.Name);
281 }
282
283 public void RemoveAxisKey(FKey InKey, UObject InObject, Action<float> InAction)
284 {

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