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.


Topics - andrew99

Pages: [1]
1
Hi

The soft keyboard orientation still behaves as if autorotation is enabled.
In Unity's Player Settings I've set the orientation to fixed (Landscape Left), and disabled the Accelerometer.
But even though the game's orientation is locked properly, the soft keyboard still rotates.
I haven't had any luck in finding any documentation which address this specific issue (perhaps my googling just sucks :P).
Apparently orientation lock issue is a thing in my QA side, so I'd really appreciate the help on how to fix this issue..

FYI, I'm using
- NGUI 3.5.1 (can't upgrade due to compatibility issues with some custom codes, but I've confirmed that this issue still happens in NGUI 3.7.4)
- Unity 4.5.4
- Visual Studio 2012 for Windows Phone Update 2

I've attached a screenshot of what the issue looks like on NGUI demo scene : Chat Window.
Hope someone can help with this. Thanks!

2
NGUI 3 Support / Unused Atlas Not Cleaned Up Properly When Changing Scene
« on: January 30, 2014, 03:18:18 AM »
Hello,

Sorry if my question had been asked before. I've run into some memory problem I've noticed when developing for some older iOS device.
My game has several atlases, one main UI atlas, and some scene specific atlases for different scenes. The NGUI version I'm using is 3.0.9f2
When I do some profiling in Unity & XCode I've noticed when changing into scenes which uses different atlas, the memory usage keeps increasing,
until eventually the app crashed on weaker old devices.

When I run a profiler in Unity I've noticed that the unused atlas still has references even though no objects are currently using that atlas in the current scene.
Specifically it says ManagedStaticReferences in the profiler (didn't really understand what that mean).

My atlas usage flow is something like this :
Atlas -> atlas assigned to Reference Atlas Prefab -> prefab assigned to various UISprites in Scene (reference atlas prefab is there to make it easier for changing between SD / HD Atlas source)

I've also tried to create a clean project to test this case with a simpler flow where atlas are assigned directly to UISprites, and it is still not cleaned when changing scenes.

I've tried using Resources.UnloadUnusedAsset() and System.GC.Collect(), but it seemed to have no effects, most likely because there's still some references to the atlas.
Is this a problem with NGUI / Unity, or am I doing something wrong with how I design my usage flow?

Pages: [1]