From 9a9a164e7d3634389fba539a629790b6f69140b0 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Mon, 3 Jul 2023 10:47:34 +0200 Subject: Clarify that `Gradient.colors/offsets` are returned by-copy --- doc/classes/Gradient.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/classes/Gradient.xml') diff --git a/doc/classes/Gradient.xml b/doc/classes/Gradient.xml index f76ccb49ac..dce964e509 100644 --- a/doc/classes/Gradient.xml +++ b/doc/classes/Gradient.xml @@ -79,6 +79,7 @@ Gradient's colors returned as a [PackedColorArray]. + [b]Note:[/b] This property returns a copy, modifying the return value does not update the gradient. To update the gradient use [method set_color] method (for updating colors individually) or assign to this property directly (for bulk-updating all colors at once). The color space used to interpolate between points of the gradient. It does not affect the returned colors, which will always be in sRGB space. See [enum ColorSpace] for available modes. @@ -89,6 +90,7 @@ Gradient's offsets returned as a [PackedFloat32Array]. + [b]Note:[/b] This property returns a copy, modifying the return value does not update the gradient. To update the gradient use [method set_offset] method (for updating offsets individually) or assign to this property directly (for bulk-updating all offsets at once). -- cgit v1.2.3