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 /
This question was closed Mar 17, 2014 at 12:34 AM by knuckles209cp for the following reason:

I just deleted the plugins from the hiercahy view , its stpuid but it worked

avatar image
0
Question by knuckles209cp · Mar 16, 2014 at 09:44 PM · networkingbuild-errorcant

Not letting me build my game!

I was ready to build my game , but when i did it said this :

ArgumentException: Find can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function. PauseScript

And it has something to do with this line :

 var aimscript : AimDownSightsScript = gameObject.Find("AIM").GetComponent(AimDownSightsScript);


I have no clue AT ALL what could be messing it up.

I also have this error here , but with no script reference given ( no line of the code given )

Find can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.

I actaully give up on this , its bugging me because i cant give thr game to my friends and let others play it , i cant get told whats wrong with my game and all that stuff . its really frustrating , PLEASE help me

Additional info : I have a plugin called photon networking , i think it might have something to do with that but im not using it . i get no errors when i save off my code , so that also leaves me clueless.

Comment
Add comment · Show 3
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 getyour411 · Mar 16, 2014 at 09:57 PM 0
Share

Don't know JS but try (at top in var declaration) var aimscript : AimDownSightsScript;

then in Start try aimscript = gameObject.Find("AI$$anonymous$$").GetComponent(AimDownSightsScript);

avatar image knuckles209cp · Mar 16, 2014 at 11:43 PM 0
Share

Ok i will try that now! Thanks

avatar image knuckles209cp · Mar 16, 2014 at 11:46 PM 0
Share

Ok now that problems gone , now there are some VERY odd problems

Error building Player: Extracting referenced dlls failed.

ArgumentException: The Assembly UnityEditor is referenced by ArcLayer$$anonymous$$anager. But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) UnityEditor.HostView:OnGUI()

i have nothing else to say , this is crazy

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

21 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

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

What am I missing? Intellisense says 'ok' Editor runs ok. Build fails!?!?! 1 Answer

Can't make a build using Photon Voice - "plugins colliding with each other" 1 Answer

How can I stop the variable values reverting to its default values after being built? 1 Answer

Native extension for OSXStandalone target not found 4 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