Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Learn how to make your UE App able to receive inputs from mobile devices.

Overview

Achieving your mobile configuration will require making modifications to both your Control Panel Config and Unreal Engine (UE) Project.

Instructions

1. Modifications from the Control Panel Config

To receive Touch commands on Mobile devices, you should enable the Config Feature from the Control Panel.

If you are using:

  • Old Control Panel : Enable ‘Fake Mouse with Touches’ Config. Refer to this document.

  • New Control Panel : Enable ‘Mobile Touch’ Config. Refer to this document.

2. Modifications from the Unreal Engine (UE) Project

...

Follow the instructions below to setup your Project for both Mobile and Desktop.

...

Create a Cursor UMG

...

  1. Create a Widget Blueprint.

...

  1. Add to the Canvas with a small size as a cursor (example 20×20).

...

  1. Set the image Alpha to Zero.

...

  1. This will act as an invisible Cursor and it will be hidden behind the Browser Cursor during the Pixel Streaming.

...

    ...

    1. Set the created Cursor Widget under Software cursors

    Panel
    panelIconIdatlassian-info
    panelIcon:info:
    bgColor#E6FCFF

    Project Settings ->Engine->User Interface

    6. Navigate to: Project Settings >Engine>User Interface.

    1. Set Pixel Streamer Default Cursor Class Name to ‘DefaultCursor

    ...

    panelIconIdatlassian-info
    panelIcon:info:
    bgColor#E6FCFF

    ...

    Navigate to: Project Settings >Plugins>Pixel Streaming.

    ...

      ...

      1. Set the Show Mouse Cursor in Player Controller to TRUE

      ...

      atlassian-#E6FCFF
      panelIconId
      Info
      panelIcon:info:
      bgColor

      In Level Blueprint (or as per project).

      ...

      2.2. Touch Interface Setup (Optional)

      Noteinfo

      This allows you to enable Joystick Controls in your App for Mobile devices.

      1. Follow the steps below:

      1. Create Touch Interface (or Copy from the Engine)

      ...

      1. In Touch Interface, set :

      ...

      panelIconIdatlassian-info
      panelIcon:info:
      bgColor#E6FCFF
      • Active Opacity = 0.8

      • Inactive Opacity = 0

      ...

      Info

      ...

      ...

      This will hide the Interface used on PC and make it visible on Mobile devices.

      ...

        ...

        1. Set the created Interface under Default Touch Interface

        ...

        panelIconIdatlassian-info
        panelIcon:info:
        bgColor#E6FCFF

        ...

        Navigate to : Project Settings

        ...

        >Engine

        ...

        >Input.4.

        1. Enable ‘Always Show Touch Interface

        ...

        Follow this path: Edit > Project Settings > Input > Mobile > Always Show Touch Interface.

        ...

          ...

          1. Set the Parameters as follow

          ...

          panelIconIdatlassian-info
          panelIcon:info:
          bgColor#E6FCFF

          ...

          Navigate to : Project Settings

          ...

          > Input > Enter the Parameters values below.

          ...

          Info

          The next step will be to PackageandUploadyour Appappon the Control Panel.

          Info

          The source code of the steps showed in this tutorial is here.

          ...

          .

          ...

          Need help? Contact Support

          ...