question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Make resource loader generic

See original GitHub issue

Currently I need to manually cast the type like this:

val scene: PackedScene = ResourceLoader.load("res:/xxx.tscn") as PackedScene?

Would be cool to have it like this:

val scene: PackedScene = ResourceLoader.load("res:/xxx.tscn")

// or

val scene = ResourceLoader.load<PackedScene>("res:/xxx.tscn")

Currently C# has it in a generic way

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chippmanncommented, Apr 28, 2021

I find this a good idea. It would be consistent then.

0reactions
Humberdcommented, Apr 27, 2021

We can do a similar operation like with getNodeAs. We can add As suffix as an extension function.

Read more comments on GitHub >

github_iconTop Results From Across the Web

englercj/resource-loader: A middleware-style generic ... - GitHub
A generic resource loader, made with web games in mind. Philosophy. This library was built to make it easier to load and prepare...
Read more >
How to incorporate private customer needs into a public ...
Provide only generic details on the customer with a link to internal confidential information, but provide as much detail as possible regarding ...
Read more >
107006 - Feature request: ability to replay a previously made ...
My use case is to replay a GET or POST request including all headers and form data. Naturally, the next step is a...
Read more >
Java Treeview / Feature Requests / #22 autoscan for plugins
http://www.developer.com/java/other/article.php/2248831. It turns out that there's a sourceforge project to make a generic plugin loader:.
Read more >
Configure Generic API Loader - Knowledge Center - Zuora
The Generic API Loader application uses the Zuora APIs of Create, Update, ... in combination with CSV templates to perform mass requests.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found