From 3ed7dedb0b6027f886c2b412539b423a361fe6c5 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Thu, 16 May 2024 00:37:40 +0200 Subject: [PATCH] Add error message on plugin enable --- plugin.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin.gd b/plugin.gd index 5e85f71..8c6f4f1 100644 --- a/plugin.gd +++ b/plugin.gd @@ -3,3 +3,7 @@ extends EditorPlugin var icon_unknown: Texture2D = ImageTexture.create_from_image(RenderingServer.texture_2d_get (RenderingServer.get_white_texture())) + +func _enter_tree() -> void: + if !DirAccess.dir_exists_absolute("res://addons/SUI"): + printerr("StarOpenSource UI is not installed in this project. Functionality will be limited.")