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

Allow Array.entry access syntax #2197

Open
Jowan-Spooner opened this issue Apr 22, 2024 · 0 comments
Open

Allow Array.entry access syntax #2197

Jowan-Spooner opened this issue Apr 22, 2024 · 0 comments
Labels
Enhance ⚡ Improve a feature's workflow. Feature✨
Milestone

Comments

@Jowan-Spooner
Copy link
Collaborator

Array and Dictionary entries in autoloads or other objects can be accessed like this {Autoload.array["entry"]}.

However the syntax {Autoload.array.entry}, which gdscript users would expect to also work, is not implemented.

This was mainly done, because I wanted to get some sort of access working quickly and my time is limited. Array.entry is harder to differentiate from normal object member access.

If we could implement this, it would be cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhance ⚡ Improve a feature's workflow. Feature✨
Projects
None yet
Development

No branches or pull requests

1 participant