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

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

Unity_Addressable_Modification events

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

Modification events are used to signal to parts of the Addressables system when certain data is manipulated, such as an?AddressableAssetGroup?or an?AddressableAssetEntry?getting added or removed.

譯:修改事件用于向Addressables系統(tǒng)的某些部分發(fā)出信號,以指示特定數(shù)據(jù)是否被操作,例如添加或刪除AddressableAssetGroup或AddressableAssetEntry。

Modification events are triggered as part of?SetDirty?calls inside of Addressables.?SetDirty?is used to indicate when an asset needs to be re-serialized by the?AssetDatabase. As part of this?SetDirty, two modification event callbacks can trigger:

譯:修改事件作為Addressables中SetDirty調(diào)用的一部分觸發(fā)。 SetDirty用于指示需要重新序列化AssetDatabase的資產(chǎn)。作為SetDirty的一部分,可以觸發(fā)兩個修改事件回調(diào):

which can be found on?AddressableAssetSettings?through a static, or instance, accessors respectively.

譯:可以通過靜態(tài)或?qū)嵗L問器在AddressableAssetSettings中找到它們。

Code Samples

Modification events pass in a generic?object?for the data associated with the event. Below is a list of the modification events and the data types that are passed with them.

譯:修改事件傳入與事件相關(guān)聯(lián)的通用對象。以下是修改事件及其傳遞的數(shù)據(jù)類型列表。

