5
我遇到了libgdx皮膚的問題。Libgdx在應用隱藏後重新載入scene2d皮膚
當應用程序暫停或進入後臺,然後重新打開我的所有scene2d紋理都顯示爲黑色。我假設底層紋理需要重新加載。
我用下面的代碼創建
我的皮膚FileHandle jsonFile = Gdx.files.internal("ui/uiskin.json");
FileHandle atlasFile = Gdx.files.internal("ui/uiskin.atlas");
TextureAtlas atlas = new TextureAtlas(atlasFile);
skin = new Skin(jsonFile, atlas);
我的問題是,如果有當紋理需要重新加載,我可以檢測任何方式以及如何最好地做到這一點?
但是,如果將皮膚應用於各種物體,這是如何工作的? – user2358285 2013-05-07 12:39:59