Skip to content

reddit/devvit-unity-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

This project is built with Unity 6.2 (6000.2.8f1)

Instructions

  1. Once downloaded, open this project via Unity Hub.
  2. Navigate to Assets/Scenes/SampleScene and open that scene.
  3. Press Play to test the scene in the Unity environment.

Exporting for Devvit

Here are the steps to export this project for the configured Devvit Unity Starter Template:

  1. In Unity, select File > Build Profiles and switch the active platform to Web.

  2. In the Build Profiles window, select Player Settings to open the Player Settings window.

  3. In Player Settings, scroll down to Publishing Settings and ensure Decompression Fallback is selected.

  4. Now we are ready to export, but the project needs to be built twice:

    a. Set the Compression Format to GZip and select Build in the Build Profiles window.
    b. Copy the following files into your src/client/Public/Build folder of the Devvit Starter Template:

    • exportName.data.unityweb
    • exportName.wasm.unityweb
      c. Next, in Publishing Settings, set Compression Format to Disabled and select Build again.
      d. Copy the following file into your src/client/Public/Build folder:
    • exportName.framework.js
  5. Run npm run dev in your Devvit project to update the Unity app running within Reddit.

About

The full Unity game project which is exported to devvit-template-unity

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published