User Manual

アセット

アセットパネルは、プロジェクトで利用可能なすべてのアセットを管理します。ここから、アセットの作成、アップロード、削除、検査が行えます。

アセットパネル

フォルダ階層

フォルダパネルから、フォルダのツリーにアセットを整理することができます。

新しいフォルダを作成するには、Add Asset (+) ボタンをクリック、Folderを選択します。また、新しいフォルダを作成する場所を右クリックして、New Asset> Folderを選択します。

フォルダの名前を変更するには、階層パネルでそれをダブルクリックして、InspectorのName フィールドを編集します。

フォルダを削除するには、階層でそれをダブルクリックしてdeleteを押します。また、削除したいフォルダを右クリックして、コンテキストメニューからDeleteを選択します。

フォルダの構成を整理するにはフォルダを互いの中にドラッグすることができます。

アセットの作成とアップロード

コンピューターのファイルシステムからアセットパネルにファイルをドラッグして新しいアセットを作成することができます。Editorがアセットをアップロード及びインポートします。

Add Asset (+) アイコンを使用して特定のアセットタイプを作成することもできます。

アセットを選択してDelete Assetアイコンをクリックすると、削除できます。

アセットの編集

次の特定のテキストベースのアセットはPlayCanvas Script Editorで開いて編集することができます:text, json, shader, html, css, script asset。これを行うには、アセットのサムネイルをダブルクリックします。

アセットの調査

任意のアセットの詳細を確認するには、アセットパネルのサムネイルを選択します。アセットの詳細がInspectorに表示されます。

フィルタリング

フィルタドロップダウンから表示させるアセットの種類を選択して表示されているアセットをフィルタします。

検索

検索ボックスを使用して、プロジェクト内のアセットのグローバル検索を実行することができます。ボックスに入力し始めると、Editorは一致する結果を動的にアセットパネルで表示します。

ID - 特定のアセットを固有のIDで検索することができます。検索フィールドにIDを入力するだけで正確な一致が認識され、そのIDを持つひとつのアセットが表示されます。

RegExp - 正規表現を使用して検索することもできます。検索フィールドの先頭に * を追加し、後ろにregexpクエリを入力してください。すべてのアセットを検索するには *.(任意の文字の)正規表現クエリを使用します。

Tags - タグとその組み合わせから検索するには、大括弧[ ]にタグを入力します。単純なクエリ演算子:AND, ORはクエリを文字列の配列、または文字列を持つ他の配列として表現することによって可能になります。クエリのロジックは、 AssetsRegistryfindByTagと同じです。 いくつかの例を示します:

[ level-1 ] - level-1によってタグ付けされたすべてのアセットを返します。 [ level-1, level-2 ] - level-1 OR level-2によってタグ付けされたすべてのアセットを返します。 [ [ level-1, monster ] ] - level-1 AND monsterによってタグ付けされたすべてのアセットを返します。 角括弧の数に注意してください。 [ [ level-1, monster ], [ level-2, monster ] ] - (level-1 AND monster) OR (level-2 AND monster)によってタグ付けされたすべてのアセットを返します。

ドラッグ&ドロップ

アセットは、メインパネルからフォルダ階層内のフォルダにドラッグして別のフォルダに移動することができます。アセットは複数選択に対応しています。CTRL+ Aで、現在選択されているフォルダ内のすべてのアセットを選択します。

アセットパネルから、Inspectorでハイライトされたスロットにアセットをドラッグすることもできます。Inspectorのスロットは、コンポーネントのアセット属性またはアセットタイプのスクリプト属性のどちらかになります。

モデル、素材、キューブマップなどのアセットを直接 ビューポートにドラッグすることもできます。

Copy and Paste between Projects

To copy an asset or a selection of assets between projects, select the asset(s) and right-click to bring up the context menu to select 'Copy'. You can also use the hotkey Ctrl/Cmd + C instead if the context menu is not available due to being a read-only project.

Right click copy menu

In the project that you want to copy the asset(s) to, right click in the assets panel and select 'Paste'. Ctrl/Cmd + V hotkey can be used instead.

Right click paste menu

Copy and pasting an asset will also copy its asset dependencies too. For example, here we have a model which references two materials and they reference a set of textures.

Model example

If you copy and paste just the model asset into a different project, those asset dependencies are copied too.

Pasted referenced assets

By default, it is pasted as a flat hierarchy. If you want keep the folder structure, hold Shift when the context menu is opened and an option will appear called 'Paste (keep folders)'. This will attempt to keep the folder structure using the folder you are pasting into as the root folder.

Right click paste (keep folders) menu

Will result in the following where the folder structure is preserved:

Pasted referenced assets with folders

We generally recommend that if you will be using this feature for reusable libraries and assets, to keep it contained to a root level folder that can be easily copied and pasted to other projects. This will keep the folder structure of projects simpler and cleaner.

Note that copy and pasting assets does not overwrite existing assets with the same name and will create a new asset.

参照の確認

特定のシーン内でアセットが使用されている(または参照されている)場所を知ることが有用な場合もあります。Editorがアセットの参照を検出できない場合、サムネイルに小さい点が表示されます:

参照されていないアセット

Editorはコードで作成されたアセットの参照を検出できません。アセットを削除する際は注意が必要です。

アセットに参照がある場合は、Referencesコンテンツメニュー項目を使用して参照することができます。

アセットの参照

参照を選択するとInspectorパネルに読み込まれます。

This site is translated by the community. If you want to get involved visit this page