How to create a class that inherits from CanvasItem using C#?

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

enter image description here
enter image description here
enter image description here

I’ve made the same using the class Node instead of CanvasItem and it’s working fine.

:bust_in_silhouette: Reply From: kelaia

I realized that some base classes (CanvasItem, BaseButton, Range…) can’t be created directly apparently. I believe it is some purposely imposed limitation.