getting class_name and icon?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AiTechEye

im making a plugin, that lists all game/project objects (scenes), and i need to get the class_name and icon from the scenes instead of messing with files.

to be clear, get:

class_name name,"picture.png"

for example:

var scene = load("res://scene.tscn").instance()
var icon = scene.get_class_icon()
var name = scene.get_class_name()

is it possbale at all?

:bust_in_silhouette: Reply From: blank

Class documentation

just use get_script_class_name() and get_script_class_icon_path()

how?
i do not have any experience of the nativescript.

AiTechEye | 2019-11-25 15:48