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 anoopsingh · Nov 28, 2014 at 07:34 PM · monodevelop

Unity Editor Extension development issue

Hi All,

I am a new user of unity. My aim is to create unity editor extension MenuItem which will have some labels and buttons and on click of these buttons i need to support some backend functionality. While doing this I am facing a strange issue.

When i write a solution in monodevelop tool, I am able to parse json string using System.Runtime.Serialization.json and Unzip file using ZipClass as it is supported by .Net framework 4.0. I wanted to call the same functions from Menu Item created on unity IDE writing c# file inside Project/Assets/Editor directory. When I sync it with monodevelop tool and build on monodevelop tool, json parser and Zipclass are not supported as the .net framework used by unity is 3.0. I am seeing even the assembly references are lost. I tried to make the .net package configuration under unity as 4.0 but still after syncing the same issue is happening. Please help me to resolve these issue as i am stuck due to this issue.

Is there a way to write code outside unity or by using monodevelop solution and create and copy the dll into unity. Can i create dll for the Project/Assets/Editor directory(Where i am creating my MenuItem) and copy at unity location to view the MenuItem and perform backend functionality? Please let me know the locations also.

Or is there any setting i need or directory structure i need to follow on unity and then sync it to mono? Please let me know the process then.

Help will be highly appreciated.

Thanks & regards, Anoop.

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
0

Answer by Unitraxx · Nov 28, 2014 at 07:36 PM

I had the exact same problem. You can create .dlls with Monodevelop and then use them in Unity scripts, but you need to target .NET 3.5. So if you are using .NET 4.0 features, it simply won't work inside Unity.

Comment
Add comment · Show 2 · 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 anoopsingh · Nov 29, 2014 at 02:29 PM 0
Share

Hi,

Thanks a lot for answering. Could you please tell me where to copy dlls in Unity? I mean if i want to create editor extension in unity, i need to copy c# files in Project/Assetss/Editor. But If I create c# file in monodevelp tool and run which dll i need to create and where to copy this dll in unity to make it work as unity editor extension.

One more question, I am not able to download file from url when i call any function from editor extension button. Whereas if i create console solution in monodevelop i am able to do. Do i need to set any proxy in unity or any other configuration needed? I don't see any packets sent from unity also?

Please help.

Thanks & regards, Anoop.

avatar image Unitraxx · Nov 29, 2014 at 04:03 PM 0
Share

I drop my .dlls in Assets/. However keep in $$anonymous$$d that .dlls are just libraries. I don't have editor specific code in those.

avatar image
0

Answer by _dns_ · Nov 29, 2014 at 06:33 PM

Editor dlls must be in a directory named "Editor" somewhere inside the "Assets" folder.

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

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

Any way to see if a gameObject has a component from MonoDevelop debugger? 0 Answers

How to stop MonoDevelop auto-collapsing curly brackets? 6 Answers

Why is Unity 4.3 so unstable? 0 Answers

MonoDevelop creates *.pidb files in my ASSETS folder 1 Answer

Can I run a Unity project from within MonoDevelop? 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