Component:ChildrenSaveBlocker

From Resonite Wiki
Revision as of 16:01, 16 October 2024 by 989onan (talk | contribs) (add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Children Save Blocker component as seen in the Scene Inspector

Children save blocker is a component that prevents any user from saving the slots under the slot with this component.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.

Behavior

This component prevents any user from saving all the slots under this component's slot.

Examples

This component is used most commonly where a room or workspace may get filled with items that may not automatically make themselves non persistent. When the room, workspace, or world is saved, the items under the slot for said area will not exist in the save file. This is useful for auto cleanup of a world for saving it rather than cleaning it up manually.

This can also be used to make an avatar that is wearable by others, but the moment that the user tries to save the avatar, they will see an avatar icon but it will just spawn a blank slot when worn.

See Also