文档

Unity Engine

Unity Engine

SpriteShapeRenderer

Renders SpriteShapes defined through the SpriteShapeUtility.GenerateSpriteShape API.
阅读时间8 分钟最后更新于 1 个月前

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.
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.

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.