A method for use in objects that teleport.
This is called on a teleported node if HasMethod() returns true.
private static readonly StringName OnTeleportCallback = new("OnTeleport");
Example:
// Inside a node that teleports, implement the callback method.
private void OnTeleport(Portal3D portal)
{
// stuff here
}