docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IFormatter

    Converts an object to a string.

    Namespace: UnityEngine.Localization.SmartFormat.Core.Extensions
    Assembly: Unity.Localization.dll
    Syntax
    public interface IFormatter

    Properties

    Name Description
    Names

    An extension can be explicitly called by using any of its names. Any extensions with "" names will be called implicitly (when no named formatter is specified). For example, "{0:default:N2}" or "{0:d:N2}" will explicitly call the "default" extension. "{0:N2}" will implicitly call the "default" extension (and other extensions, too).

    Methods

    Name Description
    TryEvaluateFormat(IFormattingInfo)

    Writes the current value to the output, using the specified format. IF this extension cannot write the value, returns false, otherwise true.

    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)