Hello Guest

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Releases / Re: 2D Toolkit 2.5.8.16
« Last post by birdkingz on September 23, 2019, 08:15:15 am »
Thanks for the fix!
22
Releases / Re: 2D Toolkit 2.5.8.16
« Last post by baconbanditgames on September 16, 2019, 07:15:23 pm »
Is there an update to work on 2019.3?

"tk2dCamera.GetGameViewSize - has a Unity update broken this?
This is not a fatal error, but a warning that you've probably not got the latest 2D Toolkit update.

System.NullReferenceException: Object reference not set to an instance of an object
  at tk2dCamera.Editor__GetGameViewSize (System.Single& width, System.Single& height, System.Single& aspect) [0x00021] in D:\Games\Green Sauce Games\Tales of the Orient - The Rising Sun\Assets\TK2DROOT\tk2d\Code\Camera\tk2dCamera.cs:371
UnityEngine.Debug:LogError(Object)
tk2dCamera:Editor__GetGameViewSize(Single&, Single&, Single&) (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:430)
tk2dCamera:GetScreenPixelDimensions(tk2dCamera) (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:709)
tk2dCamera:UpdateCameraMatrix() (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:782)
tk2dCamera:OnEnable() (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:275)
"

I haven't tested this extensively, but a quick workaround is to update the Editor__GetGameViewSize function with this:

Code: [Select]
public static bool Editor__GetGameViewSize(out float width, out float height, out float aspect) {
width = Screen.width;
height = Screen.height;
aspect = (float)width / (float)height;
return true;
}

This will not work if you select "Free Aspect" - you must select an explicit resolution in the editor.

It does seem to work with any chosen, explicit resolution. I have not checked to see if this has any negative effects, use at your own risk!

Also worth noting that it may not work with how you have your tk2d camera(s) set up!

Note that this error happens in Unity 2019.3+ because Unity removed UnityEditor.GameView.GetMainGameView. As Unity 2019.3 is still in beta, most plugin authors likely haven't looked into this issue. I'm thinking we'll see a more formal solution from the community and/or other plugin authors after 2019.3 is officially released, at which point a proper solution can hopefully be implemented.
23
Support / Re: 2d Toolkit deprecated on store
« Last post by unikronsoftware on September 16, 2019, 06:28:58 pm »
Any chance of supporting Unity 2018.4? I asked about that in another thread, and you mentioned that you would support up to Unity 2018.4, just double-checking!

2018.4 is important because it's the LTS (Long Term Support) release, and Unity will be properly supporting it with bug fixes, etc. for nearly two more years, which will give a lot of time to move over to the built-in Unity 2D.

Looking at how Unity 2017.4 has been handled for the last few years, there weren't any major changes, just bug fixes, support for necessary things like 64-bit on Android, etc. (none of which would affect 2D Toolkit, probably).

I did mean 2018.4 :) Was a typo
24
Support / Re: 2D Toolkit No Longer Supported?
« Last post by baconbanditgames on September 16, 2019, 04:06:00 pm »
Yes please! Happy to fix up if I can get a repro :)
support at unikronsoftware.com

Awesome, thanks! I just sent a repro project to you, I was actually able to make the issue occur with a new project in Unity 2018.4.8f1, with only 2D Toolkit imported. Hopefully that helps!
25
Support / Re: 2d Toolkit deprecated on store
« Last post by baconbanditgames on September 16, 2019, 02:36:47 pm »
Any chance of supporting Unity 2018.4? I asked about that in another thread, and you mentioned that you would support up to Unity 2018.4, just double-checking!

2018.4 is important because it's the LTS (Long Term Support) release, and Unity will be properly supporting it with bug fixes, etc. for nearly two more years, which will give a lot of time to move over to the built-in Unity 2D.

Looking at how Unity 2017.4 has been handled for the last few years, there weren't any major changes, just bug fixes, support for necessary things like 64-bit on Android, etc. (none of which would affect 2D Toolkit, probably).
26
Releases / Re: 2D Toolkit 2.5.8.16
« Last post by unikronsoftware on September 16, 2019, 12:45:33 pm »
Is there an update to work on 2019.3?

"tk2dCamera.GetGameViewSize - has a Unity update broken this?
This is not a fatal error, but a warning that you've probably not got the latest 2D Toolkit update.

System.NullReferenceException: Object reference not set to an instance of an object
  at tk2dCamera.Editor__GetGameViewSize (System.Single& width, System.Single& height, System.Single& aspect) [0x00021] in D:\Games\Green Sauce Games\Tales of the Orient - The Rising Sun\Assets\TK2DROOT\tk2d\Code\Camera\tk2dCamera.cs:371
UnityEngine.Debug:LogError(Object)
tk2dCamera:Editor__GetGameViewSize(Single&, Single&, Single&) (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:430)
tk2dCamera:GetScreenPixelDimensions(tk2dCamera) (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:709)
tk2dCamera:UpdateCameraMatrix() (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:782)
tk2dCamera:OnEnable() (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:275)
"

Hi there,

I have made an announcement today that the last version of Unity we'll be supporting is 2018.3. Its become impossible to keep up with Unity unfortunately.
27
Support / 2d Toolkit deprecated on store
« Last post by unikronsoftware on September 16, 2019, 12:31:25 pm »
Hi all,

I've decided to deprecate 2D Toolkit on the store. As previously mentioned, I will of course support those having migration issues etc. up to Unity 2018.4. I check the forum every so often - but if you need to get in touch email support!

Dinesh
28
Support / Re: There seems to be a shader problem.
« Last post by unikronsoftware on September 16, 2019, 12:29:21 pm »
You will need to get a graphics capture to figure out what those are. Could be a sprite, or something else (shader error?) Once you get a capture you should be able to run through and see what is there.

It could be a tk2d sprite if its in that location - but what features do you use?

29
Support / Re: BUG: A Positive Order In Layer Number Causes Sprite To Not Render
« Last post by unikronsoftware on September 16, 2019, 12:23:36 pm »
Is the camera too close to the camera? Move it back a bit and they should appear.
30
Support / Re: 2D Toolkit No Longer Supported?
« Last post by unikronsoftware on September 16, 2019, 12:22:12 pm »
Ran into my first issue.

My project was previously Unity 2017.4.32f1, and I updated it to Unity 2018.4.8f1 and 2D Toolkit v2.5.8.16.

If I edit a prefab that was originally created in Unity 2017, and I modify any tk2d component in the prefab, the changes are not saved in the prefab.

If I modify any non-tk2d component in the prefab after making some changes to tk2d components in the prefab, the tk2d components will be correctly saved/updated in the prefab. So the changes are being recognized, they just aren't triggering a save of the prefab.

If I remove a tk2d component, and add the same component back in (as a new component), it has the same behavior (so I don't think it's necessarily due to the update from Unity 2017 to 2018?).

So far this seems to only be an issue with the tk2d UI components, not the regular components (example: tk2dBaseSprite is fine, but tk2dUIUpDownButton has the bug). Possibly it's only components that have tk2dUIBaseItemControlEditor.cs as a base class?

Only test project I can provide would be a complete copy of my entire game, which I'm willing to do if that would help, just let me know!

Yes please! Happy to fix up if I can get a repro :)
support at unikronsoftware.com

Pages: 1 2 [3] 4 5 ... 10