Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | thiagola92 |
When i write a script logic like:
class_name First
extends Node2D
func method_a() -> void:
pass
func method_b() -> void:
pass
First
appears as option when adding nodes to the scene but when you do so, the script comes with the node (not like the core nodes that the logic its hidden).
My solution right now is to always warn user that this script is only to be used with extends
but i don’t like it because gives to much opportunity for the user use wrongly.
There is a simple way to hide my code from the user?
Real code: