docs.unity.cn
    Show / Hide Table of Contents

    Method LogWarningFormat

    LogWarningFormat(String, Object[])

    LogFormat can be used to write a formatted log message.

    Declaration
    public static void LogWarningFormat(string format, params object[] args)
    Parameters
    Type Name Description
    String format

    The string with format tags.

    Object[] args

    The args used to fill in the format tags.

    Remarks

    LogWarningFormat supports Composite Formatting and works the same way as Debug.LogWarningFormat. Addressables logs warnings and errors so by default this function will log.

    Examples
                Addressables.LogWarningFormat("{0:o}[{1}]Operation took longer than 1 minute", DateTime.Now, this.GetType().Name);
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 26, 2023