Add error message on plugin enable
This commit is contained in:
parent
9b9d2e47d9
commit
3ed7dedb0b
1 changed files with 4 additions and 0 deletions
|
@ -3,3 +3,7 @@ extends EditorPlugin
|
||||||
|
|
||||||
var icon_unknown: Texture2D = ImageTexture.create_from_image(RenderingServer.texture_2d_get
|
var icon_unknown: Texture2D = ImageTexture.create_from_image(RenderingServer.texture_2d_get
|
||||||
(RenderingServer.get_white_texture()))
|
(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.")
|
||||||
|
|
Loading…
Reference in a new issue