PushClip()
Uses the current path as a clipping region. Subsequent Fill() and Stroke() operations will be clipped by this region.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public void PushClip()
Remarks
The clipping process is very expensive, as it involves per-triangle clipping on the CPU. It is recommended to minimize the complexity of both the clipping path and the clipped content. Also avoid nested clipping regions when possible, as each additional clipping region adds more overhead to the clipping process.
Note that the clipped shapes will not have antialiased edges since the clipping path is applied by doing a per-triangle clipping process. Use PopClip() to remove the most recently added clipping region.