From Godot 3.x to 4.x, has there been any modification to string.right()?
I cannot get the value of right(0) in 4.x, whereas it was possible in 3.x.
current_path = “Idle”
return current_path.right(current_path.rfind("/") + 1)
//return "Idle" in v3.5.2 but return "" in v4.0.3
This problem affects the return value of get_current_end() in StateDirectory.gd, making it impossible for me to get in any state using the way of match to_dir.next() just like the demo.
Sorry to bother you.
From Godot 3.x to 4.x, has there been any modification to
string.right()
? I cannot get the value ofright(0)
in 4.x, whereas it was possible in 3.x.This problem affects the return value of
get_current_end()
inStateDirectory.gd
, making it impossible for me to get in any state using the way ofmatch to_dir.next()
just like the demo.