_ready() is not called until the node is in the scene tree after add_child is called. You need to add the node to the tree before calling the function.
Nope, that’s doesn’t work.
Btw function called by signal.
I’m tried to make an instance and pass into it, but no. Instance was made in _ready() of CanvasLayer and stored in variable, but still no.