Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 SonicBloomEric · Jul 31, 2015 at 09:39 PM · pluginassemblyscript loading

Script Execution Order settings with Multiple Assemblies?

I have two assemblies with the same scripts in them: one is for use in the Editor (references to UnityEditor stuff), the other is for builds. I have marked them as such in the Plugin Importer settings. Let's say they appear in the project like this:

  1. Plugins/MyProject/MyAssembly.dll

  2. Plugins/MyProject/Unity Editor/MyAssembly.dll

and both of them contain a reference to a MonoBehaviour called MyBehaviour.

Now I want to customize the execution order of MyBehaviour. When I go to Edit→Project Settings→Script Execution Order, I can see it just fine in the dropdown list that appears with the "+" button. I add it and make the customization and things seem to work fine.

When I check the contents of the meta files for the assemblies (Execution Order is stored in the .meta files from what I can tell), only one of the two assemblies above has been modified. I just tested and, in this run, it added the reference to #1 above (non-"Unity Editor" version).

But that's not all! Sometimes I can go back into the Script Execution Order editor, click the "+" button, and MyBehaviour is listed again! Selecting it a second time adds a second row and changes the second assembly's meta file!

At this point, the Script Execution Editor ("MonoManager") gets a little funky. Attempts to remove references look good until I hit Apply at which point the settings revert to how they were pre-edit. (I suspect it's not actually built to handle situations where there are multiple copies of underlying MonoScripts around...)

So, how are we supposed to set Script Execution Order of scripts that exist in multiple assemblies? What's the correct way to do this?

I am currently testing this in Unity 5.0.4.

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

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

Can I use .NET 4.5 assembly as external library? 1 Answer

NotSupportedException while loading an external assembly in WebGL 0 Answers

Dynamic Assembly Plugin 1 Answer

Writing unity ios plugin in Swift 1 Answer

Why does my 32-bit dll plugin(c++) work in Unity 4 and not in Unity 5 indy (Windows 32-bit editor) 0 Answers


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