Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SpriteShapeRenderer

Renders SpriteShapes defined through the SpriteShapeUtility.GenerateSpriteShape API.
Read time 8 minutesLast updated 5 days ago

Definition

public class SpriteShapeRenderer : Renderer

Properties

Property

Description

colorRendering color for the SpriteShape.
maskInteractionSpecifies how the SpriteShape interacts with the masks.

Methods

Method

Description

GetBoundsGet Bounds data as NativeArray. The array count of this NativeArray will always be 1.
GetChannelsGet/Set an array of mesh data of SpriteShapeRenderer.
GetSegmentsGet/Set an array of segments of SpriteShapeRenderer.
GetShaderUserValueReturns the custom value assigned to this renderer.
GetSplineMeshCountGets the number of submeshes.
PreparePrepare and generate the SpriteShape geometry that will be fed to SpriteShape generator for rendering.
SetLocalAABBProvides methods for setting the bounding volume of the Sprite Shape geometry.
SetShaderUserValueAssign a custom value to this renderer.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.