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 - tony-jumpthestream

Pages: [1]
1
Hi Unikron

After mainmenu has loaded, tk2dSystem.CurrentPlatform prints "2x", but the textures are still using "1x"

At the startup scene called "Init", no sprites are loaded. I also tried having a sprite in the startup scene, but the same thing still happens.

My Unity3D version is 3.5.6f4

Thanks
-Tony


2
Support / Setting tk2dSystem.CurrentPlatform does not change textures used
« on: December 01, 2012, 10:05:09 am »
Hi

I got version 1.80 + patch 3 from the asset store and have set up a platform specific sprite collection for 1x and 2x. Assets were created fine. When I change the platform through the editor's "2D toolkit > preferences" from "1x" to "2x", the textures used changed from the 1x to 2x as expected.

However, when I use a script in a scene called "Init" to set tk2dSystem.CurrentPlatform from "1x" to "2x" then load the "MainMenu" scene, the textures in the main menu scene are still using "1x":

Code: [Select]
using UnityEngine;
using System.Collections;

public class Init : MonoBehaviour
{
void Awake()
{
Debug.Log(tk2dSystem.CurrentPlatform);  // shows 1x
tk2dSystem.CurrentPlatform = "2x";
Debug.Log(tk2dSystem.CurrentPlatform);  // shows 2x
Application.LoadLevel("MainMenu");
}
}

Am I doing something wrong?

Thanks

Pages: [1]