Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haxe error when overriding SetupPlayerInputComponent #122

Open
yuhe00 opened this issue Mar 13, 2019 · 0 comments
Open

Haxe error when overriding SetupPlayerInputComponent #122

yuhe00 opened this issue Mar 13, 2019 · 0 comments

Comments

@yuhe00
Copy link

yuhe00 commented Mar 13, 2019

When overriding SetupPlayerInputComponent in an APawn actor like this:

	override public function SetupPlayerInputComponent(InputComponent:UInputComponent) {
		InputComponent.BindActionHxVoid("Action1", EInputEvent.IE_Pressed, this, onAction1);
		InputComponent.BindActionHxVoid("Action2", EInputEvent.IE_Pressed, this, onAction2);
		InputComponent.BindActionHxVoid("Action3", EInputEvent.IE_Pressed, this, onAction3);
	}

I get this when I run the game.

HaxeLog: Error: HaxeCodeDispatcher.hx:75: AKFTargetedPawn.SetupPlayerInputComponent: The object at index 83615 (UInputComponent) had incompatible serial numbers: 38173 != 0
HaxeLog: Error: HaxeCodeDispatcher.hx:79: Stack trace:
Called from uhx.ClassWrap.wrap (uhx/ClassWrap.hx line 60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant