Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Get the name of the instance class — Gideros Forum

Get the name of the instance class

E1e5enE1e5en Member
edited July 2022 in General questions
Can I get a name? In the example below, the “assumed” class_name function
Player = Core.class (Sprite)
print(Player.class_name) // I want to get “Player”
local ins_player = Player.new()
print(ins_player.class_name) // I want to get “Player”
Now any output (including typeof) just outputs table.
Beginner game developer:https://e1e5en.itch.io, Google Play


Sign In or Register to comment.