unity_Addressable_Groups(组)
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.
译:一个组是Addressables系统的主要组织单位。使用Addressables Groups窗口创建和管理您的组和它们包含的资产。
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.
译:通过将Addressables组织成组并根据需要为每个组分配不同的设置,您可以控制Unity在内容构建期间如何处理资产。有关如何组织资产的信息,请参见组织Addressable资产。
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.
译:当您启动内容构建时,构建脚本会创建包含组中资产的AssetBundles。构建确定要创建的包的数量以及从哪里创建它们,这些都来自组的设置和您的整体Addressables系统设置。有关更多信息,请参见构建。
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代码不使用分组概念。但是,如果您要查找和加载作为该组一部分的所有资产,则可以为该组中的资产分配标签。有关使用标签选择要加载的资产的更多信息,请参见加载Addressable资产。
Managing groups
To manage your groups and Addressables assets, open the Addressables Groups window by going to Window > Asset Management > ** Addressables** > Groups. See Addressables Groups window for details about the features of this window.
译:要管理您的组和Addressables资产,请打开Addressables Groups窗口,方法是转到窗口 > 资产管理 > Addressables > Groups。有关此窗口功能的详细信息,请参见Addressables Groups窗口。
Create a group
To create a group:
译:创建组
Open the Addressables Groups window - to Window > Asset Management > ** Addressables** and select Groups.译:打开Addressables Groups窗口-转到窗口 > 资产管理 > Addressables并选择组。
Select Create in the toolbar to open the Create menu.译:在工具栏中选择创建以打开创建菜单。
Select Group > 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以创建新组。(如果您已经创建了自己的Group Templates,则它们也会显示在菜单中。)
Select the new group and right-click (mac: cmd + click) to open its context menu.译:选择新组,然后右键单击(Mac:Cmd +单击)以打开其上下文菜单。
Select Rename and assign the desired name.译:选择重命名并分配所需的名称。
Open the context menu again and select Inspect Group Settings.译:再次打开上下文菜单,然后选择检查组设置。
Adjust the group settings as desired.译:按需要调整组设置。
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.)
译:对于包含您计划与主应用程序一起分发的资产的组,默认设置是合理的起点。对于包含您计划远程分发的资产的组,您必须更改构建和加载路径以使用Profile路径变量的远程版本。(要构建用于远程分发的AssetBundles,您还必须在Addressable System Settings中启用Build Remote Catalog选项。)
See Group settings for more information about individual settings.
译:有关各个设置的更多信息,请参见组设置。
Manage assets in a group
Adding assets to a group
Use one of the following methods to add an asset to a group:
译:使用以下方法之一将资产添加到组:
Drag the assets from the Project window into the Group window and drop them into the desired group.译:从Project窗口将资产拖放到Group窗口中,然后将它们放入所需的组中。
Drag the assets from one group into another.译:从一个组中将资产拖到另一个组中。
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窗口中打开的资产并启用Addressables选项。这将资产添加到默认组中。使用组上下文菜单更改哪个组是默认组。
Add the folder containing the assets to a group - all assets added to the folder are included in the group.译:将包含资产的文件夹添加到组中-所有添加到文件夹中的资产都包含在该组中。
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.
译:如果您将资产添加到Resources文件夹中的组中,则Addressables系统首先将资产移动到非Resource位置。您可以将资产移动到其他位置,但Addressable资产不能存储在项目的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.
译:在组窗口中选择一个或多个资产,然后右键单击(macOS:Cmd +单击)以打开上下文菜单,然后选择删除Addressables。您也可以选择资产,然后按Delete键将资产从组中删除。
Add or remove labels
Select one or more assets in the Groups window, then select the label field for one of the selected assets.
译:在组窗口中选择一个或多个资产,然后选择所选资产中的标签字段。

To assign labels, enable or disable the checkboxes for the desired labels.
译:要分配标签,请启用或禁用所需标签的复选框。
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.
译:要添加、删除或重命名标签,请选择加号按钮,然后选择“管理标签”。要仅添加新标签,请选择加号按钮,然后选择“新标签”。有关如何使用标签的更多信息,请参见Labels。
Group context menu
To open the Group context menu and access group-related commands, right-click (macOS: cmd + click) on a group name.
译:要打开组上下文菜单并访问与组相关的命令,请右键单击(macOS:cmd +单击)组名。

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.译:删除组 删除组并删除其关联的ScriptableObject资产。Unity将组中的任何资产还原为非可寻址资产。
Simplify Addressable NamesShortens the name of assets in the group by removing path-like components and extensions.译:简化可寻址名称 通过删除类似于路径的组件和扩展名来缩短组中资产的名称。
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.译:设置为默认值 将组设置为默认组。当您将资产标记为可寻址而不显式分配组时,Unity会将资产添加到默认组中。
Inspect Group SettingsSelects the group asset in the Unity Project window and in the Inspector window so that you can view the settings.译:检查组设置 选中Unity项目窗口中的组资产和检查器窗口,以便您可以查看设置。
RenameEnables you to edit the name of the group.译:重命名 允许您编辑组的名称。
Create New GroupCreates a new group based on a group template.译:创建新组 基于组模板创建新组。
Asset context menu
To open the Addressable Asset context menu and access asset-related commands, right-click (macOS: cmd + click) on an asset.
译:要打开可寻址资产上下文菜单并访问与资产相关的命令,请右键单击(macOS:cmd +单击)资产

Command Action
Move Addressables to GroupMove the selected assets to a different, existing group.译:将可寻址移动到组 将所选资产移动到另一个现有组。
Move Addressables to New GroupCreate a new group with the same settings as the current group and move the selected assets to it.译:将可寻址移动到新组 创建一个与当前组具有相同设置的新组,并将所选资产移动到该组。
Remove AddressablesRemove the selected asset(s) from the Group and make the asset(s) non-Addressable.译:删除可寻址 从组中删除所选资产,并使资产成为非可寻址资产。
Simplify Addressable NamesShortens the names of the selected assets by removing path-like components and extensions.译:简化可寻址名称 通过删除类似于路径的组件和扩展名来缩短所选资产的名称。
Copy Address to CLipboardCopies the asset's assigned address string to your system Clipboard.译:复制地址到剪贴板 将资产的分配地址字符串复制到系统剪贴板。
Change AddressEnables you to edit the asset's name.译:更改地址 允许您编辑资产的名称。
Create New GroupCreate a new group based on a group template. This doesn't move the selected assets.译:创建新组 基于组模板创建新组。这不会移动所选资产。