Using index access on Quaternion type data to get values will result in a parsing error.
#120 318 ouverte le 15 juin 2026
Métriques du dépôt
- Stars
- (110 708 étoiles)
- Métriques de merge PR
- (Merge moyen 78j 14h) (350 PRs mergées en 30 j)
Description
Tested versions
- Reproducible in: 4.7-rc2 and earlier versions.
System information
Godot v4.7.beta (33431363d) - Fedora Linux 44 (Workstation Edition) on Wayland - Wayland display driver, Single-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) HD Graphics 3000 (SNB GT2) - Intel(R) Core(TM) i3-2348M CPU @ 2.30GHz (4 threads) - 15.45 GiB memory - PulseAudio (44100 Hz, Stereo/mono)
Issue description
Using index access on Quaternion data to get values will cause parsing errors; you can't access the x, y, z, w components of a Quaternion through indexing. However, similar types like Basis, Color, Transform2D, and VectorX can be accessed by index without any issues.
Please check the description in the game engine's documentation.
Steps to reproduce
Write the following statements in the script:
var q:Quaternion=Quaternion()
q[0]