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?

in Engine by (195 points)
retagged by

1 Answer

0 votes
Best answer

Class documentation

just use getscriptclassname() and getscriptclassicon_path()

by (128 points)
selected by

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.