Custom component creation using a base component

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlexIva

Hello everyone,

Could you please prompt me:

  1. how can I create my own component (f.e. customButton) using base Godot button
  2. how can I add it to Godot UI list.

Thank you in advance

:bust_in_silhouette: Reply From: Inces

right after extends Button line in your created script, enter :
class_name yournamehere

and save this script. Now yournamehere is visible in node choice in editors UI