error CS0234: The type or namespace name Data' does not exist in the namespace System’
There are so many hits about this in my forum search, it’s hard to tell what the definitive answer is (Unity 3.1)
I think the error message says it all.
–Eric
Thats odd, according to the mono docs:http://www.go-mono.com/docs/
It is in there library.
It’s in Mono/.NET but probably not in Unity. Unity does not implement the entire Mono framework, only the DLLs and types vitally relevant and necessary (security restrictions + low web player download size)
Oh, thats right.
Thanks for the replies. I found a workaround so I don’t need System.Data. I wish the Unity editor was a little more explicit about or had documented somewhere. For example I wrote some serialization code that uses System.Core.dll . Thankfully it’s only like 6KB in size. But I don’t understand how this is different than System.Data or say System.Xml. I guess it just seems like a grey area and b/c I’m not a Mono-C# expert.
System.Data can be used, but the assembly must be manually copied into the project (normally you would put it into the plugins folder within the project) cause Unity will not copy non-standard assemblies for you at the time (I hope this is considered a bug and will get fixed)
Just keep in mind that the security constraints disallow it working on the webplayer and there is, from what I recall, potentially also a problem on mobiles.