If there is no such function

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ramazan
func _ready():
  example()  # func name

There is no function named "example() ".
If this function is not available, do something else.

:bust_in_silhouette: Reply From: DaddyMonster
if not has_method("example"):
    print("no such method")

thank you very much

ramazan | 2022-01-21 13:21

Most welcome.

DaddyMonster | 2022-01-21 20:25

:bust_in_silhouette: Reply From: Natimodel

Unfortunately, I can’t help you with this issue.