-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Included GoKit crashes with ArgumentOutOfRangeException error after deleting tweens #216
Comments
You can include the latest source of GoKit in your project and remove the dll, this should work. |
I tried that, renamed things, and got to where MonoDevelop 4 (using Unity 4.3) complains about default parameters. I know I can switch the projects to use .NET 4, but Unity likes to keep regenerating the project files when I add new files and I lose those settings. Unless, I'm missing something to make the .NET stick. I think this vexing issue is why Matt has the .dll (at least based on something I read on the unity forums posted in 2012 :P).
|
Yup, that's why I use the dll (though it's worth noting it's only an issue if you compile in monodevelop). I've seen workarounds to make the .NET setting stick, but none of them have actually worked for me unfortunately. I should see if I can figure that out. I should also really update the GoKit dll, it's been a while since I did that, but it's actually a bit of a pain to build it properly... I forget exactly what caused the issues, but last time I did it, building it in monodevelop just didn't work and I ended up having to build it in VS instead. |
Oh I didn't know about this problem. I'm using a custom version of GoKit with Unity4.2 and it compiles fine in both MonoDevelop and Unity. If I understand correctly, If I upgrade to Unity4.3 I'll get problems when compiling in MonoDevelop. |
No this was an issue long before Unity 4.3. (well back into Unity 3) Basically when Unity creates the csproj files, it sets the .Net target as 3.5 (which doesn't support default parameters) even though Unity supports most .Net 4 faetures. So when you compile in monodevelop (aka having "build in monodevelop" set to true), you get errors on methods that use default parameters. |
I keep a list of looping tweens with the intention of deleting them when the object is removed from the stage. After deleting them, GoKit gets a crash in Go.handleUpdateOfType.
I think this was fixed here: prime31/GoKit#38
It might be as simple as getting the latest GoKit, creating a new .dll, but with the limited time I spent trying to upgrade my own version, I doubt it will be the simple.
The text was updated successfully, but these errors were encountered: