0 votes

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?

asked Nov 20, 2019 in Projects by AiTechEye (101 points)
retagged Nov 20, 2019 by AiTechEye

1 Answer

0 votes
Best answer

Class documentation

just use getscriptclassname() and getscriptclassicon_path()

answered Nov 25, 2019 by blank (130 points)
selected Jan 9 by AiTechEye

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.