docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StringSink

    String sink class

    Inheritance
    object
    SinkSystemBase
    StringSink
    Implements
    IDisposable
    Inherited Members
    SinkSystemBase.SinkId
    SinkSystemBase.IsInitialized
    SinkSystemBase.Handle
    SinkSystemBase.SystemConfig
    SinkSystemBase.ScheduleUpdate(LogControllerScopedLock, JobHandle)
    SinkSystemBase.NeedsStackTrace()
    SinkSystemBase.SetMinimalLogLevel(LogLevel)
    SinkSystemBase.GetMinimalLogLevel()
    SinkSystemBase.OnSinkFatalError(FixedString512Bytes)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Logging.Sinks
    Assembly: Unity.Logging.dll
    Syntax
    [BurstCompile]
    public class StringSink : SinkSystemBase, IDisposable

    Methods

    AssertNoSinks()

    Debug assertion that makes sure there is no StringSinks

    Declaration
    public static void AssertNoSinks()

    Dispose()

    Dispose the sink

    Declaration
    public override void Dispose()
    Overrides
    SinkSystemBase.Dispose()

    GetString()

    Get everything that was written as a string

    Declaration
    public string GetString()
    Returns
    Type Description
    string

    String with all output in the sink

    Initialize(Logger, SinkConfiguration)

    Initialization of the sink using Logger and SinkConfiguration of this Sink

    Declaration
    public override void Initialize(Logger logger, SinkConfiguration systemConfig)
    Parameters
    Type Name Description
    Logger logger

    Logger that owns the sink

    SinkConfiguration systemConfig

    Configuration

    Overrides
    SinkSystemBase.Initialize(Logger, SinkConfiguration)

    ToSinkStruct()

    Creates LogController.SinkStruct

    Declaration
    public override LogController.SinkStruct ToSinkStruct()
    Returns
    Type Description
    LogController.SinkStruct

    SinkStruct

    Overrides
    SinkSystemBase.ToSinkStruct()

    Implements

    IDisposable
    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)