i18n_get_ref_asset()

Internal The i18n_get_ref_asset() function is used to track and get the valid reference you created using the i18n_create_ref_asset() function.

This function can only be used after the i18n_create() function is called.

Syntax

Usage
i18n_get_ref_asset(index, [i18n]);
Signature
function i18n_get_ref_asset(
    index: number,
    i18n?: I18n | boolean               // default = false (using global i18n struct)
): Instance | Struct | "global"

Parameters

NameTypeDefaultDescription
indexNumberThe index of the reference you want to get.
i18nBoolean | I18nfalseThe i18n struct reference, or leave it empty to use the global i18n struct.

Returns

Instance, Struct, or "global"


This function is used internally by thei18n_update_refs()function. You don't need to use this function directly, unless you know what you're doing.
Table of Contents