Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DebugTextSystem Class

    Namespace: Stride.Profiling
    Assembly: Stride.Engine.dll
    System.Object → DisposeBase → ComponentBase → GameSystemBase → DebugTextSystem
    Derived from DebugTextSystem:

    public class DebugTextSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
    Name Description
    Constructors
    DebugTextSystem(IServiceRegistry)
    Properties
    TailSize

    Sets or gets the size of the messages queue, older messages will be discarded if the size is greater.

    TextColor

    Sets or gets the color to use when drawing the profiling system fonts.

    Methods
    Draw(GameTime)
    Print(String, Int2)

    Print a custom overlay message

    Print(String, Int2, Color4)

    Print a custom overlay message

    Update(GameTime)
    | Improve this Doc View Source

    Constructors


    DebugTextSystem(IServiceRegistry)

    public DebugTextSystem(IServiceRegistry registry)
    Parameters
    Type Name Description
    IServiceRegistry registry
    | Improve this Doc View Source

    Properties


    TailSize

    Sets or gets the size of the messages queue, older messages will be discarded if the size is greater.

    public int TailSize { get; set; }
    Property Value
    Type Description
    System.Int32

    TextColor

    Sets or gets the color to use when drawing the profiling system fonts.

    public Color4 TextColor { get; set; }
    Property Value
    Type Description
    Color4
    | Improve this Doc View Source

    Methods


    Draw(GameTime)

    public override void Draw(GameTime gameTime)
    Parameters
    Type Name Description
    GameTime gameTime
    Overrides
    GameSystemBase.Draw(GameTime)

    Print(String, Int2)

    Print a custom overlay message

    public void Print(string message, Int2 position)
    Parameters
    Type Name Description
    System.String message
    Int2 position

    Print(String, Int2, Color4)

    Print a custom overlay message

    public void Print(string message, Int2 position, Color4 color)
    Parameters
    Type Name Description
    System.String message
    Int2 position
    Color4 color

    Update(GameTime)

    public override void Update(GameTime gameTime)
    Parameters
    Type Name Description
    GameTime gameTime
    Overrides
    GameSystemBase.Update(GameTime)

    Inherited Members

    GameSystemBase.Game
    GameSystemBase.Services
    GameSystemBase.Content
    GameSystemBase.GraphicsDevice
    GameSystemBase.DrawOrderChanged
    GameSystemBase.VisibleChanged
    GameSystemBase.BeginDraw()
    GameSystemBase.EndDraw()
    GameSystemBase.Visible
    GameSystemBase.DrawOrder
    GameSystemBase.Initialize()
    GameSystemBase.InitGraphicsDeviceService()
    GameSystemBase.EnabledChanged
    GameSystemBase.UpdateOrderChanged
    GameSystemBase.Enabled
    GameSystemBase.UpdateOrder
    GameSystemBase.OnDrawOrderChanged(Object, EventArgs)
    GameSystemBase.OnUpdateOrderChanged(Object, EventArgs)
    GameSystemBase.IContentable.LoadContent()
    GameSystemBase.IContentable.UnloadContent()
    GameSystemBase.LoadContent()
    GameSystemBase.UnloadContent()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.Destroy()
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation