Search Unity

How to integrate photon to Project Tiny

Discussion in 'Project Tiny' started by ankitsinghkushwah107, Aug 8, 2019.

  1. ankitsinghkushwah107

    ankitsinghkushwah107

    Joined:
    Jul 21, 2019
    Posts:
    7
    Hello Team,

    I am trying to make a async multiplayer game. I have already used photon in many projects and thought If I could
    integrate it in project tiny. I tried several ways but I am not able to build and run project without error. Have anyone tried this?

    Thanks.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,603
    You can not, not the regular Unity SDK at least. Project Tiny does not support the standard .NET frameworks (they are responsible for a few of the regular 20MB minimum build size of Unity WebGL builds) or UnityEngine, upon which the Photon SDK relies.

    But what should work is the BrowserInterop approach with Photon's Websocket solution and feed information from JS > Tiny and Tiny > JS. The related documentation can be found at https://doc-api.photonengine.com/en/javascript/current/index.html
     
  3. ankitsinghkushwah107

    ankitsinghkushwah107

    Joined:
    Jul 21, 2019
    Posts:
    7
    @Dreamora
    Thanks for the response.
    did you try webosocket sharp?