找回密碼
 注冊帳號

掃一掃,訪問微社區

application.backgroundloadingpriority 后臺加載優先級

2014-12-31 07:18| 發布者: 楊炎| 查看: 3171| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: application.backgroundloadingpriority 后臺加載優先級static varbackgroundloadingpriority:threadprioritydescription描述priority of background loading thread.后臺裝載線程優先級lets you control how long i ...

application.backgroundloadingpriority 后臺加載優先級

static varbackgroundloadingpriority:threadpriority

description描述

priority of background loading thread.

后臺裝載線程優先級

lets you control how long it takes to load data asynchronously vs. performance impact on the game while loading in the background.

讓您控制需要多長時間在后臺分步加載數據與性能的影響

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

application.backgroundloadingpriority =threadpriority.high;

application.backgroundloadingpriority =threadpriority.low;

}

}

// load as much data as possible, as a result frame rate will drop.

// good for fast loading when showing progress bars.

//裝載盡可能多的數據傳輸速率,因此幀將下降。

//加載時顯示出良好的快速進度條。

application.backgroundloadingpriority =threadpriority.high;

// load data very slowly and try not to affect performance of the game.

// good for loading in the background while the game is playing.

//加載數據速度非常慢,盡量不影響游戲性能的。

//在游戲進行時有很好的后臺加載。

application.backgroundloadingpriority =threadpriority.low;

參見:threadpriorityenum.

相關閱讀

文章點評
相關文章
女校游泳队彩金