Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by Sunity · Aug 01, 2011 at 01:13 PM · plugin

System.Speech

Im trying to make use of System.Speech in a unity windows standalone application. I cannot simply be Using System.Speech because Unity doesnt support it.

Added the .Net System.Speech to Unity in the PLugin folder allows me to write my code and unity happily compiles.

It will not run in the editor, leading to an editor crash, not can I build a standalone, getting a "ArgumentException: The Assembly sysglobl is referenced by System.Speech. But the dll is not allowed to be included or could not be found."

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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by LucasMeijer · Aug 01, 2011 at 01:24 PM

I'm not familiar with this specfic library. In general there's a few things to take into account when trying "some .net feature". A good first one is to check the mono website to see if it's supported or not. A second thing to do is to use a tool like ILSpy to take a look at the assembly that you want to use. It will show you the dependencies the assembly has (you can probably use it to figure out what that sysglobl thing is about), and you can also use it to scan for "extern" methods.

.net libraries that simply contain .net (e.g. C#) code will work out of the box in Unity. Some .net libraries however are merely a wrapper around a C library. They will use a technique called P/Invokes, to call the c library from c# code. in order to make these libraries work, you need to make sure that the dependent c library is available to Unity as well. (placing it in the same directory as the unity player executable usually does the trick).

Another type of .net library that won't work is also one that only contains wrapper code, but where the native code it wraps is located inside the .net runtime instead of a c library. These functions are often referred to as 'icalls'. In such a case, it is likely that the .net runtime implements these icalls, but the mono runtime doesn't. Checking the mono website for compatibility of your library should be a good start here.

Comment
Add comment · 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
0

Answer by Sunity · Aug 02, 2011 at 08:16 AM

How do I figure out if its using the icalls?

I see nothing about icalls in MoMA nor ILSpy.

I used ILSpy to figure out and add the dependencies listed. I fixed the build errors with libraries, but both editor and standalone crashes the hard way on play with access violations.

Any ideas?

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 Sunity · Aug 04, 2011 at 07:18 AM 0
Share

Specifically the editor compiles my script, Im able to build a standalone but when I either run the editor/standalone player, Unity crashes with an "unknown access violation in module únknown"

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Does anyone have figures which show the take-up ratio for new users hitting unity webplayers for the first time? 2 Answers

How do I distinguish between a *.cs and a plugin? 1 Answer

Why cant I see the names of my Scripts? 2 Answers

Is it possible to have editor-only native plugins? 0 Answers

Data is lagging the external device. Why? 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