Class BasicAvatarSettings
Simplified avatar settings format used by the character creator. Provides a more user-friendly interface for basic character customization compared to the full AvatarSettings.
public sealed class BasicAvatarSettings
- Inheritance
-
BasicAvatarSettings
- Inherited Members
- Extension Methods
Properties
Bottom
Bottom clothing layer path/identifier.
public string Bottom { get; set; }
Property Value
BottomColor
Bottom clothing color.
public Color BottomColor { get; set; }
Property Value
- Color
EyeballColor
Eyeball color.
public Color EyeballColor { get; set; }
Property Value
- Color
EyebrowRestingAngle
Eyebrow resting angle value.
public float EyebrowRestingAngle { get; set; }
Property Value
EyebrowRestingHeight
Eyebrow resting height value.
public float EyebrowRestingHeight { get; set; }
Property Value
EyebrowScale
Eyebrow scale value.
public float EyebrowScale { get; set; }
Property Value
EyebrowThickness
Eyebrow thickness value.
public float EyebrowThickness { get; set; }
Property Value
Eyewear
Eyewear accessory path/identifier.
public string Eyewear { get; set; }
Property Value
EyewearColor
Eyewear color.
public Color EyewearColor { get; set; }
Property Value
- Color
FacialDetails
Facial details layer path/identifier (e.g., scars, makeup).
public string FacialDetails { get; set; }
Property Value
FacialDetailsIntensity
Facial details intensity (0.0 to 1.0).
public float FacialDetailsIntensity { get; set; }
Property Value
FacialHair
Facial hair layer path/identifier.
public string FacialHair { get; set; }
Property Value
Gender
Gender value (0 = male, 1 = female).
public int Gender { get; set; }
Property Value
HairColor
Hair color.
public Color HairColor { get; set; }
Property Value
- Color
HairStyle
Hair style path/identifier.
public string HairStyle { get; set; }
Property Value
Headwear
Headwear accessory path/identifier.
public string Headwear { get; set; }
Property Value
HeadwearColor
Headwear color.
public Color HeadwearColor { get; set; }
Property Value
- Color
LowerEyeLidRestingPosition
Lower eye lid resting position (0.0 to 1.0).
public float LowerEyeLidRestingPosition { get; set; }
Property Value
Mouth
Mouth layer path/identifier.
public string Mouth { get; set; }
Property Value
PupilDilation
Pupil dilation value (typically 0.0 to 1.0).
public float PupilDilation { get; set; }
Property Value
Shoes
Shoes accessory path/identifier.
public string Shoes { get; set; }
Property Value
ShoesColor
Shoes color.
public Color ShoesColor { get; set; }
Property Value
- Color
SkinColor
Skin color.
public Color SkinColor { get; set; }
Property Value
- Color
Top
Top clothing layer path/identifier.
public string Top { get; set; }
Property Value
TopColor
Top clothing color.
public Color TopColor { get; set; }
Property Value
- Color
UpperEyeLidRestingPosition
Upper eye lid resting position (0.0 to 1.0).
public float UpperEyeLidRestingPosition { get; set; }
Property Value
Weight
Weight value (typically 0.0 to 1.0).
public float Weight { get; set; }
Property Value
Methods
AddTattoo(string)
Adds a tattoo layer path to the tattoos list.
public void AddTattoo(string tattooPath)
Parameters
tattooPathstringThe tattoo layer path to add.
Create()
Creates a new BasicAvatarSettings instance.
public static BasicAvatarSettings Create()
Returns
GetTattoos()
Gets a list of tattoo layer paths.
public List<string> GetTattoos()
Returns
GetValue<T>(string)
Gets a field value by name using reflection.
public T GetValue<T>(string fieldName)
Parameters
fieldNamestringThe name of the field.
Returns
- T
The field value, or default(T) if not found.
Type Parameters
TThe type of the value.
SetTattoos(List<string>)
Sets the tattoo layer paths.
public void SetTattoos(List<string> tattoos)
Parameters
SetValue<T>(string, T)
Sets a field value by name using reflection.
public void SetValue<T>(string fieldName, T value)
Parameters
fieldNamestringThe name of the field.
valueTThe value to set.
Type Parameters
TThe type of the value.
ToAvatarSettings()
Converts this BasicAvatarSettings to a full AvatarSettings instance.
public AvatarSettings ToAvatarSettings()
Returns
- AvatarSettings
A new AvatarSettings instance with the converted settings.