Component:SimpleAvatarProtection

From Resonite Wiki
Revision as of 05:04, 9 February 2021 by imported>Chemicalcrux (Explain removal a bit better.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
SimpleAvatarProtection component as seen in the Scene Inspector


Intoduction

SimpleAvatarProtection prevents other users from wearing an avatar or saving it.

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.
User User The user who is permitted to use the avatar.
_userId String Internal

Behavior

When attached anywhere on an avatar, the SimpleAvatarProtection component prevents all users, other than the single user listed on the component, from saving the avatar, grabbing materials off of it, or equipping it.

The component is automatically attached to an avatar if "Protect Avatar" is checked when creating it.

All instances of SimpleAvatarProtection on an avatar can be removed by its owner by clicking the "Remove All Instances" button. No other user can remove the component. This is useful if you are trying to clear protection from an avatar, but cannot remember where the component was; you can simply add another instance and remove them all at once.