Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by superalesha · Nov 21, 2012 at 08:25 AM · visual studiodllkinect

Problems with Unity 3.5 + Kinect 1.6 + Visual Studio Ultimate 2012

I have Kinect working fine. I'm using VS as external editor for Unity with no problems. I've connected Kinect with Unity with KUInterface.dll, it's worked.

But i'm so audacious i want to do next thing:

  1. Import Microsoft.Kinect.dll (Program Files\\Microsoft SDKs\\Kinect\\v1.6\\Assemblies) as an asset to my project (succeeded).

  2. Use it in my script (`using Microsoft.Kinect`). It seems to work, because after doing that VS starts to suggest all of the classes, included in Microsoft.Kinect (from the official documentation).

  3. And finally, i want to make it work in Unity, but i occur next problem:

    Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'Microsoft.Kinect'.

    at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Module,string,bool,bool)

    at System.Reflection.Assembly.GetType (System.String name, Boolean throwOnError, Boolean ignoreCase) [0x00000] in :0

    at System.Reflection.Assembly.GetType (System.String name) [0x00000] in :0

I'm almost sure it's because of differencies in .NET versions (Microsoft.Kinect uses 4.0 and Unity goes with 3.5).

So i don't know if it's even possible, to make it work such way? And can anyone provide some solution how to do it?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by R-Villani · Mar 04, 2013 at 11:11 PM

You are so audacious you want to use a .NET 4.0 compiled library from a 2.0 one. But you can't. Why not keep going with KUInterface? It works pretty well for me and I found it very easy to modify for my needs.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image R-Villani · Mar 05, 2013 at 03:24 AM 0
Share

And, if you don't $$anonymous$$d passing the DLL along with the exe ins$$anonymous$$d of inside the Unity assembly, you don't even need Pro.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rebuilding (overwriting) a plugin DLL while the editor is open 0 Answers

Access a file after build in unity 0 Answers

Weird Compile Error in Temp Folder Temp/UnityVS_bin\Debug\Assembly-CSharp.dll 1 Answer

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

How to compile Class Library using Visual Studio 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges