UnityEditor.Rigidbody2DEditor.ShowBodyInfoProperties C# (CSharp) Method

ShowBodyInfoProperties() private method

private ShowBodyInfoProperties ( ) : void
return void
        private void ShowBodyInfoProperties()
        {
            this.m_ShowInfo.target = EditorGUILayout.Foldout(this.m_ShowInfo.target, "Info", true);
            if (EditorGUILayout.BeginFadeGroup(this.m_ShowInfo.faded))
            {
                if (base.targets.Length == 1)
                {
                    Rigidbody2D rigidbodyd = base.targets[0] as Rigidbody2D;
                    EditorGUI.BeginDisabledGroup(true);
                    EditorGUILayout.Vector2Field("Position", rigidbodyd.position, new GUILayoutOption[0]);
                    EditorGUILayout.FloatField("Rotation", rigidbodyd.rotation, new GUILayoutOption[0]);
                    EditorGUILayout.Vector2Field("Velocity", rigidbodyd.velocity, new GUILayoutOption[0]);
                    EditorGUILayout.FloatField("Angular Velocity", rigidbodyd.angularVelocity, new GUILayoutOption[0]);
                    EditorGUILayout.FloatField("Inertia", rigidbodyd.inertia, new GUILayoutOption[0]);
                    EditorGUILayout.Vector2Field("Local Center of Mass", rigidbodyd.centerOfMass, new GUILayoutOption[0]);
                    EditorGUILayout.Vector2Field("World Center of Mass", rigidbodyd.worldCenterOfMass, new GUILayoutOption[0]);
                    EditorGUILayout.LabelField("Sleep State", !rigidbodyd.IsSleeping() ? "Awake" : "Asleep", new GUILayoutOption[0]);
                    EditorGUI.EndDisabledGroup();
                    base.Repaint();
                }
                else
                {
                    EditorGUILayout.HelpBox("Cannot show Info properties when multiple bodies are selected.", MessageType.Info);
                }
            }
            EditorGUILayout.EndFadeGroup();
        }