venus/plugin.gd

9 lines
341 B
GDScript

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