public override void OnInspectorGUI() { if (TransformInspector.s_Contents == null) TransformInspector.s_Contents = new TransformInspector.Contents(); if (!EditorGUIUtility.wideMode) { EditorGUIUtility.wideMode = true; EditorGUIUtility.labelWidth = EditorGUIUtility.currentViewWidth - 212f; } this.serializedObject.Update(); this.Inspector3D(); Vector3 position = (this.target as Transform).position; if ((double) Mathf.Abs(position.x) > 100000.0 || (double) Mathf.Abs(position.y) > 100000.0 || (double) Mathf.Abs(position.z) > 100000.0) EditorGUILayout.HelpBox(TransformInspector.s_Contents.floatingPointWarning, MessageType.Warning); this.serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { if (TransformInspector.s_Contents == null) { TransformInspector.s_Contents = new TransformInspector.Contents(); } if (!EditorGUIUtility.wideMode) { EditorGUIUtility.wideMode = true; EditorGUIUtility.labelWidth = EditorGUIUtility.currentViewWidth - 212f; } this.serializedObject.Update(); this.Inspector3D(); Vector3 position = (this.target as Transform).position; if ((double)Mathf.Abs(position.x) > 100000.0 || (double)Mathf.Abs(position.y) > 100000.0 || (double)Mathf.Abs(position.z) > 100000.0) { EditorGUILayout.HelpBox(TransformInspector.s_Contents.floatingPointWarning, MessageType.Warning); } this.serializedObject.ApplyModifiedProperties(); }