Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Dev Blog / Re: Nov 11, 2017 -- How to edit UnityEngine.dll
« Last post by ArenMook on April 25, 2018, 03:54:17 PM »
Unity's reference code can't be compiled. Not sure what you're trying to do there.
22
NGUI 3 Support / Re: Latest Version: 3.11.4 (June 5, 2017)
« Last post by ArenMook on April 25, 2018, 03:51:12 PM »
3.12.0
- NEW: Popup list can now accept delegates when setting up the items programmatically (ideally anonymous delegates).
- NEW: Added Localization.Format overloads for 3 parameters and less to avoid GC allocations.
- NEW: Added UIWidget.SetColorNoAlpha helper function.
- NEW: color.LinearToGammaSpace() helper extension to match color.GammaToLinear().
- NEW: Added a fast path for updating a widget's collider if the collider is already known, and forced it to be used when the widget gets enabled.
- NEW: Added the "No Outline" option to the symbol coloring style. The symbol won't have an outline even if the text does.
- FIX: Fixed an issue with the font's actual printed size not being printed correctly in inspector in some situations.
- FIX: Random minor fixes from the support forum.
- FIX: Missing localization entry warnings will now only be shown once per keyword.
- FIX: UICamera will no longer keep assigning UICamera.hoveredObject repeatedly while mouse events are enabled. It will now only be assigned if the hovered object changes, or the mouse moves.
- FIX: Fixed some issues with NGUIText.InsertHyperlink/ReplaceLink.
- Merged pull request #26 by Nicki Hansen.
- Checked against Unity 4.7, 5.6, and 2018.1b2.
23
Dev Blog / Re: Nov 11, 2017 -- How to edit UnityEngine.dll
« Last post by suifcd on April 16, 2018, 03:05:27 AM »
hello,
I'am trying this with unity5.6.3,the code i use is https://github.com/Unity-Technologies/UnityCsReference/blob/7c7dd6798e5a0940cffa48ebc2c9db70a0ffa9a0/Runtime/Export/AttributeHelperEngine.cs
when i replace the unityengine.dll and addComponent in unity ,error happened

InvalidProgramException: Missing or incorrect header for method GetParentTypeDisallowingMultipleInclusion
UnityEngine.GameObject:AddComponent()

InvalidProgramException: Missing or incorrect header for method GetRequiredComponents
UnityEngine.GameObject:AddComponent()

Whats the problem?
Thanks!
24
NGUI 3 Documentation / Re: UITable
« Last post by BAIZOR on April 05, 2018, 09:29:33 AM »
I had a problem with Table.

My case:
I have a prefab with UITable onboard (in children object)
Need to relocate the prefab on initialization. My components on the prefab do this in Start method.
But. After reposition the transform, the UITable is going crazy.
I tried to call Reposition, it doesn't change anything.

Finally I found a solution:
  1.         var table = GetComponentInChildren<UITable>();
  2.         if (table != null)
  3.         {
  4.             table.Reposition();
  5.             table.enabled = false;
  6.         }

It's very important to disable Table after Reposition.
And very important execute all the code before reposition the prefab.

Hope it could help somebody!
Cheers! :)
25
NGUI 3 Documentation / Re: UIScrollView
« Last post by BAIZOR on April 03, 2018, 12:34:58 PM »
UIScrollView extention

I created extentions for UIScrollView, it helps getting vertical and horizontal scroll percent [0 - 1]
Check the ExtentionsUIScrollView.cs here - https://gist.github.com/IvanMurzak/2bad3244b5dd6dec266ceae0eb25d960

It works super easy. Just put the class in your unity project than you can write this anywere:

  1. UIScrollView scrollView;
  2.  
  3. float percentH = scrollView.PercentHorizontal();
  4. float percentV = scrollView.PercentVertical();
26
NGUI 3 Support / Re: Vector3.one and Vector3(1,1,1)
« Last post by Elapse on April 03, 2018, 04:28:09 AM »
Thanks for "taping" :)

I wonder, why it works then, but I'll change it and try fading them out and in instead.
27
TNet 3 Support / Re: TNServer runs much slower with multiple cores on linux
« Last post by lance on March 31, 2018, 10:04:38 AM »
The dotnet core version of tnet server only utilize one cpu on both windows and linux system... Maybe it would run much faster if it support multiple cpus with dot net core 2.0.
28
TNet 3 Support / Re: TNServer runs much slower with multiple cores on linux
« Last post by lance on March 31, 2018, 08:06:00 AM »
Hi, I found some very funny stuff. I tried build the code with vs2017 and .net core 2.0 target. And it actually worked! On linux with dot net core!
I thought tnet only support mono, apparently I was wrong. Maybe dot net core will run faster than mono?

I expect Windows to work faster, since it uses IO Completion ports, which is a Windows feature. Plus, on Windows it runs using .NET, while on Linux it runs through Mono.

Windows will win.
29
NGUI 3 Support / Re: Special Characters Break Text Wrapping
« Last post by stc105 on March 30, 2018, 10:10:30 AM »
Nope. I'm all about the font.

Anyway, I figured out the issue. Because Font Awesome has a ton of glyphs, the ch numbers can get into the tens of thousands. Because of that, the ch will accidentally be flagged as eastern.

See line 1202 in NGUIText

  1. if (ch > 12287) eastern = true;

Problem with this line of code, is it assumes the user is using a specific font what follows the average standards, which Font Awesome does not.

Since I wont be using eastern characters, this was an easy fix for me.
30
NGUI 3 Support / Re: Special Characters Break Text Wrapping
« Last post by ArenMook on March 29, 2018, 12:02:08 PM »
You really should be using emoticons instead.
Pages: 1 2 [3] 4 5 ... 10