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

Csharp Console

An asset by moliko
The page banner background of a mountain and forest
Csharp Console hero image

Quick Information

0 ratings
Csharp Console icon image
moliko
Csharp Console

Developer console. Press ~ to activate it in game and execute commands.Based on jitspoe console(static methods are not supported yet)

Supported Engine Version
4.3
Version String
1.0.3
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Csharp-Console-Godot

original project: Godot Console

example:

using Godot;
public partial class Example : Node
{
    public override void _Ready()
    {
        CommandConsole.AddCommand("print", Print);
        CommandConsole.AddCommandDescription("print", "Prints the given text in the console.");
        CommandConsole.AddParameterDescription(CommandName: "print", param:"text", description:"The text to print.");

        CommandConsole.AddCommand("heloworld", HelloWorld);
        CommandConsole.AddCommandDescription("heloworld", "Prints 'Hola Mundo!' in the console.");
    }

    void Print(string text)
    {
        GD.Print(text);
    }

    void HelloWorld()
    {
        GD.PrintErr("Hola Mundo!");
    }

    //also you can add the Attribute
    [AddCommand("testing"), AddCommandDescription("[color=red]Prints on GD Console[/color]")]
    public void testing(string text)
    {
        GD.Print(text);
    }
}

in game run with:

test "testing the example" => set testing the example as param value

test testing the example => set testing the example as params values

test "testing the" example => set testing the example as params

README image

command_list command:

README image

print example:

README image

all with a maximum of 16 params.

Developer console.
Press ~ to activate it in game and execute commands.

Based on jitspoe console

(static methods are not supported yet)

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
Csharp Console icon image
moliko
Csharp Console

Developer console. Press ~ to activate it in game and execute commands.Based on jitspoe console(static methods are not supported yet)

Supported Engine Version
4.3
Version String
1.0.3
License Version
MIT
Support Level
community
Modified Date
1 year 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