A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Assets and Asset Store' started by echo17, Jul 12, 2012.
Please see this FAQ: http://echo17.proboards.com/thread/2/faq?page=2&scrollTo=30
That is exactly what I was looking for.
Can you sort your loose scripts out, and put them in a proper namespace.. shouldn't need to be said to every asset store developer but eventually one comes across two addons who want to use the same name for a script and then the end user gets the conflict...
MainMenuButton.cs ...being the case in this instance.
just noticed another called MainMenu.cs ..I mean common
Good idea. I'll try to get this in the next service release.
Hello. I found a behavior that might need to be fixed.
I found T SimpleSQL.SimpleSQLManager.Get< T >(object pk) throws InvalidOperationException when specified record is not found, but references saids The object with the given primary key. Throws a not found exception if the object is not found.
error code is below. IEnumerable threw error.
InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
SimpleSQL.SQLiteConnection.Get[T] (System.Object pk) (at <9d351781d88446ec91fb4a6de237d175>:0)
SimpleSQL.SimpleSQLManager.Get[T] (System.Object pk) (at <9d351781d88446ec91fb4a6de237d175>:0)
//omit the rest (below is my code)
I'm grad to you check this if you have time.
T SimpleSQL.SimpleSQLManager.Get< T >(object pk)
The object with the given primary key. Throws a not found exception if the object is not found
I don't officially support Linq with SimpleSQL, so I don't include reference to that library in my documentation or code examples. Instead, try using the built-in functions of the SimpleSQLManager like Query and QueryFirstRecord. These should be more robust and get you the data that you need.
As to the error that you are getting, that would seem to be the expected behavior if you do not have a record. I cannot speak for how the .NET developers designed Linq, but it would seem you would want an exception thrown for missing data. You can probably handle this with a try catch or just use the QueryFirstRecord method in SimpleSQLManager (which does provide an out parameter that tells you if the record exists).
var record = dbManager.QueryFirstRecord<MyORM>(out recordExists, sql);
Hi, i have the follow error (it's a conflic with Runtime Editor Asset):
Assets\Battlehub\UIControls\Menu\Scripts\UIStyle.cs(13,32): error CS1061: 'MainMenuButton' does not contain a definition for 'NormalColor' and no accessible extension method 'NormalColor' accepting a first argument of type 'MainMenuButton' could be found (are you missing a using directive or an assembly reference?)
'MainMenuButton' does not contain a definition for 'FocusedColor' and no accessible extension method 'FocusedColor' accepting a first argument of type 'MainMenuButton' could be found (are you missing a using directive or an assembly reference?)
Thanks in advance.
I plan on adding namespaces to my demo code in the next service release to avoid these conflicts. Until then, you can either add a namespace to the SimpleSQL MainMenuButton code or delete the code entirely. The only purpose it has is to allow you to navigate the demos without having to load each scene individually. You can still play each demo without it.
My game works on Unity Editor, but when I build the game on Android. It's not working. I have installed the latest version from the Asset Store and I don't know how to fix this.
Is there any way I can debug SimpleSQL when I run the game on my android device?
I had the same problem. Try this:
Tools > SimpleSQL > Options -> Android
and then run build.
In addition to the above suggestion by jacente, I would also have a look at these links for advice on debugging on Android:
Thank you so much, jacente and echo17! I got it working with a single click of a button. I wish I could always fix my games like this.