Beispiel #1
0
 static protected void GUITimeRange(string name, ref float minValue, ref float maxValue, float minLimit, float maxLimit)
 {
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.LabelField(name, GUILayout.Width(50));
     EditorGUILayout.LabelField(minLimit.ToString(), GUILayout.Width(40));
     minValue = BulletTime.MakeDescreetTime(minValue, BulletTime.frameRate);
     maxValue = BulletTime.MakeDescreetTime(maxValue, BulletTime.frameRate);
     minLimit = BulletTime.MakeDescreetTime(minLimit, BulletTime.frameRate);
     maxLimit = BulletTime.MakeDescreetTime(maxLimit, BulletTime.frameRate);
     EditorGUILayout.MinMaxSlider(ref minValue, ref maxValue, minLimit, maxLimit);
     EditorGUILayout.LabelField(maxLimit.ToString(), GUILayout.Width(50));
     minValue = BulletTime.MakeDescreetTime(minValue, BulletTime.frameRate);
     maxValue = BulletTime.MakeDescreetTime(maxValue, BulletTime.frameRate);
     EditorGUILayout.EndHorizontal();
 }