言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Application.backgroundLoadingPriority

public static var backgroundLoadingPriority: ThreadPriority;

Description

バックグラウンドのスレッドの優先順位を設定します。

これは非同期でデータのロードにかかる時間をコントロールすることが出来ます。 バックグラウンドでロードしている間はゲームパフォーマンスが影響を受けてしまいます。

	// 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;

See Also: ThreadPriority