Difference between revisions of "PersonaAvatarExtended"
From Virtual World Web Wiki
(Documentation for the PersonaAvatarExtended class) |
(Documentation for the PersonaAvatarExtended class) |
||
Line 32: | Line 32: | ||
::Destroys a preview layer, and shows the avatar.Appearance again as an atomic operation | ::Destroys a preview layer, and shows the avatar.Appearance again as an atomic operation | ||
− | :{{CSharp|void SaveAppearance( | + | :{{CSharp|void SaveAppearance(AvatarLayerExtended layer {{=}} NULL)}} |
:: | :: | ||
::Saves this persona's appearance from the specified layer (or writes their current appearance if you don't specify a layer, same as avatar.SaveAppearance(avatar.Appearance) ) | ::Saves this persona's appearance from the specified layer (or writes their current appearance if you don't specify a layer, same as avatar.SaveAppearance(avatar.Appearance) ) | ||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Revision as of 20:50, 12 July 2018
Represents an avatar based for a persona. It will wear the same clothes as the persona and reflect other changes to their avatar
- Inherits class: CreatureAvatarExtended
- This is a JavaScript visible object
Remarks [edit]
Properties
- PersonaLayerExtended Appearance {get;}
- The appearance modification layer shared by all avatars of the same persona as this avatar
- PersonaLayerExtended Overlay {get;}
- The overlay modification layer shared by all avatars of the same persona as this avatar
- PersonaLayerExtended Underlay {get;}
- The underlay modification layer shared by all avatars of the same persona as this avatar
Methods
- RuntimeLayerExtended CreatePreviewLayer()
- Creates a preview layer as a clone of avatar.Appearance, and hides avatar.Appearance
- void MergePreviewLayer(RuntimeLayerExtended layer)
- Saves the preview layer as this persona's current appearance, removes it, and finally, shows the avatar.Appearance layer again
- void RemovePreviewLayer(RuntimeLayerExtended layer)
- Destroys a preview layer, and shows the avatar.Appearance again as an atomic operation
- void SaveAppearance(AvatarLayerExtended layer = NULL)
- Saves this persona's appearance from the specified layer (or writes their current appearance if you don't specify a layer, same as avatar.SaveAppearance(avatar.Appearance) )