Ensure RID, Callable, and Signal are stored as strings

Prevents parser errors in `.tscn` and `.tres` files where the assignment
would otherwise be empty.
This commit is contained in:
Ninni Pipping 2023-06-21 11:06:32 +02:00
parent e74bf831c2
commit 9159208ed1
14 changed files with 122 additions and 37 deletions

View file

@ -30,7 +30,7 @@
<member name="shape" type="Resource" setter="set_shape" getter="get_shape">
The [Shape2D] that will be used for collision/intersection queries. This stores the actual reference which avoids the shape to be released while being used for queries, so always prefer using this over [member shape_rid].
</member>
<member name="shape_rid" type="RID" setter="set_shape_rid" getter="get_shape_rid">
<member name="shape_rid" type="RID" setter="set_shape_rid" getter="get_shape_rid" default="RID()">
The queried shape's [RID] that will be used for collision/intersection queries. Use this over [member shape] if you want to optimize for performance using the Servers API:
[codeblocks]
[gdscript]