protected void PropertiesGUI()
{
bool flag = false;
this.HeaderGUI("", "Additional Settings");
GUILayout.BeginVertical(styles.box, new GUILayoutOption[0]);
this.m_ArmTwistFactor = EditorGUI.Slider(GetSettingsRect(), styles.armTwist, this.m_ArmTwistFactor, 0f, 1f);
if (this.m_ArmTwistProperty.floatValue != this.m_ArmTwistFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Upper arm twist");
this.m_ArmTwistProperty.floatValue = this.m_ArmTwistFactor;
this.UpdateAvatarParameter(HumanParameter.UpperArmTwist, this.m_ArmTwistFactor);
flag = true;
}
this.m_ForeArmTwistFactor = EditorGUI.Slider(GetSettingsRect(), styles.foreArmTwist, this.m_ForeArmTwistFactor, 0f, 1f);
if (this.m_ForeArmTwistProperty.floatValue != this.m_ForeArmTwistFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Lower arm twist");
this.m_ForeArmTwistProperty.floatValue = this.m_ForeArmTwistFactor;
this.UpdateAvatarParameter(HumanParameter.LowerArmTwist, this.m_ForeArmTwistFactor);
flag = true;
}
this.m_UpperLegTwistFactor = EditorGUI.Slider(GetSettingsRect(), styles.upperLegTwist, this.m_UpperLegTwistFactor, 0f, 1f);
if (this.m_UpperLegTwistProperty.floatValue != this.m_UpperLegTwistFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Upper leg twist");
this.m_UpperLegTwistProperty.floatValue = this.m_UpperLegTwistFactor;
this.UpdateAvatarParameter(HumanParameter.UpperLegTwist, this.m_UpperLegTwistFactor);
flag = true;
}
this.m_LegTwistFactor = EditorGUI.Slider(GetSettingsRect(), styles.legTwist, this.m_LegTwistFactor, 0f, 1f);
if (this.m_LegTwistProperty.floatValue != this.m_LegTwistFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Lower leg twist");
this.m_LegTwistProperty.floatValue = this.m_LegTwistFactor;
this.UpdateAvatarParameter(HumanParameter.LowerLegTwist, this.m_LegTwistFactor);
flag = true;
}
this.m_ArmStretchFactor = EditorGUI.Slider(GetSettingsRect(), styles.armStretch, this.m_ArmStretchFactor, 0f, 1f);
if (this.m_ArmStretchProperty.floatValue != this.m_ArmStretchFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Arm stretch");
this.m_ArmStretchProperty.floatValue = this.m_ArmStretchFactor;
this.UpdateAvatarParameter(HumanParameter.ArmStretch, this.m_ArmStretchFactor);
flag = true;
}
this.m_LegStretchFactor = EditorGUI.Slider(GetSettingsRect(), styles.legStretch, this.m_LegStretchFactor, 0f, 1f);
if (this.m_LegStretchProperty.floatValue != this.m_LegStretchFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Leg stretch");
this.m_LegStretchProperty.floatValue = this.m_LegStretchFactor;
this.UpdateAvatarParameter(HumanParameter.LegStretch, this.m_LegStretchFactor);
flag = true;
}
this.m_FeetSpacingFactor = EditorGUI.Slider(GetSettingsRect(), styles.feetSpacing, this.m_FeetSpacingFactor, 0f, 1f);
if (this.m_FeetSpacingProperty.floatValue != this.m_FeetSpacingFactor)
{
Undo.RegisterCompleteObjectUndo(this, "Feet spacing");
this.m_FeetSpacingProperty.floatValue = this.m_FeetSpacingFactor;
this.UpdateAvatarParameter(HumanParameter.FeetSpacing, this.m_FeetSpacingFactor);
flag = true;
}
this.m_HasTranslationDoF = EditorGUI.Toggle(GetSettingsRect(), styles.hasTranslationDoF, this.m_HasTranslationDoF);
if (this.m_HasTranslationDoFProperty.boolValue != this.m_HasTranslationDoF)
{
Undo.RegisterCompleteObjectUndo(this, "Translation DoF");
this.m_HasTranslationDoFProperty.boolValue = this.m_HasTranslationDoF;
}
GUILayout.EndVertical();
if (flag)
{
this.WritePose();
}
}