Add error message on plugin enable

This commit is contained in:
JeremyStar™ 2024-05-16 00:37:40 +02:00
parent 9b9d2e47d9
commit 3ed7dedb0b
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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.")