Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

NullLogger

The standard logger that is used when logging isn't necessary. This exists so that you don't have to null check every single instance of the logger.
public class NullLogger : ILogger

Inherits from System.Object

Implements Yarn.Shared.ILogger

You do not make your own instances of this but instead use the static Default instance.

#Properties

#Default

The default and only instance of the logger, if you are using this class you want to use this
public static NullLogger Default { get; }

Type NullLogger

#Methods

#Dec()

Decrement the current depth of the logger
public void Dec()

Returns Void

#Inc()

Increment the current depth of the logger
public void Inc()

Returns Void

#WriteException(Exception, string?)

public void WriteException(Exception ex, string? message = null)

Parameters

  • exException
  • messagestring?

Returns Void

#WriteLine(object)

The standard "write a single line containing the value" of a logger.
public void WriteLine(object obj)

Parameters

  • objobject
    The value to be written, will generally always be a string

Returns Void

This line should be indented by the current depth of the logger

Generated from Yarn Spinner for Unity 3.3.