コード例 #1
0
        private void SetProjectionModeToggle(BaseMediaPlayer.ProjectionMode projectionMode)
        {
            flatToggle.isOn          = false;
            projection180Toggle.isOn = false;
            projection360Toggle.isOn = false;

            switch (projectionMode)
            {
            case BaseMediaPlayer.ProjectionMode.Flat:
                flatToggle.isOn = true;
                break;

            case BaseMediaPlayer.ProjectionMode.Projection180:
                projection180Toggle.isOn = true;
                break;

            case BaseMediaPlayer.ProjectionMode.Projection360:
                projection360Toggle.isOn = true;
                break;

            default:
                flatToggle.isOn = true;
                break;
            }
        }
コード例 #2
0
        private void SetProjectionMode(BaseMediaPlayer.ProjectionMode projectionMode)
        {
            if (projectionMode == mediaPlayer.CurrentProjectionMode)
            {
                return;
            }

            mediaPlayer.CurrentProjectionMode = projectionMode;
            mediaPlayer.SaveCurrentFormat();
        }