docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method LogError

    LogError(string)

    Write an error level log message.

    Declaration
    public static void LogError(string msg)
    Parameters
    Type Name Description
    string msg

    The msg to log

    Remarks

    LogError can be used to write an Error message. LogError works the same way as LogError(object). Addressables logs warnings and errors so by default this function will log.

    Examples
    public void UsingLogErrorSample()
      {
        Addressables.LogError("Unable to load asset bundle");
    }
    See Also
    Enable all logging
    In This Article
    Back to top
    Copyright © 2025 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)