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

スクリプト言語

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

Application.dataPath

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static var dataPath: string;
public static string dataPath;
public static dataPath as string

Description

ゲームデータのフォルダパスを返します(RO)

値は実行しているプラットフォームによって異なります: Unity Editor: <path to project folder>/Assets Mac プレイヤー: <path to player app bundle>/Contents iOS プレイヤー: <path to player app bundle>/<AppName.app>/Data (このフォルダは読み込み専用でApplication.persistentDataPathを使用してデータを保存します。) Windows プレイヤー: <path to executablename_Data folder> Web プレイヤー: プレイヤーデータフォルダの絶対URL (実際のファイル名は含まれていません) Flash: プレイヤーデータフォルダの絶対URL (実際のファイル名は含まれていません) PC上で返される文字列はフォルダの区切りとしてスラッシュを使用することに注意してください。