最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

unity_Addressable_Groups(組)

2023-03-30 16:19 作者:unity_某某師_高錦錦  | 我要投稿

A group is the main organizational unit of the Addressables system. Create and manage your groups and the assets they contain with the?Addressables Groups window.

譯:一個(gè)組是Addressables系統(tǒng)的主要組織單位。使用Addressables Groups窗口創(chuàng)建和管理您的組和它們包含的資產(chǎn)。

You can control how Unity handles assets during a content build by organizing your Addressables into groups and assigning different settings to each group as required. See?Organizing Addressable Assets?for information about how to organize your assets.

譯:通過(guò)將Addressables組織成組并根據(jù)需要為每個(gè)組分配不同的設(shè)置,您可以控制Unity在內(nèi)容構(gòu)建期間如何處理資產(chǎn)。有關(guān)如何組織資產(chǎn)的信息,請(qǐng)參見(jiàn)組織Addressable資產(chǎn)。

When you initiate a content build, the build scripts create AssetBundles containing the assets in a group. The build determines the number of bundles to create and where to create them from both the?settings of the group?and your overall?Addressables system settings. See?Builds?for more information.

譯:當(dāng)您啟動(dòng)內(nèi)容構(gòu)建時(shí),構(gòu)建腳本會(huì)創(chuàng)建包含組中資產(chǎn)的AssetBundles。構(gòu)建確定要?jiǎng)?chuàng)建的包的數(shù)量以及從哪里創(chuàng)建它們,這些都來(lái)自組的設(shè)置和您的整體Addressables系統(tǒng)設(shè)置。有關(guān)更多信息,請(qǐng)參見(jiàn)構(gòu)建。

NOTE

Addressable Groups only exist in the Unity Editor. The Addressables runtime code does not use a group concept. However, you can assign a label to the assets in a group if you want to find and load all the assets that were part of that group. See?Loading Addressable assets?for more information about selecting the assets to load using labels.

譯:Addressable Groups僅存在于Unity Editor中。Addressables runtime代碼不使用分組概念。但是,如果您要查找和加載作為該組一部分的所有資產(chǎn),則可以為該組中的資產(chǎn)分配標(biāo)簽。有關(guān)使用標(biāo)簽選擇要加載的資產(chǎn)的更多信息,請(qǐng)參見(jiàn)加載Addressable資產(chǎn)。

Managing groups

To manage your groups and Addressables assets, open the Addressables Groups window by going to?Window?&gt?Asset Management?&gt ** Addressables** &gt?Groups. See?Addressables Groups window?for details about the features of this window.

譯:要管理您的組和Addressables資產(chǎn),請(qǐng)打開Addressables Groups窗口,方法是轉(zhuǎn)到窗口 > 資產(chǎn)管理 > Addressables > Groups。有關(guān)此窗口功能的詳細(xì)信息,請(qǐng)參見(jiàn)Addressables Groups窗口。

Create a group

To create a group:

譯:創(chuàng)建組

  1. Open the Addressables Groups window - to?Window?&gt?Asset Management?&gt ** Addressables** and select?Groups.譯:打開Addressables Groups窗口-轉(zhuǎn)到窗口 > 資產(chǎn)管理 > Addressables并選擇組。

  2. Select?Create?in the toolbar to open the Create menu.譯:在工具欄中選擇創(chuàng)建以打開創(chuàng)建菜單。

  3. Select?Group?&gt?Packed Asset?to create a new group. (If you have created your own?Group Templates, they are also displayed in the menu.)譯:選擇Group > Packed Asset以創(chuàng)建新組。(如果您已經(jīng)創(chuàng)建了自己的Group Templates,則它們也會(huì)顯示在菜單中。)

  4. Select the new group and right-click (mac: cmd + click) to open its context menu.譯:選擇新組,然后右鍵單擊(Mac:Cmd +單擊)以打開其上下文菜單。

  5. Select?Rename?and assign the desired name.譯:選擇重命名并分配所需的名稱。

  6. Open the context menu again and select?Inspect Group Settings.譯:再次打開上下文菜單,然后選擇檢查組設(shè)置。

  7. Adjust the group settings as desired.譯:按需要調(diào)整組設(shè)置。

