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

_init() not work in visual script #32765

Open
jihot2000 opened this issue Oct 12, 2019 · 3 comments
Open

_init() not work in visual script #32765

jihot2000 opened this issue Oct 12, 2019 · 3 comments

Comments

@jihot2000
Copy link

Godot version: Godot 3.2 alpha2

OS/device including version: Ubuntu 18.04 LTS x86_64

Issue description: _init() not work in visual script

Steps to reproduce:
Create a simple visual script like:
init_bug_screenshot

Nothing was printed in the output tab when running.

I also tried to assign a value to a member variable in _init(). But I found its value was not changed when I printed in _ready() function.

Minimal reproduction project:

@fire
Copy link
Member

fire commented Oct 12, 2019

Can you use _ready() for your purposes?

@jihot2000
Copy link
Author

Can you use _ready() for your purposes?

Yes. I've moved the init logic to _ready(). It took me some time to find this issue. I think the _init() bug should be fixed for completeness of visual script.

@KoBeWi
Copy link
Member

KoBeWi commented Oct 20, 2020

Still valid in 207cfc9

@KoBeWi KoBeWi added this to the 3.x milestone Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants