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

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

Unity_Addressable_Labels(標(biāo)簽)

2023-03-31 09:08 作者:unity_某某師_高錦錦  | 我要投稿

You can tag your Addressable assets with one or more labels in the?Groups?window. Labels have a few uses in the Addressables system, including:

譯:您可以在Groups窗口中為Addressable資產(chǎn)打上一個(gè)或多個(gè)標(biāo)簽。標(biāo)簽在Addressables系統(tǒng)中有幾個(gè)用途,包括:

  • You can use one or more labels as keys to identify which assets to load at runtime.譯:您可以使用一個(gè)或多個(gè)標(biāo)簽作為鍵來(lái)標(biāo)識(shí)需要在運(yùn)行時(shí)加載的資產(chǎn)。

  • You can pack assets in a group into AssetBundles based on their assigned labels.譯:您可以根據(jù)其分配的標(biāo)簽將資產(chǎn)打包到一個(gè)組中的AssetBundles中。

  • You can use labels in the filter box of the Groups window to help find labeled assets譯:您可以在Groups窗口的篩選框中使用標(biāo)簽來(lái)幫助查找?guī)в袠?biāo)簽的資產(chǎn)。

When you load assets using a list of labels, you can specify whether you want to load all assets having?any?label in the list or only assets that have?every?label in the list. For example, if you used the labels, "characters" and "animals" to load assets, you could choose to load the?union?of those two sets of assets, which includes all characters and all animals, or the?intersection?of those two sets, which includes only characters that are animals. See?Loading multiple assets?for more information.

譯:當(dāng)您使用標(biāo)簽列表加載資產(chǎn)時(shí),您可以指定是否要加載列表中具有任何標(biāo)簽的所有資產(chǎn),還是僅加載列表中每個(gè)標(biāo)簽都具有的資產(chǎn)。例如,如果您使用“characters”和“animals”標(biāo)簽來(lái)加載資產(chǎn),則可以選擇加載這兩組資產(chǎn)的并集,其中包括所有角色和所有動(dòng)物,或者這兩組資產(chǎn)的交集,其中僅包括動(dòng)物角色。有關(guān)更多信息,請(qǐng)參見(jiàn)加載多個(gè)資產(chǎn)。

When you choose to pack assets in a group based on their assigned labels (using the group?Bundle Mode?setting), the Addressables build script creates a bundle for each unique combination of labels in the group. For example, if you have assets in a group that you have labeled as either "cat" or "dog" and either "small" or "large", the build produces four bundles: one for small cats, one for small dogs, one for large cats, and another for large dogs.

譯:當(dāng)您選擇根據(jù)其分配的標(biāo)簽(使用組Bundle Mode設(shè)置)將資產(chǎn)打包到組中時(shí),Addressables構(gòu)建腳本會(huì)為組中每個(gè)唯一標(biāo)簽組合創(chuàng)建一個(gè)bundle。例如,如果您在組中有標(biāo)記為“cat”或“dog”以及“small”或“l(fā)arge”的資產(chǎn),則構(gòu)建將產(chǎn)生四個(gè)bundle:一個(gè)用于小貓,一個(gè)用于小狗,一個(gè)用于大貓,另一個(gè)用于大狗。

Managing labels

Create and delete labels on the Labels window. Open the?Labels?window from the?Tools?menu on the?Groups?window toolbar.

譯:在Labels窗口上創(chuàng)建和刪除標(biāo)簽。從Groups窗口工具欄上的Tools菜單打開(kāi)Labels窗口。

The Labels window

To create a new label, click the?+?button at the bottom of the list. Enter the new name and click?Save.

譯:要?jiǎng)?chuàng)建新標(biāo)簽,請(qǐng)單擊列表底部的+按鈕。輸入新名稱(chēng),然后單擊Save。

To delete a label, select it in the list and then click the?-?button. Deleting a label also removes it from all assets.

譯:要?jiǎng)h除標(biāo)簽,請(qǐng)?jiān)诹斜碇羞x擇它,然后單擊-按鈕。刪除標(biāo)簽也會(huì)將其從所有資產(chǎn)中刪除。

TIP

Until you run an Addressables build, you can undo the deletion of a label by adding it back to the Labels dialog (using the exact same string). This also adds the label back to its original assets. After you run an Addressables build, however, re-adding a deleted label no longer reapplies it to any assets.

譯:在運(yùn)行Addressables構(gòu)建之前,您可以通過(guò)將其添加回Labels對(duì)話框(使用完全相同的字符串)來(lái)撤消對(duì)標(biāo)簽的刪除。這也會(huì)將標(biāo)簽添加回其原始資產(chǎn)。但是,在運(yùn)行Addressables構(gòu)建之后,重新添加已刪除的標(biāo)簽將不再應(yīng)用于任何資產(chǎn)。


Unity_Addressable_Labels(標(biāo)簽)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
沾益县| 晴隆县| 鄂尔多斯市| 柯坪县| 怀来县| 民丰县| 宝清县| 固安县| 定兴县| 勐海县| 青岛市| 棋牌| 东乌| 营口市| 芦溪县| 延庆县| 柘荣县| 洛浦县| 哈尔滨市| 望城县| 清河县| 东源县| 正安县| 洪湖市| 岐山县| 乐东| 阳城县| 太保市| 牟定县| 丹江口市| 双峰县| 新余市| 二连浩特市| 个旧市| 西华县| 岚皋县| 花垣县| 凯里市| 辽宁省| 鞍山市| 临潭县|