How to get the green screen demo with Kinect v2.0 SDK working?

I tried importing the files in the Kinect for Unity3D plugin in the GreenScreen folder and running the mainscene scene, but all I see is a purple screen. My kinect is working fine and pointed at me, but I don’t see myself anywhere on the screen.

What am I doing wrong?

Hi. Please see the solution here.

Short answer:

  1. change:
    Texture2D _MainTex;
    to:
    UNITY_DECLARE_TEX2D(_MainTex);

  2. Change:
    o = _MainTex.Sample(SampleType, i.tex);
    to:
    o = UNITY_SAMPLE_TEX2D( _MainTex, i.tex );

Hope it proves useful to you. I was able to test it successfully in Unity v. 5.6.1f1 Personal.