public void DoPreviewSettings()
{
this.Init();
if (this.m_ShowIKOnFeetButton)
{
EditorGUI.BeginChangeCheck();
this.m_IKOnFeet = GUILayout.Toggle(this.m_IKOnFeet, s_Styles.ik, s_Styles.preButton, new GUILayoutOption[0]);
if (EditorGUI.EndChangeCheck())
{
EditorPrefs.SetBool("AvatarpreviewShowIK", this.m_IKOnFeet);
}
}
EditorGUI.BeginChangeCheck();
this.m_ShowReference = GUILayout.Toggle(this.m_ShowReference, s_Styles.pivot, s_Styles.preButton, new GUILayoutOption[0]);
if (EditorGUI.EndChangeCheck())
{
EditorPrefs.SetBool("AvatarpreviewShowReference", this.m_ShowReference);
}
GUILayout.Box(s_Styles.speedScale, s_Styles.preLabel, new GUILayoutOption[0]);
EditorGUI.BeginChangeCheck();
this.timeControl.playbackSpeed = this.PreviewSlider(this.timeControl.playbackSpeed, 0.03f);
if (EditorGUI.EndChangeCheck())
{
EditorPrefs.SetFloat("AvatarpreviewSpeed", this.timeControl.playbackSpeed);
}
GUILayout.Label(this.timeControl.playbackSpeed.ToString("f2"), s_Styles.preLabel, new GUILayoutOption[0]);
}