Version: 2023.1
public static int antiAliasing ;

描述

Choose the level of Multi-Sample Anti-aliasing (MSAA) that the GPU performs.

The value indicates the number of samples per pixel. Valid values are 0 (no MSAA), 2, 4, and 8. If the graphics API does not support the value you provide, it uses the next highest supported value.

MSAA is compatible only with Forward rendering. For more information on other types of anti-aliasing and compatibility, see Post processing.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Set AntiAliasing to use 2x Multisampling QualitySettings.antiAliasing = 2; } }

另请参阅:Quality Settings

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961