Merge pull request #74731 from brettchalupa/patch-1

Fix CharacterBody2D get_slide_collision docs
This commit is contained in:
Yuri Sizov 2023-03-15 13:37:51 +01:00 committed by GitHub
commit d9bd6a359a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,8 @@
[codeblocks]
[gdscript]
for i in get_slide_collision_count():
var collision = get_slide_collision(i)
print("Collided with: ", collision.collider.name)
var collision = get_slide_collision(i)
print("Collided with: ", collision.get_collider().name)
[/gdscript]
[csharp]
for (int i = 0; i < GetSlideCollisionCount(); i++)