Script Components provided by the K2-asset


The K2-asset provides general-purpose script components in the KinectScripts-folder, as well as demo-specific components in the respective 'Scripts' sub-folder of KinectDemos/<demo-name>-folder. You can reuse all provided scripts components in your own Unity projects. To reuse the general-purpose components, you need the KinectScripts-folder copied to your project. To do it, follow these steps:


    1. Copy folder ‘KinectScripts’ from the Assets-folder of the package to the Assets-folder of your project. This folder contains the general-purpose components, filters and interfaces.
    2. Copy folder ‘Resources’ from the Assets-folder of the package to the Assets-folder of your project. This folder contains all needed libraries and resources. You can skip copying the libraries you don't want to use (for instance the 32-bit libraries or KinectV1-libraries).
    3. Copy folder ‘Standard Assets’ from the Assets-folder of the package to the Assets-folder of your project. It contains the MS-wrapper classes for Kinect-v2.


To reuse demo-specific script components, copy the respective scripts to the 'Scripts' sub-folders of your Unity project. Please mind you still need to have the KinectScripts-folder copied to your project, because the KinectManager-component is always required. It must exist in the scene, in order all other Kinect-related components to work properly.