Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetBounds()

Get Bounds data as NativeArray. The array count of this NativeArray will always be 1.
Read time 1 minuteLast updated 12 days ago

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.