Documentation

Unity Engine

Unity Engine

rect

Location of the Sprite on the original Texture, specified in pixels.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Rect rect { get; }

Remarks

Additional Resources: Sprite.bounds.