For groups containing assets that you plan to distribute with your main application, the default settings are a reasonable starting point. For groups containing assets that you plan to distribute remotely, you must change the build and load paths to use the remote versions of the?Profile?path variables. (To build AssetBundles for remote distribution, you must also enable the?Build Remote Catalog?option in your?Addressable System Settings.)

譯:對(duì)于包含您計(jì)劃與主應(yīng)用程序一起分發(fā)的資產(chǎn)的組,默認(rèn)設(shè)置是合理的起點(diǎn)。對(duì)于包含您計(jì)劃遠(yuǎn)程分發(fā)的資產(chǎn)的組,您必須更改構(gòu)建和加載路徑以使用Profile路徑變量的遠(yuǎn)程版本。(要構(gòu)建用于遠(yuǎn)程分發(fā)的AssetBundles,您還必須在Addressable System Settings中啟用Build Remote Catalog選項(xiàng)。)

See?Group settings?for more information about individual settings.

譯:有關(guān)各個(gè)設(shè)置的更多信息,請(qǐng)參見(jiàn)組設(shè)置。

Manage assets in a group

Adding assets to a group

Use one of the following methods to add an asset to a group:

譯:使用以下方法之一將資產(chǎn)添加到組:

  • Drag the assets from the Project window into the Group window and drop them into the desired group.譯:從Project窗口將資產(chǎn)拖放到Group窗口中,然后將它們放入所需的組中。

  • Drag the assets from one group into another.譯:從一個(gè)組中將資產(chǎn)拖到另一個(gè)組中。

  • Select the asset to open it in the Inspector window and enable the?Addressables?option. This adds the asset to the default group. Use the group context menu to change which group is the default group.譯:選擇要在Inspector窗口中打開的資產(chǎn)并啟用Addressables選項(xiàng)。這將資產(chǎn)添加到默認(rèn)組中。使用組上下文菜單更改哪個(gè)組是默認(rèn)組。

  • Add the folder containing the assets to a group - all assets added to the folder are included in the group.譯:將包含資產(chǎn)的文件夾添加到組中-所有添加到文件夾中的資產(chǎn)都包含在該組中。

NOTE

If you add assets in a Resources folder to a group, the Addressables system first moves the assets to a non-Resource location. You can move the assets elsewhere, but Addressable assets can't be stored in a Resources folder in your Project.

譯:如果您將資產(chǎn)添加到Resources文件夾中的組中,則Addressables系統(tǒng)首先將資產(chǎn)移動(dòng)到非Resource位置。您可以將資產(chǎn)移動(dòng)到其他位置,但Addressable資產(chǎn)不能存儲(chǔ)在項(xiàng)目的Resources文件夾中。


Remove assets from a group

Select one or more assets in the Groups window and right-click (macOS: cmd + click) to open the context menu, then select?Remove Addressables. You can also select the assets and press the Delete key to remove the assets from the group.

譯:在組窗口中選擇一個(gè)或多個(gè)資產(chǎn),然后右鍵單擊(macOS:Cmd +單擊)以打開上下文菜單,然后選擇刪除Addressables。您也可以選擇資產(chǎn),然后按Delete鍵將資產(chǎn)從組中刪除。

Add or remove labels

Select one or more assets in the Groups window, then select the label field for one of the selected assets.

譯:在組窗口中選擇一個(gè)或多個(gè)資產(chǎn),然后選擇所選資產(chǎn)中的標(biāo)簽字段。

Assigning labels

To assign labels, enable or disable the checkboxes for the desired labels.

譯:要分配標(biāo)簽,請(qǐng)啟用或禁用所需標(biāo)簽的復(fù)選框。

To add, remove or rename your labels, select the?Plus?button, then select?Manage Labels. To only add a new label, select the?Plus?button and then select?New Label. See?Labels?for more information on how to use labels.

譯:要添加、刪除或重命名標(biāo)簽,請(qǐng)選擇加號(hào)按鈕,然后選擇“管理標(biāo)簽”。要僅添加新標(biāo)簽,請(qǐng)選擇加號(hào)按鈕,然后選擇“新標(biāo)簽”。有關(guān)如何使用標(biāo)簽的更多信息,請(qǐng)參見(jiàn)Labels。


Group context menu

To open the Group context menu and access group-related commands, right-click (macOS: cmd + click) on a group name.

譯:要打開組上下文菜單并訪問(wèn)與組相關(guān)的命令,請(qǐng)右鍵單擊(macOS:cmd +單擊)組名。

