Networking in Unity Emil AngryAnt Johansen Unity Technologies - - PowerPoint PPT Presentation

networking in unity
SMART_READER_LITE
LIVE PREVIEW

Networking in Unity Emil AngryAnt Johansen Unity Technologies - - PowerPoint PPT Presentation

Networking in Unity Emil AngryAnt Johansen Unity Technologies Networking in Unity HTTP and browser interface End to end connections HTTP and browser interface HTTP WWW WWWForm Yield to pause coroutine WebPlayer WWW security


slide-1
SLIDE 1

Networking in Unity

Emil “AngryAnt” Johansen Unity Technologies

slide-2
SLIDE 2

Networking in Unity

HTTP and browser interface End to end connections

slide-3
SLIDE 3

HTTP and browser interface

slide-4
SLIDE 4

HTTP

WWW WWWForm Yield to pause coroutine WebPlayer WWW security

slide-5
SLIDE 5

WebPlayer WWW security

www.a.com/my/webplayer.unity3d tries to access www.b.com/the/groovy/highscore.php Security requires crossdomain file at http:/ /www.b.com/crossdomain.xml Details in documentation:

http:/ /unity3d.com/support/documentation/Manual/Security%20Sandbox.html

slide-6
SLIDE 6

Browser interface

Application.OpenURL Application.ExternalCall Application.ExternalEval

slide-7
SLIDE 7

Check out WebPlayerTemplates

slide-8
SLIDE 8

End to end connections

slide-9
SLIDE 9

End to end connections

Network view Sockets Session traffic Middleware

slide-10
SLIDE 10

Network view

NAT punch-through MasterServer Synchronization RPC

slide-11
SLIDE 11

Sockets

Built into .net Completely standard Listener / outgoing TCP / UDP Port bind WebPlayer security

slide-12
SLIDE 12

Socket WebPlayer security

Requests cross-domain policy over port 843 No listening sockets in the WebPlayer, so no WebPlayer P2P Same XML syntax as the WWW cross- domain policy Details in documentation:

http:/ /unity3d.com/support/documentation/Manual/Security%20Sandbox.html

slide-13
SLIDE 13

Session traffic

Client / server - owner Seed distribution Probability evaluation

slide-14
SLIDE 14

Middleware

SmartFoxServer Simple setup, lobby system, server backend, nice license for small setups/ startups Exit Games Photon MMO solution, high performance, more complex setup - designed for heavy traffic

slide-15
SLIDE 15

Resources

http:/ /unity3d.com/support http:/ /angryant.com