Синтаксис:
Используется csharp
using UnityEngine;
using System.Collections;
using MySql.Data.MySqlClient;
public class Test : MonoBehaviour {
}
using System.Collections;
using MySql.Data.MySqlClient;
public class Test : MonoBehaviour {
}
Ошибок нет, но при попытке билда, вылазят 2 ошибки:
1)ArgumentException: The Assembly System.Configuration.Install is referenced by MySql.Data. 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) (at E:/BuildAgent/work/68355d6e5d19d587/Editor/Mono/AssemblyHelper.cs:52)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch) (at E:/BuildAgent/work/68355d6e5d19d587/Editor/Mono/AssemblyHelper.cs:86)
UnityEditor.HostView:OnGUI()
2)Error building Player: Extracting referenced dlls failed.
UnityEditor.HostView:OnGUI()
То же самое происходит с System.Data.dll, возможно и с другими, не пробовал...
Ах да, забыл добавить, что в едиторе все прекрасно работает, но не билдится.