UnityEditor.LightingWindowObjectTab.ShowClampedSizeInLightmapGUI C# (CSharp) Method

ShowClampedSizeInLightmapGUI() private method

private ShowClampedSizeInLightmapGUI ( float lightmapScale, float cachedSurfaceArea ) : void
lightmapScale float
cachedSurfaceArea float
return void
        private void ShowClampedSizeInLightmapGUI(float lightmapScale, float cachedSurfaceArea)
        {
            float num = (Mathf.Sqrt(cachedSurfaceArea) * LightmapEditorSettings.bakeResolution) * lightmapScale;
            float num2 = Math.Min(LightmapEditorSettings.maxAtlasWidth, LightmapEditorSettings.maxAtlasHeight);
            this.m_ShowClampedSize.target = num > num2;
            if (EditorGUILayout.BeginFadeGroup(this.m_ShowClampedSize.faded))
            {
                GUILayout.Label(s_Styles.ClampedSize, EditorStyles.helpBox, new GUILayoutOption[0]);
            }
            EditorGUILayout.EndFadeGroup();
        }