We have redirected you to our new domain: store.godotengine.org. Please update your bookmarks!

Description
Changelog
Reviews

Ura Kata (裏方): A modest, modal REPL for Godot.

Usage

Ura Kata provides multiple interactive modes. When the input line is empty, typing a specific single character switches the current mode.

  • Default: Code mode
  • ; switches to Shell mode

Code mode (default)

code> 1 + 1
=> 2

code> var x = 1
=> null

code> x
=> 1

code> sin(x)
=> 0.8414709848079

code> func foo(): return 'foo!'
=> null

code> foo()
=> 'foo!'

code> EditorInterface
=> <EditorInterface#11072962786>

code> EditorInterface.get_editor_scale()
=> 2.0

To reset the execution environment, type reload!.

code> x
=> 1

code> reload!
Reloaded.

code> x
ERROR: Invalid named index 'x' for base type Object
ERROR: gdscript://-9223352824325131985.gd:2 - Parse Error: Identifier "x" not declared in the current scope.
=> <null>

You also have access to several utility variables and helper methods.

# `current` returns the root node of the currently edited scene.
code> current
=> REPL:<HBoxContainer#1741055663592>

# `ls` shows a combined list of `Engine.get_singleton_list()` and `ProjectSettings.get_global_class_list()`.
code> ls
Performance                Engine                     ProjectSettings        OS                        Time
TextServerManager          NavigationServer2DManager  PhysicsServer2DManager NavigationServer3DManager PhysicsServer3DManager
NavigationMeshGenerator    IP                         Geometry2D             Geometry3D                ResourceLoader
ResourceSaver              ClassDB                    Marshalls              TranslationServer         Input
InputMap                   EngineDebugger             GDExtensionManager     ResourceUID               WorkerThreadPool
ThemeDB                    EditorInterface            JavaClassWrapper       JavaScriptBridge          AudioServer
CameraServer               DisplayServer              NativeMenu             RenderingServer           NavigationServer2D
NavigationServer3D         PhysicsServer2D            PhysicsServer3D        XRServer                  GDScriptLanguageProtocol
GDScriptInteractiveSession GutErrorTracker            GutHookScript          GutInputFactory           GutInputSender
GutMain                    GutStringUtils             GutTest                GutTestMeta               GutTrackedError
GutUtils                   Helper                     Urakata                UrakataCodeMode           UrakataMode
UrakataShellMode 
=> <null>

# `ls target` shows the methods of a given target.
code> ls current
HBoxContainer
  void free()                         String get_class()           void submit()       void linebreak()
  void clear_prompt()                 void remove_following_text() void history_back() void history_forward()
  void change_mode(mode: UrakataMode) 
=> <null>

Shell mode (;)

shell> ls
addons
dev
icon.svg
icon.svg.import
images
LICENSE
project.godot
Rakefile
README.md
test
tmp

Changelog for version v0.1.2

No changelog provided for this version.

Reviews (0)

Ura Kata has no reviews yet.

Login to write a review.