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

スクリプト言語

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

AssetDatabase.LoadMainAssetAtPath

public static function LoadMainAssetAtPath(assetPath: string): Object;

Parameters

assetPath Filesystem path of the asset to load.

Description

Returns the main asset object at assetPath.

全てのパスはプロジェクトフォルダに対する相対指定となります。例えば "Assets/MyTextures/hello.png" です。 See Also: AssetDatabase.LoadAssetAtPath, AssetDatabase.LoadAllAssetsAtPath.