示例#1
0
	    public void OnPostprocessBuild(BuildReport report)
	    {
			// moving kinect dlls from assets space back to package space
			// after they where exported in the building process.
			var separator = Path.DirectorySeparatorChar;
			var packageDir = Path.Combine(Application.dataPath, ".." + separator + PackagesDirName + separator + PackageDirName);
			var kinectDir = Path.Combine(packageDir, KinectDirName);
			var targetDir = Application.dataPath + separator + PluginsDirName;

			KinectAddinData.Move(new DirectoryInfo(targetDir), new DirectoryInfo(kinectDir));
			KinectAddinData.Import();
		}
示例#2
0
        public void OnPreprocessBuild(BuildReport report)
        {
            // moving kinect dlls from package space to assets space
            // because kinect helpers copy all required dlls from assets space to
            // the final plugin location.
            var separator  = Path.DirectorySeparatorChar;
            var packageDir = Path.Combine(Application.dataPath, ".." + separator + PackagesDirName + separator + PackageDirName);
            var kinectDir  = Path.Combine(packageDir, KinectDirName);
            var targetDir  = Application.dataPath + separator + PluginsDirName;

            Debug.Log("Preparing Kinect build. Moving " + kinectDir + " to " + targetDir);
            KinectAddinData.Move(new DirectoryInfo(kinectDir), new DirectoryInfo(targetDir));
            KinectAddinData.Import();
        }