Change to_utf8 to to_utf8_buffer and to_ascii to to_ascii_buffer in remaining docs
The method `to_utf8` doesn't exist in Godot 4, but is still mentioned in the documentation in some places. Replace it with the new name `to_utf8_buffer`. Same for ascii. Same for C#.
This commit is contained in:
@ -112,7 +112,7 @@
|
||||
socket = PacketPeerUDP.new()
|
||||
# Server
|
||||
socket.set_dest_address("127.0.0.1", 789)
|
||||
socket.put_packet("Time to stop".to_ascii())
|
||||
socket.put_packet("Time to stop".to_ascii_buffer())
|
||||
|
||||
# Client
|
||||
while socket.wait() == OK:
|
||||
@ -124,7 +124,7 @@
|
||||
var socket = new PacketPeerUDP();
|
||||
// Server
|
||||
socket.SetDestAddress("127.0.0.1", 789);
|
||||
socket.PutPacket("Time to stop".ToAscii());
|
||||
socket.PutPacket("Time to stop".ToAsciiBuffer());
|
||||
|
||||
// Client
|
||||
while (socket.Wait() == OK)
|
||||
|
||||
Reference in New Issue
Block a user