The Data Passed with Each ModificationEvent:

  • GroupAdded The data passed with this event is the?AddressableAssetGroup, or list of groups, that were added.譯:GroupAdded 傳遞的數(shù)據(jù)是添加的AddressableAssetGroup或組列表。

  • GroupRemoved The data passed with this event is the?AddressableAssetGroup, or list of groups, that were removed.譯:GroupRemoved 傳遞的數(shù)據(jù)是已刪除的AddressableAssetGroup或組列表。?

  • GroupRenamed The data passed with this event is the?AddressableAssetGroup, or list of groups, that were renamed.譯:GroupRenamed 傳遞的數(shù)據(jù)是已重命名的AddressableAssetGroup或組列表。

  • GroupSchemaAdded The data passed with this event is the?AddressableAssetGroup, or list of groups, that had schemas added to them.譯:GroupSchemaAdded 傳遞的數(shù)據(jù)是已向其添加模式的AddressableAssetGroup或組列表。

  • GroupSchemaRemoved The data passed with this event is the?AddressableAssetGroup, or list of groups, that had schemas removed from them.譯:GroupSchemaRemoved 傳遞的數(shù)據(jù)是從中刪除模式的AddressableAssetGroup或組列表。

  • GroupSchemaModified The data passed with this event is the?AddressableAssetGroupSchema?that was modified.譯:GroupSchemaModified 傳遞的數(shù)據(jù)是已修改的AddressableAssetGroupSchema。

  • GroupTemplateAdded The data passed with this event is the?ScriptableObject, typically one that implements?IGroupTemplate, that was the added Group Template object.譯:GroupTemplateAdded 傳遞的數(shù)據(jù)是已添加的ScriptableObject,通常實現(xiàn)了IGroupTemplate的Group Template對象。

  • GroupTemplateRemoved The data passed with this event is the?ScriptableObject, typically one that implements?IGroupTemplate, that was the removed Group Template object.譯:GroupTemplateRemoved 傳遞的數(shù)據(jù)是已刪除的ScriptableObject,通常實現(xiàn)了IGroupTemplate的Group Template對象。

  • GroupTemplateSchemaAdded The data passed with this event is the?AddressableAssetGroupTemplate?that had a schema added.譯:GroupTemplateSchemaAdded 傳遞的數(shù)據(jù)是已添加其模式的AddressableAssetGroupTemplate。

  • GroupTemplateSchemaRemoved The data passed with this event is the?AddressableAssetGroupTemplate?that had a schema removed.譯:GroupTemplateSchemaRemoved 傳遞的數(shù)據(jù)是已刪除其模式的AddressableAssetGroupTemplate。

  • EntryCreated The data passed with this event is the?AddressableAssetEntry?that was created.譯:EntryCreated 傳遞的數(shù)據(jù)是已創(chuàng)建的AddressableAssetEntry。

  • EntryAdded The data passed with this event is the?AddressableAssetEntry, or list of entries, that were added.譯:EntryAdded 傳遞的數(shù)據(jù)是已添加的AddressableAssetEntry或條目列表。

  • EntryMoved The data passed with this event is the?AddressableAssetEntry, or list of entries, that were moved from one group to another.譯:EntryMoved 傳遞的數(shù)據(jù)是已從一個組移動到另一個組的AddressableAssetEntry或條目列表。

  • EntryRemoved The data passed with this event is the?AddressableAssetEntry, or list of entries, that were removed.譯:EntryRemoved 傳遞的數(shù)據(jù)是已刪除的AddressableAssetEntry或條目列表。

  • LabelAdded The data passed with this event is the?string?label that was added.譯:LabelAdded 傳遞的數(shù)據(jù)是已添加的字符串標(biāo)簽

  • LabelRemoved The data passed with this event is the?string?label that was removed.譯:LabelRemoved 傳遞的數(shù)據(jù)是已刪除的字符串標(biāo)簽。

  • ProfileAdded The data passed with this event is [BuildProfile] that was added.譯:ProfileAdded 傳遞的數(shù)據(jù)是已添加的[BuildProfile]。

  • ProfileRemoved The data passed with this event is the?string?of the profile ID that was removed.譯:ProfileRemoved 傳遞的數(shù)據(jù)是已刪除的配置文件ID的字符串。

  • ProfileModified The data passed with this event is [BuildProfile] that was modified, or?null?if a batch of?BuildProfiles?were modified.譯:ProfileModified 傳遞的數(shù)據(jù)是已修改的[BuildProfile],如果批量修改了BuildProfiles,則為null。

  • ActiveProfileSet The data passed with this event if the?string?of the profile ID that is set as the active profile.譯:ActiveProfileSet 如果設(shè)置了活動配置文件,則傳遞的數(shù)據(jù)為空串的配置文件ID。

  • EntryModified The data passed with this event is the?AddressableAssetEntry, or list of entries, that were modified.譯:EntryModified 傳遞的數(shù)據(jù)是已修改的AddressableAssetEntry或條目列表。

  • BuildSettingsChanged The data passed with this event is the?AddressableAssetBuildSettings?object that was modified.譯:BuildSettingsChanged 傳遞的數(shù)據(jù)是已修改的AddressableAssetBuildSettings對象。

  • ActiveBuildScriptChanged The data passed with this event is the?IDataBuilder?build script that was set as the active builder.譯:ActiveBuildScriptChanged 傳遞的數(shù)據(jù)是設(shè)置為活動構(gòu)建器的IDataBuilder構(gòu)建腳本。

  • DataBuilderAdded The data passed with this event is the?ScriptableObject, typically one that implements?IDataBuilder, that was added to the list of DataBuilders.譯:DataBuilderAdded 傳遞的數(shù)據(jù)是已添加到DataBuilders列表中的ScriptableObject,通常實現(xiàn)了IDataBuilder。

  • DataBuilderRemoved The data passed with this event is the?ScriptableObject, typically one that implements?IDataBuilder, that was removed from the list of DataBuilders.譯:DataBuilderRemoved 傳遞的數(shù)據(jù)是從DataBuilders列表中刪除的ScriptableObject,通常實現(xiàn)了IDataBuilder。

  • InitializationObjectAdded The data passed with this event is the?ScriptableObject, typically one that implements?IObjectInitializationDataProvider, that was added to the list of InitializationObjects.譯:InitializationObjectAdded 傳遞的數(shù)據(jù)是已添加到InitializationObjects列表中的ScriptableObject,通常實現(xiàn)了IObjectInitializationDataProvider。

  • InitializationObjectRemoved The data passed with this event is the?ScriptableObject, typically one that implements?IObjectInitializationDataProvider, that was removed from the list of InitializationObjects.譯:InitializationObjectRemoved 傳遞的數(shù)據(jù)是從InitializationObjects列表中刪除的ScriptableObject,通常實現(xiàn)了IObjectInitializationDataProvider。

  • ActivePlayModeScriptChanged The data passed with this event is the?IDataBuilder?that was set as the new active play mode data builder.譯:ActivePlayModeScriptChanged 傳遞的數(shù)據(jù)是設(shè)置為新的活動播放模式數(shù)據(jù)構(gòu)建器的IDataBuilder。

  • BatchModification The data passed with this event is?null. This event is primarily used to indicate several modification events happening at the same time and the?AddressableAssetSettings?object needed to be marked dirty.譯:BatchModification 傳遞的數(shù)據(jù)為空。此事件主要用于指示同時發(fā)生多個修改事件,并且需要將Addressable

  • HostingServicesManagerModified The data passed is either going to be the?HostingServicesManager, or the?HttpHostingService?that were modified.譯:HostingServicesManagerModified 傳遞的數(shù)據(jù)可能是已修改的 HostServicesManager 或 HttpHostingService。

  • GroupMoved The data passed with this event is the full list of?AddressableAssetGroups.譯:GroupMoved 此事件傳遞的數(shù)據(jù)是 AddressableAssetGroups 的完整列表。

  • CertificateHandlerChanged The data passed with this event is the new?System.Type?of the Certificate Handler to be used.譯:CertificateHandlerChanged 此事件傳遞的數(shù)據(jù)是要使用的新證書處理程序的 System.Type。







Unity_Addressable_Modification events的評論 (共 條)

分享到微博請遵守國家法律
肇州县| 保德县| 甘泉县| 沅陵县| 衡山县| 钦州市| 余庆县| 高州市| 望城县| 平江县| 临沂市| 文成县| 宁阳县| 安庆市| 通山县| 临安市| 宿州市| 临沭县| 商都县| 绩溪县| 鄄城县| 东港市| 乌拉特后旗| 左贡县| 资溪县| 石城县| 东台市| 陈巴尔虎旗| 固始县| 吕梁市| 化德县| 杭州市| 宜丰县| 临安市| 梁山县| 罗城| 确山县| 保亭| 双鸭山市| 明星| 宕昌县|