Search Unity

Help with CrossPlatformInputManager in external DLL

Discussion in 'Input System' started by rcazzy, Jul 7, 2020.

  1. rcazzy

    rcazzy

    Joined:
    Jun 7, 2014
    Posts:
    14
    Hello,

    I have an external DLL which builds my level and gameplay at runtime. I'm attempting to add CrossPlatformInputManager.GetButtonDown to the DLL but when I run the game, it does not seem to recognise my touch inputs using the ButtonHandler example (ButtonHandler with string input, and EventTriggers for OnPointerDown and OnPointerUp). I have a line of code running to recognise Fire1 in the main project and that works, but it seems in the external Update function

    Code (CSharp):
    1. if(CrossPlatformInputManager.GetButtonDown(BIRDS_EYE_BUTTON)){
    2. //LaunchSceneSpecificObject
    3. }
    does not register.

    I am using the StandardAssets from the Asset Store implementation. I should note, Input.GetButtonDown works, but I require the CrossPlatformInput to work. Any help with how to implement this would be great.