AddLocalizedStrings(IEnumerable<StringTableEntry>)

Method in Localization

Summary

Adds a collection of strings to the runtime string table.

public void AddLocalizedStrings(IEnumerable<StringTableEntry> stringTableEntries)

Remarks

This method updates the localisation's runtime string table, which is useful for adding or changing the localisation during gameplay or in a built player. It doesn't modify the asset on disk, and any changes made will be lost when gameplay ends.

Parameters

NameDescription

strings

The collection of StringTableEntry objects to add.

System.Collections.Generic.IEnumerable<Yarn.Unity.StringTableEntry> stringTableEntries

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.