antiAliasing
Choose the level of Multi-Sample Anti-aliasing (MSAA) that the GPU performs.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static int antiAliasing { get; set; }
Remarks
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; }}
Additional Resources: Quality Settings.