The Group content menu


Command????????????????????????????????????????????????????????????Action

Remove Group(s)Removes the Group and deletes its associated ScriptableObject asset. Unity reverts any assets in the group into non-Addressable assets.譯:刪除組 ? ?刪除組并刪除其關(guān)聯(lián)的ScriptableObject資產(chǎn)。Unity將組中的任何資產(chǎn)還原為非可尋址資產(chǎn)。

Simplify Addressable NamesShortens the name of assets in the group by removing path-like components and extensions.譯:簡(jiǎn)化可尋址名稱 ? ?通過(guò)刪除類似于路徑的組件和擴(kuò)展名來(lái)縮短組中資產(chǎn)的名稱。

Set as DefaultSets the group as the default group. When you mark an asset as Addressable without explicitly assigning a group, Unity adds the asset to the default group.譯:設(shè)置為默認(rèn)值 ? ?將組設(shè)置為默認(rèn)組。當(dāng)您將資產(chǎn)標(biāo)記為可尋址而不顯式分配組時(shí),Unity會(huì)將資產(chǎn)添加到默認(rèn)組中。

Inspect Group SettingsSelects the group asset in the Unity Project window and in the Inspector window so that you can view the settings.譯:檢查組設(shè)置 ? ?選中Unity項(xiàng)目窗口中的組資產(chǎn)和檢查器窗口,以便您可以查看設(shè)置。

RenameEnables you to edit the name of the group.譯:重命名 ? ?允許您編輯組的名稱。

Create New GroupCreates a new group based on a group template.譯:創(chuàng)建新組 ? ?基于組模板創(chuàng)建新組。

Asset context menu

To open the Addressable Asset context menu and access asset-related commands, right-click (macOS: cmd + click) on an asset.

譯:要打開可尋址資產(chǎn)上下文菜單并訪問(wèn)與資產(chǎn)相關(guān)的命令,請(qǐng)右鍵單擊(macOS:cmd +單擊)資產(chǎn)

Addressable Asset context menu

Command? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Action

Move Addressables to GroupMove the selected assets to a different, existing group.譯:將可尋址移動(dòng)到組 ? ?將所選資產(chǎn)移動(dòng)到另一個(gè)現(xiàn)有組。

Move Addressables to New GroupCreate a new group with the same settings as the current group and move the selected assets to it.譯:將可尋址移動(dòng)到新組 ? ?創(chuàng)建一個(gè)與當(dāng)前組具有相同設(shè)置的新組,并將所選資產(chǎn)移動(dòng)到該組。

Remove AddressablesRemove the selected asset(s) from the Group and make the asset(s) non-Addressable.譯:刪除可尋址 ? ?從組中刪除所選資產(chǎn),并使資產(chǎn)成為非可尋址資產(chǎn)。

Simplify Addressable NamesShortens the names of the selected assets by removing path-like components and extensions.譯:簡(jiǎn)化可尋址名稱 ? ?通過(guò)刪除類似于路徑的組件和擴(kuò)展名來(lái)縮短所選資產(chǎn)的名稱。

Copy Address to CLipboardCopies the asset's assigned address string to your system Clipboard.譯:復(fù)制地址到剪貼板 ? ?將資產(chǎn)的分配地址字符串復(fù)制到系統(tǒng)剪貼板。

Change AddressEnables you to edit the asset's name.譯:更改地址 ? ?允許您編輯資產(chǎn)的名稱。

Create New GroupCreate a new group based on a group template. This doesn't move the selected assets.譯:創(chuàng)建新組 ? ?基于組模板創(chuàng)建新組。這不會(huì)移動(dòng)所選資產(chǎn)。



unity_Addressable_Groups(組)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
牡丹江市| 忻城县| 剑阁县| 什邡市| 德阳市| 扶绥县| 宜昌市| 潮州市| 盘山县| 日喀则市| 渭源县| 安陆市| 湖口县| 观塘区| 上饶县| 广宗县| 崇州市| 遵义市| 浪卡子县| 溆浦县| 驻马店市| 科尔| 桂平市| 台安县| 清涧县| 百色市| 临海市| 广河县| 邢台市| 闽侯县| 浦江县| 五家渠市| 唐山市| 昔阳县| 错那县| 阜南县| 黄龙县| 安达市| 永州市| 靖西县| 牙克石市|