This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm trying to retrieve the instance 'attached' to a FuncRef.
Is it possible through GDScript ?

Looking in the doc, it only have one uninherited attribute: function.
Looking in the Godot source (C++ side), FuncRef have an id attribute, that reference the instance.
But I don't know enough about GDScript interpretation to know if this id is available to me, or even if I should use it.

I could obviously create my own object that store a FuncRefand the corresponding instance, but it seems not right as I know the data is somewhere over there.

Godot version 3.3.2
in Engine by (20 points)

Please log in or register to answer this question.

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 [email protected] with your username.