pub enum AvatarSlot {
Show 26 variants
Body,
SkinType,
SkinTone,
Eyes,
Ears,
Tail,
Claws,
Gills,
Webbing,
Horns,
Wings,
Snout,
Coat,
Hair,
HairColor,
Shirt,
Pants,
Shoes,
Jacket,
Headgear,
Socks,
Gloves,
AccessoryHead,
AccessoryBody,
AccessoryLapel,
Offhand,
}Expand description
One of the customization points on a humanoid avatar.
Slots fall into four SlotCategory groups: biology (race-defined), hair,
clothing, and accessories.
Variants§
Body
SkinType
SkinTone
Eyes
Ears
Tail
Claws
Gills
Webbing
Horns
Wings
Snout
Coat
Hair
HairColor
Shirt
Pants
Shoes
Jacket
Headgear
Socks
Gloves
AccessoryHead
AccessoryBody
AccessoryLapel
Offhand
Implementations§
Source§impl AvatarSlot
impl AvatarSlot
Sourcepub const ALL: [AvatarSlot; 26]
pub const ALL: [AvatarSlot; 26]
Every slot, in back-to-front assembly order (body first, accessories last).
Sourcepub fn category(self) -> SlotCategory
pub fn category(self) -> SlotCategory
Which category this slot belongs to.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The slot’s wire name — identical to the Unity AvatarSlot enum name and
the slot keys the web Studio saves. This IS the serde form.
Sourcepub fn is_biology(self) -> bool
pub fn is_biology(self) -> bool
Is this slot part of the body/biology (set by the race)?
Trait Implementations§
Source§impl Clone for AvatarSlot
impl Clone for AvatarSlot
Source§fn clone(&self) -> AvatarSlot
fn clone(&self) -> AvatarSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AvatarSlot
Source§impl Debug for AvatarSlot
impl Debug for AvatarSlot
Source§impl<'de> Deserialize<'de> for AvatarSlot
impl<'de> Deserialize<'de> for AvatarSlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AvatarSlot
Source§impl Hash for AvatarSlot
impl Hash for AvatarSlot
Source§impl PartialEq for AvatarSlot
impl PartialEq for AvatarSlot
Source§impl Serialize for AvatarSlot
impl Serialize for AvatarSlot
impl StructuralPartialEq for AvatarSlot
Auto Trait Implementations§
impl Freeze for AvatarSlot
impl RefUnwindSafe for AvatarSlot
impl Send for AvatarSlot
impl Sync for AvatarSlot
impl Unpin for AvatarSlot
impl UnsafeUnpin for AvatarSlot
impl UnwindSafe for AvatarSlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more