What is the current behavior?
When using Unity Localization package features, the UnityLocalization.LineMetadata is not serialized and is missing the attribute [Metadata(AllowedTypes = MetadataType.SharedStringTableEntry)] preventing the metadata type from being added to entries.
Additionally, the UnityLocalisedLineProvider does not pull in Metadata from the yarn script file so there is currently no way to add metadata when using Unity Localization.
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
For the Localized Table Metadata issue:
Setup a project with unity localization package, and yarn experimental features on
Create a string table, and add entries to it.
Observe when you click the Edit Table Entry Metadata button the yarn spinner metadata type does not appear as an option
For the Yarn Spinner Metadata issue:
Setup a project with unity localization package, and yarn experimental features on
Write a yarn script that includes a custom tag
Run the game and notice the tag from the yarn script is not present in the localisedLine.Metadata
What is the expected behavior?
Users should be able to add this metadata type to 'shared entires'. User should be able to get MetaData from the yarn script.
This is fixed as of the upcoming v2.3 release; Line Metadata is now serialisable, appears in the table editor, and is delivered as part of the LocalizedLine.
What is the current behavior? When using Unity Localization package features, the
UnityLocalization.LineMetadata
is not serialized and is missing the attribute[Metadata(AllowedTypes = MetadataType.SharedStringTableEntry)]
preventing the metadata type from being added to entries. Additionally, the UnityLocalisedLineProvider does not pull in Metadata from the yarn script file so there is currently no way to add metadata when using Unity Localization.Please provide the steps to reproduce, and if possible a minimal demo of the problem: For the Localized Table Metadata issue:
Edit Table Entry Metadata
button the yarn spinner metadata type does not appear as an optionFor the Yarn Spinner Metadata issue:
What is the expected behavior? Users should be able to add this metadata type to 'shared entires'. User should be able to get MetaData from the yarn script.
Please tell us about your environment: