Skip to content

Instantly share code, notes, and snippets.

View Joy1792's full-sized avatar
🎯
Focusing

Ming Joy1792

🎯
Focusing
View GitHub Profile
@JohannesDeml
JohannesDeml / README.md
Last active July 17, 2024 14:38
Remove Unity mobile notification warning for WebGL builds

Remove warning

Unity shows the following warning on mobile devices up to Unity 2019.4: "Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway." This script helps you remove this warning

Live example

To see live examples see Unity Web GL Loading Test

Logic

The script will run after the build has completed and replace the checks from all generated javascript files.

Support

@phi-lira
phi-lira / manifest.json
Last active October 28, 2021 05:10
Lightweight Pipeline package manager manifest
{
"registry": "https://staging-packages.unity.com",
"dependencies": {
"com.unity.render-pipelines.lightweight" : "2.0.0-preview"
}
}
@anselm
anselm / TCP_Client_Server_
Created June 20, 2014 18:08
C# TCP Client Server TcpListener NetworkStream UDP
/*
Some scratch code for testing a variety of patterns of client server connection.
I needed to send data from an android phone to a macbook via USB and I happened to be using C# under Unity 3D. Some of the problems I ran into included:
- co-routines under unity were not fully exhausting the tcp buffers fast enough i think; even when I aggressively polled until they were empty...
- kept running into a curious bug where when the android device overheated that there would be a huge latency in traffic from the android device to the desktop.
@pa6lo
pa6lo / gist:5070811
Created March 2, 2013 12:32
HTML5 Multi Touch Canvas Paint (canvas + jquery)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Multi Touch HTML5 Canvas Paint</title>
<meta charset="UTF-8">
</head>
<!--[if lt IE 7 ]> <body class="ie6 "> <![endif]-->
<!--[if IE 7 ]> <body class="ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie8 "> <![endif]-->
<!--[if !IE]>--> <body class=""> <!--<![endif]-->