//----------------------------------------------------------------------------------- public void RenderFieldObjects(GUIContent labelContent, CNFieldController fieldController, bool enabled, bool showScope, CNFieldWindow.Type windowType) { if (objects_rect_width == 1) { CarManagerEditor.RepaintIfOpen(); } EditorGUI.BeginDisabledGroup(!enabled); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(labelContent, GUILayout.MaxWidth(showScope ? short_label_width : EditorGUIUtility.labelWidth - 4f)); DrawObjectsFields(labelContent.text, fieldController, enabled, showScope, windowType); EditorGUILayout.EndHorizontal(); EditorGUI.EndDisabledGroup(); }
//----------------------------------------------------------------------------------- private void ChangeToReplayingModeDone() { Int64 checksum = SimulationManager.CalculateChecksum(); CarDebug.Log(string.Format("Finished in {0:F3} secs. Checksum: " + Convert.ToString(checksum, 16), SimulationManager.GetSimulatingRealTime())); stopRequested_ = false; SimulationManager.ChangeToReplayingDone(); manager_.BuildBakerData(); manager_.BuildDisplayerVisibilityIntervals(); EditorApplication.update -= UpdateSimulating; EditorApplication.update += UpdateReplaying; SimulationManager.SetReplayingFrame((uint)frame_, true); playbackRangeMin_ = 0; playbackRangeMax_ = frame_; SceneView.RepaintAll(); CarManagerEditor.RepaintIfOpen(); }