Page 1 of 1

Is it possible?

Posted: 23 Oct 2013, 08:23
by teratosis
Hi there, I went through the tutorial for SFS and Unity. Everything works. I have is this script from the tutorial, it is written in C#.. http://wiki.unity3d.com/index.php/BOX1_ ... .cs_script

Can the SFS connection part be added to JS instead? Is there such a script already out there? I wrote a login script in Javascript, but would like to add this connection dealy. : :idea:

Any help or suggestions much appreciated.

Thanks.

Re: Is it possible?

Posted: 23 Oct 2013, 13:17
by Bax
Your question is not very clear, can you please rephrase?

Re: Is it possible?

Posted: 23 Oct 2013, 17:34
by teratosis
The tutorial login script is written in c#, from the wiki page link. I was asking if the SFS connection code that is in c# is available in javaScript form? Because I have made a custom login in script for Unity that is written in js. I want to add the SFS connection code to that js.

Re: Is it possible?

Posted: 23 Oct 2013, 23:15
by teratosis
Mark this as closed. I will stick with the C# script. Thanks.

Re: Is it possible?

Posted: 24 Oct 2013, 15:14
by Bax
We provide JavaScript API, but I'm not sure you will be able to use them inside Unity.
Sticking to the C# API is the right choice I believe.

Re: Is it possible?

Posted: 24 Oct 2013, 20:47
by teratosis
Yeah for sure, over on the Unity side, a lot of their documentation is in JS, and at first, all I was finding was JS tutorials. I figured out how to convert the JS elements to c#. So all good. Thanks.