SpriteRendererDataAccessExtensions
A list of methods that allow the caller to override what the SpriteRenderer renders.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEngine.U2D
- Assembly: UnityEngine.CoreModule
public static class SpriteRendererDataAccessExtensions
Remarks
This feature is used mainly in the Sprite Animation feature. The SpriteSkin component gets the deformable buffer and deforms it using the skin weights and bones. After the deformation is complete, the Sprite Renderer uses it to render the Sprite instead of the Sprite's original mesh.
Static Methods
Method | Description |
|---|---|
| DeactivateDeformableBuffer | Stop using the deformable buffer to render the Sprite and use the original mesh instead. |
| GetShaderUserValue | Returns the custom value assigned to this renderer. |
| SetShaderUserValue | Assign a custom value to this renderer. |