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 post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by amazingbasil · Sep 23, 2014 at 03:46 PM · instantiatewindows

After launching game on Windows x32 the script working with MySQL database could not be instantiated

In the Unity Editor everything works fine. Fail comes during launch the build after choosing a resolution and clicking "Play".

When I remove MySql* variables everything is ok also. What should I do to let this script work?

Script:

 using UnityEngine;
 using MySql.Data.MySqlClient;
 using System;
 
 public class MySQLManager : MonoBehaviour {
     
     MySqlConnection loginConnection = null;
     MySqlCommand queryCommand = null;
     MySqlDataReader reader = null;
     ...
 }



output_log:

     Initialize engine version: 4.5.0f6 (fd4616464986)
 GfxDevice: creating device client; threaded=1
 Direct3D:
     Version:  Direct3D 9.0c [igdumd32.dll 9.17.10.3190]
     Renderer: Intel(R) HD Graphics
     Vendor:   Intel
     VRAM:     944 MB (via DXGI)
     Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=1 INTZ=1 RAWZ=0 NULL=1 RESZ=1 SlowINTZ=0
 Begin MonoManager ReloadAssembly
 Platform assembly: D:\server\server_Data\Managed\UnityEngine.dll (this message is harmless)
 Loading D:\server\server_Data\Managed\UnityEngine.dll into Unity Child Domain
 Platform assembly: D:\server\server_Data\Managed\Assembly-CSharp.dll (this message is harmless)
 Loading D:\server\server_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
 Platform assembly: D:\server\server_Data\Managed\MySql.Data.dll (this message is harmless)

 - Completed reload, in  0.254 seconds
 desktop: 1366x768 60Hz; virtual: 1366x768 at 0,0
 <RI> Initializing input.
 
 <RI> Input initialized.

I select the resolution and clicked "Play!"

 Platform assembly: D:\server\server_Data\Managed\System.dll (this message is harmless)
 Platform assembly: D:\server\server_Data\Managed\System.Core.dll (this message is harmless)

 The script behaviour 'MySQLManager' could not be instantiated!
  
 (Filename:  Line: 1657)
 
 Platform assembly: D:\server\server_Data\Managed\System.Configuration.dll (this message is harmless)
 Platform assembly: D:\server\server_Data\Managed\System.Xml.dll (this message is harmless)
 Server successfully started on port 7100
  
 (Filename: C:/BuildAgent/work/aeedb04a1292f85a/artifacts/Stand

 alonePlayerGenerated/UnityEngineDebug.cpp Line: 49)
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

How do I reference an object's rotation through an attached script? 1 Answer

why when i try to add my script to the "player" it says can not can not add script 1 Answer

Instantiate problem. 3 Answers

How to load Windows licence into Mac? 1 Answer

Is it possible to load a script to a gameobject, run it then destory it? (Onetime script) 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