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

Pages: [1]
1
Support / Re: SystemInfo.deviceModel
« on: March 14, 2015, 12:57:01 am »
Oh, okay. Thanks for responding!

So I suppos I would just take the Screen.width/height which will give me the screen resolution. From there, I would determine the assets to use based on the requirements from iOS/Android? (@1x, mdpi, etc.)

I'm going to purchase the plugin. Thanks!

2
Support / SystemInfo.deviceModel
« on: March 13, 2015, 09:00:46 pm »
Hey Unity,

I'm working on a mobile game, and plan on purchasing and using TK2D to help with managing the x1, x2 assets, etc. However, it seems that you're still responsible for determining which of the asset collections to use which needs to be predetermined.

I found this script online:
https://github.com/CostelloNicho/Tutorials/blob/master/Tk2dResolutionSupport/Scripts/ResolutionManger.cs

It uses SystemInfo.deviceModel to determine which platform to set TK2D to.

SO, my question:

1. Does this work for Android devices as well?

2. Is there somewhere where ALL the deviceModels can be found in order to build this list?

Thanks. :)

Pages: [1]