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 - deathguide

Pages: [1]
1
Other Packages / Re: Fog of War problem on iphone6s
« on: June 24, 2016, 04:17:18 AM »
             When I move camera, the fog area is right, but the blend area appears to Mosaic. (the area called BlurVisibility)

It just like mTexture0 mTexture1 use FilterMode.Point, but I don't change anything.   I don't know it caused by  mTexture0 mTexture1 or depth buffer,

camera's near and far clip planes are 0.3 and 1000.   By the way, my device uses 64bit system.


2
Other Packages / Fog of War problem on iphone6s
« on: June 21, 2016, 02:29:58 AM »
     When I use Fog of War on my iphone6s,  the blur area appears to Mosaic, see the attachment.

Need help!

3
NGUI 3 Support / Re: buttons not working in unity 5 and android
« on: March 09, 2015, 10:27:57 PM »
Same problem.  I am using Unity 5.0.0f4  and NGUI 3.7.9.

4
NGUI 3 Support / Re: Dynamic font support for NGUI
« on: March 05, 2013, 06:09:46 AM »
Hi, I had the same problem before.
It's my way to solve that.

  1. private static void OnFontRebuilt()
  2. {
  3.         UIRoot[] roots = GameObject.FindObjectsOfType(typeof(UIRoot)) as UIRoot[];
  4.  
  5.         foreach (var r in roots)
  6.         {
  7.             UILabel[] labels = r.GetComponentsInChildren<UILabel>(true);
  8.             foreach (UILabel label in labels)
  9.             {
  10.                 if (label.font != null)  // here you can check more to make this correct.
  11.                 { label.MarkAsChanged(); }
  12.             }
  13.             // just check
  14.             //Debug.LogWarning(string.Format("{0} has {1} UILabel.", r.name, ((labels != null && labels.Length > 0) ? (labels.Length) : (0))));
  15.         }
  16. }
  17.  

I hope it will be helpful to you  :)


   Thanks for reply!      bellow is my resolution, modify UILabel, I think there should be a better resolution......
  1.         protected override void OnEnable()
  2.         {
  3.                 base.OnEnable();
  4.                 MarkAsChanged();
  5.         }
  6.  


5
NGUI 3 Support / Re: Dynamic font support for NGUI
« on: March 04, 2013, 10:41:16 PM »
hello,
     
   when font texture rebuild, we have to update all labels.  Is there any solve else?

but how can I update labels disabled,  call MarkAsChanged() when OnEnable?

thanks!

Pages: [1]