Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WebGL Template for Facebook (full-frame)

Discussion in 'Assets and Asset Store' started by hippogames, Mar 4, 2017.

  1. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    Hello! I would like to present you my template WebGL Template for Facebook (full-frame)!
    http://u3d.as/Jsk



    This package contains WebGL template suitable for Facebook games.

    Features:
    - logo and progress indicator
    - downloading progress in Mb
    - full-frame

    You can see it in action in my game on Facebook: http://apps.facebook.com/taptapbuilder

    Usage:
    - make sure you have "Assets/WebGLTemplates/FacebookTemplate/" folder in your project
    - open player settings (File > Build Settings... > Player Settings...)
    - switch to WebGL
    - open "Resolution and Presentation" tab
    - select WebGL template
    - build you project
    - host on server / run locally in Firefox

    Feel free to rate it and leave your feedback! Thanks!
     

    Attached Files:

    yuliyF likes this.
  2. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    %UNITY_WEBGL_LOADER_GLUE%
    i see this text on top left always in unity 5.6
     
  3. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    Can you a template for fixed sized window in the center on iFrame with loading bar and icon.
     
  4. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    I'll check it after 5.6 will be released. But for now - it works with stable release 5.5.2.
     
  5. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    How to convert the full screen to smaller size window!. We need a fixed sized window
     
  6. dianadorinamita

    dianadorinamita

    Joined:
    Jan 21, 2016
    Posts:
    25
    i publish 4 games recently on facebook and it past 2 months and not see players on my game, please help
     
  7. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    Simply use default template and set canvas size!
     
  8. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    No i meant how to rescale with this template
     
  9. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    I think you can edit Style.css from TemplateData, for example set:
    canvas { width: 50%; height: 50%; position: absolute; }
     
  10. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
    cant use it now anyways. This template does not support 5.6.
     
  11. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
  12. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
  13. VicToMeyeZR

    VicToMeyeZR

    Joined:
    Jun 3, 2012
    Posts:
    427
  14. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    Unfortunately, it seems there is no way to get download progress in MB with new template system. For now, I'm using default unity template (simple) in my games.
     
  15. VicToMeyeZR

    VicToMeyeZR

    Joined:
    Jun 3, 2012
    Posts:
    427
    Not talking about the download MB progress.. Talking about the template html file doesn't work at all...
     
  16. VicToMeyeZR

    VicToMeyeZR

    Joined:
    Jun 3, 2012
    Posts:
    427
    Code (csharp):
    1. %UNITY_WEBGL_LOADER_GLUE%
    Broken..
     
  17. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    Use default demplate, it works fine with unity 5.6 and contains download progress in %. After build completed you'll be able to modify html.
     
  18. VicToMeyeZR

    VicToMeyeZR

    Joined:
    Jun 3, 2012
    Posts:
    427
    Um, yeah, lol. This is a post on your plugin for a WebGL TEMPLATE... Not talking about default Unity template. SO, your plugin is broken. No need to keep telling me to use the Unity default template. I know it works. seriously
     
  19. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    279
  20. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    228
    Sure, but it was free) Now this asset is deprecated.