Skip to content

chore: Cache project settings#442

Merged
elementbound merged 3 commits intofoxssake:mainfrom
gk98s:main
Apr 8, 2025
Merged

chore: Cache project settings#442
elementbound merged 3 commits intofoxssake:mainfrom
gk98s:main

Conversation

@gk98s
Copy link
Copy Markdown
Contributor

@gk98s gk98s commented Apr 5, 2025

Closes #304

@elementbound elementbound changed the title Caching project settings variables - Issue #304 chore: Cache project settings Apr 5, 2025
@elementbound elementbound merged commit d0e2638 into foxssake:main Apr 8, 2025
2 checks passed

# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")
var gravity = ProjectSettings.get_setting(&"physics/3d/default_gravity")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to point out, as I did in the Netfox chat, that all of these &"" literals are useless, because all methods related to project settings accept String, not StringName. You must've been confusing them for Object.get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caching project settings variables

3 participants