文档

Unity Engine

Unity Engine

GetBounds()

Get Bounds data as NativeArray. The array count of this NativeArray will always be 1.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.U2D
  • Assembly: UnityEngine.SpriteShapeModule
public NativeArray<Bounds> GetBounds()

Returns

Type

Description

NativeArray<Bounds>NativeArray of Bounds of SpriteShapeRenderer. The size of this will always be 1.