Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion not working on children #64477

Closed
kadincool opened this issue Aug 16, 2022 · 1 comment · Fixed by #65712
Closed

Autocompletion not working on children #64477

kadincool opened this issue Aug 16, 2022 · 1 comment · Fixed by #65712

Comments

@kadincool
Copy link

kadincool commented Aug 16, 2022

Godot version

v4.0.alpha14.official [106b680]

System information

Windows 10

Issue description

when running functions in a child defined in a variable, it should autofill functions specific to that child type (e.g. move_and_slide for a character body)

Steps to reproduce

  1. create a node
  2. add a kinematic body with a collider child
  3. to the first node, attach an empty script and add:
    @onready var child := $CharacterBody3D
    #effect child by gravity
    func _physics_process(delta):
    child.velocity.y -= 9.8 * delta
    child.move_and_slide()
    when typing child.velocity.y -= 9.8 * delta and child.move_and_slide(), it does not autofill the appropriate functions "velocity" and "move_and_slide()" nor understand that velocity is a vector when they are part of a child variable

Minimal reproduction project

No response

@KoBeWi
Copy link
Member

KoBeWi commented Aug 16, 2022

Seems like combination of #53318 and #44480

@Calinou Calinou changed the title intellisense not working on children Autocompletion not working on children Aug 16, 2022
@akien-mga akien-mga added this to the 4.0 milestone Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants