Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

On-Screen Logger

An asset by SchimmelSpreu83
The page banner background of a mountain and forest
On-Screen Logger thumbnail image
On-Screen Logger thumbnail image
On-Screen Logger hero image

Quick Information

0 ratings
On-Screen Logger icon image
SchimmelSpreu83
On-Screen Logger

A logger that displays any message on screen. Useful for printing debugging messages when you don't want to print the message into the log.

Supported Engine Version
4.2
Version String
0.5.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

On-Screen Logger

A logger that displays any message on screen. Useful for printing debugging messages when you don't want to print the message into the log.

Usage Examples:

# Printing when something happens.
func set_coins(value: int) -> void:
    coins = value
    Logger.print_msg(str("Coins: ", coins))


# Printing something every process-frame.
func _process(delta: float) -> void:
    Logger.print_msgf(str(delta))


# Printing a PathFollow(2D/3D)'s 'progres' value every physics-frame in orange.
func _physics_process(delta: float) -> void:
    Logger.print_msgf(str("Path-Progress", progress), true, Color.ORANGE)


# Printing something on-screen and in the output panel
# with the default duration (-1.0 -> 5 seconds).
Logger.print_msg("[color=orange]Loading finished[/color]", -1.0, Logger.ErrTypes.NORMAL_RICH)


# Printing an Error 10 seconds long (Also prints it into debugger and output panel).
Logger.print_msg(str("Critical Error! Code: ", err), 10.0, Logger.ErrTypes.ERROR)


# Printing a Warning (Also prints it into godot's debugger and output panel).
Logger.print_msg("No scene path defined. Using default scene path.", -1.0, Logger.ErrTypes.WARNING)

Implementation: Output:

A logger that displays any message on screen. Useful for printing debugging messages when you don't want to print the message into the log.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
On-Screen Logger icon image
SchimmelSpreu83
On-Screen Logger

A logger that displays any message on screen. Useful for printing debugging messages when you don't want to print the message into the log.

Supported Engine Version
4.2
Version String
0.5.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers