Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetLocalAABB(Bounds)

Provides methods for setting the bounding volume of the Sprite Shape geometry.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.U2D
  • Assembly: UnityEngine.SpriteShapeModule
public void SetLocalAABB(Bounds bounds)

Parameters

bounds

The bounding volume of geometry.

Remarks

This is the axis-aligned bounding box of the Sprite Shape geometry in its local space. The bounding volume is also updated whenever Sprite Shape geometry is generated.