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

Missing hint/suggestion for toggling visibility of a node #91612

Open
RakibRyan opened this issue May 6, 2024 · 3 comments
Open

Missing hint/suggestion for toggling visibility of a node #91612

RakibRyan opened this issue May 6, 2024 · 3 comments

Comments

@RakibRyan
Copy link

Tested versions

v4.2.2.stable.mono.official [15073af]

System information

Edition Windows 11 Pro Version 23H2 Installed on ‎13/‎03/‎2024 OS build 22631.3527 Experience Windows Feature Experience Pack 1000.22700.1003.0

Issue description

Screenshot 2024-05-06 153438

Steps to reproduce

.

Minimal reproduction project (MRP)

.

@AThousandShips
Copy link
Member

You need to add static typing to the variable, visible isn't a property of Node so isn't known here, to fix this use:

var got_node : RichTextLabel = get_node(...)

@KoBeWi
Copy link
Member

KoBeWi commented May 6, 2024

This should work even without type hint, but make sure you have a correct scene open, the script is attached in that scene and the path you are accessing exists.

@AThousandShips
Copy link
Member

AThousandShips commented May 6, 2024

It works for $ syntax, but not for get_node syntax

Seems like a duplicate of:

Though if the path is outside of an edited scene it won't work because of the limitations of the system and that it's simply impossible to know where it might be looking for, so unless the script is part of a larger scene where the target path is in the same scene it's unlikely to work even if that issue is fixed

@fire fire changed the title missing hint/suggestion for toggling visibility of a node Missing hint/suggestion for toggling visibility of a node May 6, 2024
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