Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

AssetProviderEditor

class in Unity.Localization.Editor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Defines the editor-side companion to a runtime asset provider.

Providers load a collection's tables and shared data. The editor enumerates the collections a provider serves (discovery for the table window) and registers a collection's per-locale tables with the provider. Localized asset values live on the entries themselves, so there is no per-asset registry here. See IAssetEntry. The base implementation discovers collections by matching the provider id and performs no table registration, so override the registration hooks for a specific provider type.

Public Methods

Method Description
ClaimsPath Returns whether this provider should serve a collection saved at a given path.
ClearRegistrations Drops every table registration the provider holds.
CreateReference Creates the table reference to store when a collection is assigned to a localized reference.
EnumerateCollections Returns the collections assigned to a provider.
RegisterCollection Registers every per-locale table in a collection with a provider.
SetLocaleEnabled Adds or removes a locale's tables across the provider's collections when the locale is toggled.
UnregisterCollection Removes every per-locale table in a collection from a provider.

Protected Methods

Method Description
RegisterTable Registers a single per-locale table with the provider.
UnregisterTable Removes a single per-locale table from the provider.

Static Methods

Method Description
GuidTableAddress Returns the address a per-locale table is served under, keyed by the collection guid.
TableAddress Returns the address a per-locale table is served under, keyed by collection name.