docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlatformOverride

    UnityEngine.Localization.Metadata that can be used to redirect the localization system to a different table entry based on the current runtime platform. This UnityEngine.Localization.Metadata can be applied to SharedTableData.SharedTableEntry, StringTableEntry or AssetTableEntry.

    Inheritance
    object
    PlatformOverride
    Implements
    IEntryOverride
    IMetadata
    ISerializationCallbackReceiver
    Namespace: UnityEngine.Localization.Metadata
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class PlatformOverride : IEntryOverride, IMetadata, ISerializationCallbackReceiver

    Methods

    Name Description
    AddPlatformEntryOverride(RuntimePlatform, TableEntryReference)

    Add a platform override for the current entry. This will use the same table collection but a different entry in the table than the one this Metadata is attached to. This is useful if you want to have overrides for entries that are stored in the same table.

    AddPlatformOverride(RuntimePlatform, TableReference, TableEntryReference, EntryOverrideType)

    Add a platform override for the table, entry or both.

    AddPlatformTableOverride(RuntimePlatform, TableReference)

    Add a platform override for the current table collection. This will result in the table being switched but the same entry name being used. This is useful if you want to have specialist tables that will implement the same keys for certain entries.

    GetOverride(out TableReference, out TableEntryReference)

    Returns the EntryOverrideType for the platform the application is currently running on using Application.platform.

    GetOverride(out TableReference, out TableEntryReference, RuntimePlatform)

    Returns the EntryOverrideType for the platform.

    RemovePlatformOverride(RuntimePlatform)

    Removes the platform override for the chosen platform.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)