Jumat, 29 Desember 2017

Rabu, 27 Desember 2017

Open Two Project At The Same Time in Unity

Ever thinking about testing multiplayer stuffs using Unity without have to compile standalone to test them? This tips from this support website works flawlessly for me

https://support.unity3d.com/hc/en-us/articles/115003118426-Running-multiple-instances-of-Unity-referencing-the-same-project

I even managed to open 3 instance of the same project


for mac, please use this for hardlinking
https://github.com/selkhateeb/hardlink

when editing scene in MacOS, make sure the other scene saved by changing small thing and hit cmd+s. At the other opened Unity, press ctrl+r. I don't know, somehow sometimes the scene didn't updated

Using Wireshark to Analyze Data From Photon

Use display filter

udp && ip.src==119.81.90.46

as 119.81.90.46 is photon's ip address (luckily stumbled on that address upon investigating)



or maybe photon's ip address changed. just read this https://doc.photonengine.com/en-us/realtime/current/reference/analyzing-disconnects

but I found the filter isn't working, so instead I'm using this:

(udp || tcp) && (udp.port==5055 || tcp.port==5055 || udp.port==5056 || tcp.port ==5056|| tcp.port== 5057 || tcp.port== 5058 || tcp.port== 843 || tcp.port== 943 || tcp.port== 4530 || tcp.port== 4531 || tcp.port== 4532 || tcp.port== 4533 || tcp.port== 9090 || tcp.port== 9091 || tcp.port== 9092 || tcp.port== 9093 || tcp.port== 19090 || tcp.port== 19091 || tcp.port== 19093 || udp.port== 5057 || udp.port== 5058 || udp.port== 843 || udp.port== 943 || udp.port== 4530 || udp.port== 4531 || udp.port== 4532 || udp.port== 4533 || udp.port== 9090 || udp.port== 9091 || udp.port== 9092 || udp.port== 9093 || udp.port== 19090 || udp.port== 19091 || udp.port== 19093)

Learned Wave Shader

From here
 
to here


Unity Toolbar Extender

https://github.com/marijnz/unity-toolbar-extender/blob/master/Assets/ToolbarExtender/Scripts/Editor/ExtendedToolbarWindow.cs