/// <summary> /// Allows a Pawn to set up custom input bindings. Called upon possession by a PlayerController, using the InputComponent created by CreatePlayerInputComponent(). /// </summary> protected virtual void SetupPlayerInputComponent(UInputComponent playerInputComponent) { setupPlayerInputComponentRedirect .Resolve(VTableHacks.PawnSetupPlayerInputComponent, this) .Invoke(Address, playerInputComponent.Address); }
internal override void SetupPlayerInputComponentInternal(IntPtr playerInputComponentAddress) { UInputComponent playerInputComponent = GCHelper.Find <UInputComponent>(playerInputComponentAddress); SetupPlayerInputComponent(playerInputComponent); }
protected virtual void SetupPlayerInputComponent(UInputComponent playerInputComponent) { }