Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kenglou.lee

Pages: [1]
1
Releases / Re: 2D Toolkit 2.5.8.1
« on: June 17, 2017, 06:43:16 am »
Hi,

Recently when i try to use 2dtoolkit in Unity3d 5.6.1, i found the following message.
Quote
Use of UNITY_MATRIX_MV is detected. To transform a vertex into view space, consider using UnityObjectToViewPos for better performance

is it something that we can do to fix this?

2
Support / When will new version of 2dtoolkit out?
« on: September 20, 2016, 03:42:47 pm »
Hi,

may i know when will be a new version of 2dtoolkit out? and is there any coming feature on it?

Thank you.

3
Support / Tiling Offset on Tiled Sprite
« on: January 07, 2016, 10:15:59 am »
Hi,

I'm having problem on trying to create a sprite with images like "---", and tiling it to make that it looks like a rope that can become longer or shorter. Meanwhile I want the dots to be moving from 1 side to another side. I know that it's doable with 3d plane + tiling offset but I'm not sure how to do that by using the tk2d tools. Please help.

Regards.

4
I did a comparison with previous version that works, and dig into scripts in Editor with naming like Sprite Collection or Atlas and from there link to this file. Glad that this helps you.

5
I think I found the reason why it crashes, in tk2dUtil.cs, I found that the "SetDirty" functions keep pointing back to itself due to the "UNITY_EDITOR" pragma, I change it to as below and it seems solve my problem. Hope that helps you. I had report this to moderator and hopefully to get a fix ASAP.

   // Replicate old pre-5.3 behaviour
   public static void SetDirty(UnityEngine.Object @object)
   {
#if UNITY_EDITOR
      //tk2dUtil.SetDirty(@object);  //take away this as it keep pointing back to itself

#if (UNITY_5_3 || UNITY_5_4 || UNITY_5_6 || UNITY_5_7 || UNITY_5_8 || UNITY_5_9 || UNITY_6_0)
      if (!string.IsNullOrEmpty(UnityEditor.AssetDatabase.GetAssetPath(@object)))
      {
         string scenePath = UnityEditor.AssetDatabase.GetAssetOrScenePath(@object);
         var scene = UnityEditor.SceneManagement.EditorSceneManager.GetSceneByPath(scenePath);
         if (scene.IsValid())
         {
            UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(scene);
         }
      }
#else
      EditorUtility.SetDirty(@object); //added this so it still functioning for previous version.
#endif

#endif  // UNITY_EDITOR

6
Releases / Re: 2D Toolkit 2.5.5
« on: December 30, 2015, 03:54:34 am »
Good to see there is a new version, but i found that when I'm using Unity3d 5.3.1p1 version with 2D Toolkit 2.5.5, my Unity crashes when I just change PreMultiplied Alpha and Commit. Do you have any idea on this or do you aware of this problem?

Edit:
I think I found the reason why it crashes, in tk2dUtil.cs, I found that the "SetDirty" functions keep pointing back to itself due to the "UNITY_EDITOR" pragma, I change it to as below and it seems solve my problem.

   // Replicate old pre-5.3 behaviour
   public static void SetDirty(UnityEngine.Object @object)
   {
#if UNITY_EDITOR
      //tk2dUtil.SetDirty(@object);  //take away this as it keep pointing back to itself

#if (UNITY_5_3 || UNITY_5_4 || UNITY_5_6 || UNITY_5_7 || UNITY_5_8 || UNITY_5_9 || UNITY_6_0)
      if (!string.IsNullOrEmpty(UnityEditor.AssetDatabase.GetAssetPath(@object)))
      {
         string scenePath = UnityEditor.AssetDatabase.GetAssetOrScenePath(@object);
         var scene = UnityEditor.SceneManagement.EditorSceneManager.GetSceneByPath(scenePath);
         if (scene.IsValid())
         {
            UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(scene);
         }
      }
#else
      EditorUtility.SetDirty(@object); //added this so it still functioning for previous version.
#endif

#endif  // UNITY_EDITOR

7
Support / Re: Show 2d Sprite Thumnails in Editor
« on: February 12, 2015, 07:03:41 am »
oh i see. so it is not possible to get the image if I'm trying to create a level editor with all the sprite prefab in right?
If that's the case I think i gotcha. Thank you Admin.

8
Support / Re: Show 2d Sprite Thumnails in Editor
« on: February 10, 2015, 11:01:19 am »
I'm thinking to do an editor that show's a sprite prefab i selected with image for the sprite prefab with sprite Id.

9
Support / Show 2d Sprite Thumnails in Editor
« on: February 09, 2015, 02:44:00 am »
Is there any way to show the thumnails indicate the sprite in Unity3d Editor Windows/Inspector?
Thanks.

10
I think you had to make sure you are not putting all the sprite collections' textures under Resources folder as Unity will pack whatever inside that folder.

11
Support / Shader that paint vertex color for tk2dSlicedSprite
« on: December 17, 2014, 09:25:05 am »
Hi,

I wish to know is there any shader that can let me put the vertex color of the 4 corner around tk2dSlicedSprite so that the sprite will have a color that tween from Color A to B in a same sprite.

Thank you.

12
Support / Re: Possible to have 2 Ui camera attached to UI Manager?
« on: August 06, 2013, 12:23:06 am »
that means if I want to do things like what i said in post 1 is certainly impossible?

13
Support / Possible to have 2 Ui camera attached to UI Manager?
« on: August 05, 2013, 11:20:02 am »
Hi,

Is there any solution for me to implement 2 UI Camera On the screen and both are attached to UI Manager?

Currently I am thinking to do a level map that has some UI Button on the screen(UI Camera) and Level Button inside the map(Map Camera). I want to zoom and move on the Map and click on the Level Button meanwhile the UI Button UI Camera will stay its own size. But UIManager only can set 1 Camera for receiving input. Any Suggestion?

Thanks .

Pages: [1]