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

JsonResourceProvider

class in Unity.Localization.Providers.FileTables

/

Inherits from:Unity.Localization.Providers.FileTables.FileTableProvider

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

A file table provider that reads tables from JSON, the default player format.

Assign a collection to this provider to have its tables generated to JSON at build time and read back at runtime through JsonTableReader. Add it to the asset provider chain the same way as any other FileTableProvider.

Additional resources: FileTableProvider, JsonTableReader

Inherited Members

Properties

PropertyDescription
Collections The collections this provider serves.
FileExtension The file extension the format uses, without the leading dot.
PlayMode What this provider serves in the editor when entering Play Mode.
Reader Reads a table snapshot from a file in this provider's format.
SubPath The subfolder within StreamingAssets the files are placed in, customizable per provider.

Public Methods

MethodDescription
AddCollection Records a collection so its addresses resolve at runtime.
ClearCollections Removes every collection this provider serves.
RemoveCollection Removes a collection so this provider no longer serves its addresses.

Static Methods

MethodDescription
FileName The file name a table is stored under, with characters invalid in a file name replaced.