+1 vote

Instead of making a new function I've tried using a property's setter function in a Godot Signal callback

    Godot.Collections.Array sigParams = new Godot.Collections.Array();
    sigParams.Add(false);
    LifespanTimer.Connect("timeout", this, nameof(PropName), sigParams);

However, this is throwing the error

E 0:00:01:0790   Error calling method from signal 'timeout': 'Node2D(SceneFile.tscn)::PropName': Method not found.
  <C Source>     core/object.cpp:1239 @ emit_signal()

So I guess I need a new function, unless there's another name for these setter functions.

in Engine by (692 points)
edited by

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.