(One intermediate revision by one other user not shown)
Line 1:
Line 1:
{{Infobox Component
{{Infobox Component
|Image=ChildrenSaveBlockerComponent.png
|Image=ChildrenSaveBlockerComponent.png
|Name=Children Save Blocker
|Name=ChildrenSaveBlocker
}}
}}
{{stub}}
== Usage ==
The '''ChildrenSaveBlocker''' component prevents the slot's children from being saved with the slot.
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
}}
}}
== Behavior ==
== Usage ==
When attached to a slot, the children of the slot will not be saved when the slot is part of an item being saved. The slot itself will still be saved.
== Examples ==
== Examples ==
== See Also ==
There are a few cases where this component can be useful:
* A room or workspace for user holding where items that are not persistent may find themselves in. This component can be used to save the workspace (and thus retain functionality) but not the items in it.
* Placed on a slot with a [[Component:SnapTarget|SnapTarget]] to save snapping behavior while not saving any items placed in the snap target.
* Placed on a slot with a [[Component:GrabbableReceiverSurface|GrabbableReceiverSurface]] or its <code>OverrideParent</code> to save receiver behavior while not saving any items on the surface.
== See also ==
* [[Component:GrabbableSaveBlock|GrabbableSaveBlock]] for blocking saves of grabbable items.
[[Category:Components:Utility{{#translation:}}|Children Save Blocker]]
[[Category:Components:Utility]]
[[Category:Components{{#translation:}}|Children Save Blocker]]
[[Category:Components]]
[[Category:ComponentStubs]]
Latest revision as of 14:49, 16 June 2025
Component image
ChildrenSaveBlocker component as seen in the Scene Inspector
The ChildrenSaveBlocker component prevents the slot's children from being saved with the slot.
Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Usage
When attached to a slot, the children of the slot will not be saved when the slot is part of an item being saved. The slot itself will still be saved.
Examples
There are a few cases where this component can be useful:
A room or workspace for user holding where items that are not persistent may find themselves in. This component can be used to save the workspace (and thus retain functionality) but not the items in it.
Placed on a slot with a SnapTarget to save snapping behavior while not saving any items placed in the snap target.
Placed on a slot with a GrabbableReceiverSurface or its OverrideParent to save receiver behavior while not saving any items on the surface.