Телефон в качестве контроллера

The core idea is to have game run some server and your phone app to send signals to that server.

I’m not aware about best practices for this task, but the simplest you can done with UE is:

  1. to start tcp server (ue has build-in support for client&server sockets, but not for http servers, so http is out of questions if you want to keep things simple)
  2. implement some simple messaging protocol so you can send(FString) and have a delegate message_received(const FString&) (simplest protocol would be the [4bytes for message length]+[message], tcp will handle the rest of problems)
  3. Pick any method you like to build phone app, that supports raw tpc sockets, build app and implement the same protocol
  4. Make sure to implement a discovering mechanism. For example multicast request in current network or scanning all IPs or just enter PCs IP on the phone directly
  5. Tie all this up together, so you can successfully exchange messages between PC and your app
  6. Build a protocol (on top of one made in p.2) that implements the meaningful gameplay logic between devices. I can recommend sending JSONs back and forth since they are quite easy for understanding and debug and have an UEs build-in support.

Probably there should be a lot of a places for improvements, but at least it will work as a proof of concept