what's the Script item in the "Extra Call Arguments" used for when connect a signal by editor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alexzheng
:warning: Old Version Published before Godot 3 was released.

When connect a signal by editor, there is an option to add extra call argument, but only const values can be passed in, we can not bind nodes or variable define in script.
But I see there is a script item in the list, what’s it used for ?

I don’t see a Script item.
I only see:

  • bool
  • int
  • real
  • string
  • Vector2
  • Rect2
  • Vector3
  • Plane
  • Quat
  • AABB
  • Matrix3
  • Transform
  • Color
  • Image

Also, I believe it’s possible to use variables defined in script, but only if you connect the signal from script.

Zylann | 2017-06-26 12:45

I’am playing with the 3.0, maybe it’s a new feature to bind variables and nodes that has not fully implemented yet.

alexzheng | 2017-06-26 12:55

@Zylann
yes, I expect it’ll be possible to bind variables by editor.

alexzheng | 2017-06-26 13:05