コード例 #1
0
ファイル: GraphicsSettingUtil.cs プロジェクト: slb1988/agame
        public static void SetPostEffectBufferSizeByQuality(Dictionary <PostEffectQualityGrade, int> postFxGradeBufferSize, PostEffectQualityGrade quality)
        {
            PostFX tfx = UnityEngine.Object.FindObjectOfType <PostFX>();

            if (tfx != null)
            {
                int num = 0;
                postFxGradeBufferSize.TryGetValue(quality, out num);
                tfx.internalBufferSize = (PostFXBase.InternalBufferSizeEnum)num;
            }
        }
コード例 #2
0
 private void ShowPostFXGrade(PostEffectQualityGrade postFXGrade, bool isRecommend, bool usePostFX)
 {
     this.ShowThirdLineElement(base.transform.Find("Content/DetailSetting/ThirdLine/Content/PostFXQuality"), isRecommend, usePostFX, postFXGrade == PostEffectQualityGrade.High);
 }