Giter VIP home page Giter VIP logo

Comments (3)

AThousandShips avatar AThousandShips commented on May 31, 2024 3

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

from godot.

AThousandShips avatar AThousandShips commented on May 31, 2024

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(...)

from godot.

KoBeWi avatar KoBeWi commented on May 31, 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.

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.