Unity3d questions!

Source: Internet
Author: User

Unityvs:web Target with Web Security enabled would prevent opening files and communication with Unityvs.

workaround

Directly in Unity file-"build setting, replace a platform, do not choose the Web

 then Select something other than Web player and then Press switch Platform. 

======================================================================================

Capturing logs

Using unityengine;using System.collections;public class setupverification:monobehaviour{public string message = ""; private bool Badsetup = false; void Awake () {  application.registerlogcallback (OnLog);} void OnLog (String message, String stacktrace, LogType type ) {  if (message. IndexOf ("Unityexception:input Axis") = = 0 | |   Message. IndexOf ("unityexception:input button") = = 0  )  {                   //handling exception Information  }}}

===============================================================

Internalgetgameobject can only is called from the main thread.

Then Socketclient object is asynchronous, so do multithreading, when the Socketclient received the message, callback the main thread function (inherited from Monobehaviour), this time led to an error. The First Unity Forum blog Post explained more clearly that unity has limited the main thread of the API call:

"Unity chose to limit API calls to Main-thread, to make a simple and solid threading model so everyone can understand an D use. "

Unity3d questions!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.