Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FileName(string, string, string)

The file name a table is stored under, with characters invalid in a file name replaced.
Read time 1 minuteLast updated 13 days ago

Definition

public static string FileName(string collectionName, string localeCode, string extension)

Parameters

collectionName

The collection name.

localeCode

The locale code.

extension

The file extension without the leading dot.

Returns

Type

Description

stringThe file name the table is stored under.

Remarks

The form is
{collectionName}_{localeCode}.{extension}
. The locale code is lowercased, so a table authored as
pt-BR
and a locale requesting
pt-br
resolve to the same file on case-sensitive file systems.