Skip to content

Commit b76b949

Browse files
committed
Add info about set_deferred for setting CollisionShape3D disabled property
1 parent f0f5319 commit b76b949

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/classes/CollisionPolygon2D.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Collision build mode. Use one of the [enum BuildMode] constants.
1515
</member>
1616
<member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled">
17-
If [code]true[/code], no collisions will be detected.
17+
If [code]true[/code], no collisions will be detected. This property should be changed with [method Object.set_deferred].
1818
</member>
1919
<member name="one_way_collision" type="bool" setter="set_one_way_collision" getter="is_one_way_collision_enabled" default="false">
2020
If [code]true[/code], only edges that face up, relative to [CollisionPolygon2D]'s rotation, will collide with other objects.

doc/classes/CollisionPolygon3D.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Length that the resulting collision extends in either direction perpendicular to its 2D polygon.
2222
</member>
2323
<member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled">
24-
If [code]true[/code], no collision will be produced.
24+
If [code]true[/code], no collision will be produced. This property should be changed with [method Object.set_deferred].
2525
</member>
2626
<member name="margin" type="float" setter="set_margin" getter="get_margin" default="0.04">
2727
The collision margin for the generated [Shape3D]. See [member Shape3D.margin] for more details.

doc/classes/CollisionShape3D.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
If [code]true[/code], when the shape is displayed, it will show a solid fill color in addition to its wireframe.
3838
</member>
3939
<member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled">
40-
A disabled collision shape has no effect in the world.
40+
A disabled collision shape has no effect in the world. This property should be changed with [method Object.set_deferred].
4141
</member>
4242
<member name="shape" type="Shape3D" setter="set_shape" getter="get_shape">
4343
The actual shape owned by this collision shape.

0 commit comments

Comments
 (0)