Browse Source

Merge pull request #102520 from Giganzo/CollisionShape3D-disabled-doc

Add info about `set_deferred` for CollisionShape3D disabled property
Rémi Verschelde 3 months ago
parent
commit
bf6d94b561

+ 1 - 1
doc/classes/CollisionPolygon2D.xml

@@ -14,7 +14,7 @@
 			Collision build mode.
 		</member>
 		<member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled">
-			If [code]true[/code], no collisions will be detected.
+			If [code]true[/code], no collisions will be detected. This property should be changed with [method Object.set_deferred].
 		</member>
 		<member name="one_way_collision" type="bool" setter="set_one_way_collision" getter="is_one_way_collision_enabled" default="false">
 			If [code]true[/code], only edges that face up, relative to [CollisionPolygon2D]'s rotation, will collide with other objects.

+ 1 - 1
doc/classes/CollisionPolygon3D.xml

@@ -21,7 +21,7 @@
 			Length that the resulting collision extends in either direction perpendicular to its 2D polygon.
 		</member>
 		<member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled">
-			If [code]true[/code], no collision will be produced.
+			If [code]true[/code], no collision will be produced. This property should be changed with [method Object.set_deferred].
 		</member>
 		<member name="margin" type="float" setter="set_margin" getter="get_margin" default="0.04">
 			The collision margin for the generated [Shape3D]. See [member Shape3D.margin] for more details.

+ 1 - 1
doc/classes/CollisionShape3D.xml

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