Skip to content

Missing Function For Unity Events #791

@Chifilly

Description

@Chifilly

I'm unsure of the cause of this, but all of the events for my inputs say that the function is missing, even though the functions aren't missing, and when I enter play mode, the events fire exactly as they should.

The biggest issue I have now though is that I can't add new events, because none of my functions appear unless they have no parameters, but I need to be able to have access to CallbackContext.

This worked perfectly fine previously, and the function gets called perfectly fine in play mode, but when I try and select a function for the event, none of the functions show up at all.

Here's an example of a function, this is the basic skeleton of all my event functions, which is correct according to the documentation (and they work in-game);

public void Move(InputAction.CallbackContext context)
{
    // ...
}

This is what it shows in the editor:
unity_input_system_missing_functions

I'm using version preview-0.9.3 of the Input System package, and version 2019.3.0a12 of Unity.

I was previously using preview-0.9.0 of the Input System package and it still had the issue (I updated to see if it would fix it). I'm unsure if the issue was in 2019.3.0a11 of Unity, because I didn't need to change the events when I was on that version, so I never checked.

EDIT:
I got my project open in 2019.2.1f1 and it worked correctly. I can't test it on 2019.3.0a11 because I uninstalled it and can't download it via Unity Hub anymore and I can't find an external download. But it seems that the issue occurred when upgrading to one of the newer alpha versions of Unity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions