resources-windows.zip
-- These archives contain the files for OSX:
librtcmix_embedded.bundle
rtcmixmain.cs
smcs.rsp
and Windows:
wwwlib.dll
rtcmixmain.cs
mcs.rsp
pthreadVC2.dll
to get RTcmix working inside Unity. Add the
librtcmix_embedded.bundle -or- wwwlib.dll library,
the rtcmixmain.cs file,
and the little smcs.rsp -or- mcs.rsp file (and the pthreadVC2.dll
library for Windows) to your Unity project and then
quit/restart Unity so that it incorporates the files properly
into the project. Then:
1. create an empty GameObject and call it "RTcmixmain"
2. add the "rtcmixmain.cs" script to that object as a component
After you've done this, then you can access RTcmix functionality
by declaring a class variable:
public class somescript : MonoBehaviour {
rtcmixmain RTcmix;
and then doing this:
void Start () {
RTcmix = GameObject.Find ("RTcmixmain").GetComponent ();
Then you can start saying things like:
RTcmix.initRTcmix (objno);
...
RTcmix.SendScore (scoretext, objno);
Also: the OSX resources package contains the "scoralyzer" program to
automatically convert RTcmix scripts into Unity/C# strings. No windows
version yet, sorry! Coming soon!