Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tianyt/WebSync-Unity3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

WebSync and Unity

To get WebSync running in Unity (http://unity3d.com/), you may have to use the WWW class (http://docs.unity3d.com/Documentation/ScriptReference/WWW.html) for HTTP transfers instead of the typical HttpWebRequest class used in typical .NET applications.

Thankfully, an anonymous developer has put together an HttpTransfer class that does just this. To use it, simply instruct WebSync's factory model to use the new WebSyncHttpTransfer class (before connecting):

HttpTransferFactory.CreateHttpTransfer = () =>
{
  return new WebSyncHttpTransfer();
};

If you are using the Unity Web Player, you will want to ensure you have a proper crossdomain.xml in your web root to avoid potential security exceptions related to cross-domain requests.

About

Classes and information about running WebSync with Unity 3D.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors