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

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

Unity_Addressable_Getting addresses at runtime(在運(yùn)行時(shí)獲取addresses )

2023-04-12 09:39 作者:unity_某某師_高錦錦  | 我要投稿

Getting addresses at runtime

By default, Addressables uses the address you assign to an asset as the?PrimaryKey?value of its?IResourceLocation?instance. (If you disable the?Include Addresses in Catalog?option of the Addressables group to which the asset belongs, the PrimaryKey could be a GUID, label, or an empty string.) If you want to get the address of an asset that you load with an AssetReference or label, you can first load the asset's locations, as described in?Loading Assets by Location. You can then use the IResourceLocation instance to both access the PrimaryKey value and to load the asset.

譯:默認(rèn)情況下,Addressables將您為資產(chǎn)分配的地址用作其IResourceLocation實(shí)例的PrimaryKey值。(如果禁用了所屬于資產(chǎn)的Addressables組中的Include Addresses in Catalog選項(xiàng),則PrimaryKey可能是GUID、標(biāo)簽或空字符串。)如果要獲取使用AssetReference或標(biāo)簽加載的資產(chǎn)的地址,可以首先加載資產(chǎn)的位置,如“按位置加載資產(chǎn)”所述。然后可以使用IResourceLocation實(shí)例來訪問PrimaryKey值和加載資產(chǎn)。

The following example gets the address of the asset assigned to an?AssetReference?object named?MyRef1:以下示例獲取分配給名為MyRef1的AssetReference對(duì)象的資產(chǎn)的地址:

譯:

Labels often refer to multiple assets. The following example illustrates how to load multiple Prefab assets and use their primary key value to add them to a dictionary:

譯:標(biāo)簽通常引用多個(gè)資產(chǎn)。以下示例說明如何加載多個(gè)Prefab資產(chǎn)并使用它們的主鍵值將它們添加到字典中:



Unity_Addressable_Getting addresses at runtime(在運(yùn)行時(shí)獲取addresses )的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
黔西| 宁阳县| 扎鲁特旗| 万年县| 东阿县| 莱芜市| 河津市| 达日县| 金堂县| 尉氏县| 增城市| 泸水县| 嘉禾县| 金坛市| 广西| 乐业县| 阜南县| 于都县| 乌拉特中旗| 南郑县| 平泉县| 板桥市| 炎陵县| 吉木乃县| 新昌县| 莱州市| 九龙城区| 临城县| 绥德县| 霍山县| 荥阳市| 菏泽市| 潮州市| 贺州市| 四子王旗| 青神县| 济宁市| 剑阁县| 衡南县| 铜陵市| 柞水县|