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

Pages: [1]
1
NGUI 3 Support / Re: How to get particle system above NGUI widget
« on: December 16, 2015, 10:51:25 PM »
Yes you are right
I add the particle layer to the NGUI camera and the code worked.

2
NGUI 3 Support / Re: How to get particle system above NGUI widget
« on: December 16, 2015, 03:20:07 AM »
NO
NGUI uses it's camera and my sprite use the Main camera in game

3
NGUI 3 Support / How to get particle system above NGUI widget
« on: December 14, 2015, 11:37:15 PM »
In my game i have a NGUI UI widget at the bottom of the screen with some sprites etc. 
I what a particle system to appear above that.

I have seen this port about this. But I have trouble getting it to work
http://www.tasharen.com/forum/index.php?topic=776.msg34546#msg34546
 

I did following test to whether renderq can be used for my task ..

In my game I set UI Root Render Q to 3000 with sorting order 0
Then I add a NGUI sprite to the game

Then I add a sprite to the game and following script to it

  1.     Renderer ren;
  2.     public UIWidget target;
  3.  
  4.     void Start () {
  5.         ren = gameObject.GetComponent<SpriteRenderer>();
  6.         ren.material.renderQueue = 4000;
  7.     }
  8.        
  9.         void Update () {
  10.  
  11.         if (target == null || target.drawCall == null)
  12.             return;
  13.  
  14.         print("sprite " + ren.material.renderQueue);
  15.         print("NGUI " + target.drawCall.renderQueue);
  16.     }
  17.  

I can see from the output my sprite has 4000 render q and NGUI sprite has 3000 render q
but still my sprite is behind NGUI sprite ...

Can anyone provide some help ?

4
NGUI 3 Support / Place UILabel over GameObject
« on: July 10, 2015, 07:18:55 AM »
In my game I have several animals appear on different positions on screen.

They don't move around.

I want to place a label over each animal. I know the position animal. How to I set the position of the UILabel?

5
The textures, do they have to be power of two  ?

6
When I try to bring any images to Atlas Maker I get following error

I am using Unity 4.6.5
NGUI 3.8.2

Any suggestions on how to fix this?

  1. importer.GetNPOTScale() == TextureImporter::kNPOTKeep
  2. UnityEditor.AssetDatabase:ImportAsset(String, ImportAssetOptions)
  3. NGUIEditorTools:MakeTextureAnAtlas(String, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:489)
  4. NGUIEditorTools:ImportTexture(String, Boolean, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:503)
  5. NGUIEditorTools:ImportTexture(Texture, Boolean, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:522)
  6. UIAtlasMaker:ExtractSprites(UIAtlas, List`1) (at Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs:555)
  7. UIAtlasMaker:UpdateAtlas(List`1, Boolean) (at Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs:687)
  8. UIAtlasMaker:OnGUI() (at Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs:1055)
  9. UnityEditor.DockArea:OnGUI()

Pages: [1]