Skip to content

Commit

Permalink
Ramp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakzttv committed Dec 3, 2024
1 parent c3e589d commit b8115cd
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/v2.6/12_ramp.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,19 @@ Specify a Cross-Origin Resource Policy to prevent a resource from being blocked
```
This is a local/localhost specific error and doesn't happen on real domains during deployment. If you want to test ramp locally follow these steps
1. Make a WebGL build **NOT** Build And Run, Make sure `Player Settings > WebGL > Compression Format` isn't set to Brotli
2. Navigate to the build directory and setup a server on port 8000
Windows: Navigate to Build directory open terminal and run command `"[Unity Editor Directory]/Editor/Data/MonoBleedingEdge/bin/mono.exe" "[Unity Editor Directory]/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe" "[Build Directory]" 8000` [Unity Editor Directory] is usually `C:/Program Files/Unity/Hub/Editor/2022.3.../`
Mac/Linux: Install [Python](https://www.python.org/downloads/) and in the Build directory open terminal and run command `py -m http.server`
<br />
2. Navigate to the build directory and setup a server on port 8000, Windows: Navigate to Build directory open terminal
<br />
<br />
Run command `"[Unity Editor Directory]/Editor/Data/MonoBleedingEdge/bin/mono.exe" "[Unity Editor Directory]/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe" "[Build Directory]" 8000`
<br />
<br />
[Unity Editor Directory] is usually `C:/Program Files/Unity/Hub/Editor/2022.3.../`
<br /><br />
Mac/Linux: Install [Python](https://www.python.org/downloads/) and in the Build directory open terminal
<br />
Run command `py -m http.server`
<br /><br />
3. Run build using [https://localhost:8000](https://localhost:8000)

Now you should be able to test Ramp locally on WebGL!
Expand Down

0 comments on commit b8115cd

Please sign in to comment.