Пример #1
0
        private void SetEtcTextureCompressorBehavior(object data)
        {
            int newValue = (int)data;

            m_EtcTextureCompressorBehavior.intValue = newValue;

            if (m_IsGlobalSettings)
            {
                if (EditorSettings.etcTextureCompressorBehavior == newValue)
                {
                    return;
                }

                EditorSettings.etcTextureCompressorBehavior = newValue;

                if (newValue == 0)
                {
                    EditorSettings.SetEtcTextureCompressorLegacyBehavior();
                }
                else
                {
                    EditorSettings.SetEtcTextureCompressorDefaultBehavior();
                }
            }
        }
        private void SetEtcTextureCompressorBehavior(object data)
        {
            int newValue = (int)data;

            if (EditorSettings.etcTextureCompressorBehavior == newValue)
                return;

            EditorSettings.etcTextureCompressorBehavior = newValue;

            if (newValue == 0)
                EditorSettings.SetEtcTextureCompressorLegacyBehavior();
            else
                EditorSettings.SetEtcTextureCompressorDefaultBehavior();
        }
        private void SetEtcTextureCompressorBehavior(object data)
        {
            int num = (int)data;

            if (EditorSettings.etcTextureCompressorBehavior != num)
            {
                EditorSettings.etcTextureCompressorBehavior = num;
                if (num == 0)
                {
                    EditorSettings.SetEtcTextureCompressorLegacyBehavior();
                }
                else
                {
                    EditorSettings.SetEtcTextureCompressorDefaultBehavior();
                }
            }
        }