Esempio n. 1
0
        /// <summary>
        /// Raises the container dropdown value changed event.
        /// </summary>
        public void OnContainerDropdownValueChanged(int result)
        {
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_EDITOR_WIN || UNITY_EDITOR_OSX)
            if ((ContainerPreset)(result) == ContainerPreset.JPG)
            {
                containerDropdown.value = (int)container;
                return;
            }
#endif

            if ((int)container != result)
            {
                container = (ContainerPreset)(result);
            }
        }
        /// <summary>
        /// Raises the container dropdown value changed event.
        /// </summary>
        public void OnContainerDropdownValueChanged(int result)
        {
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_EDITOR_WIN || UNITY_EDITOR_OSX)
            if ((ContainerPreset)(result) == ContainerPreset.JPG)
            {
                containerDropdown.value = (int)container;

                if (fpsMonitor != null)
                {
                    fpsMonitor.Toast("JPG format is not supported on this platform");
                }

                return;
            }
#endif

            if ((int)container != result)
            {
                container = (ContainerPreset)(result);
            }
        }