Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISpriteFrameInitInfo

Information object interface for initialize a SpriteFrame asset

Hierarchy

  • ISpriteFrameInitInfo

Index

Properties

Optional borderBottom

borderBottom: undefined | number

Bottom side border for sliced 9 frame.

default

0

Optional borderLeft

borderLeft: undefined | number

Left side border for sliced 9 frame.

default

0

Optional borderRight

borderRight: undefined | number

Right side border for sliced 9 frame.

default

0

Optional borderTop

borderTop: undefined | number

Top side border for sliced 9 frame.

default

0

Optional isFlipUv

isFlipUv: undefined | false | true

Whether the uv is flipped

Optional isRotate

isRotate: undefined | false | true

Whether the content of sprite frame is rotated.

Optional offset

offset: Vec2

The offset of the sprite frame center from the original center of the original rect. Sprite frame in an atlas texture could be trimmed for clipping the transparent pixels, so the trimmed rect is smaller than the original one, the offset defines the distance from the original center to the trimmed center.

Optional originalSize

originalSize: Size

The original size of the sprite frame

Optional rect

rect: Rect

The rect of the sprite frame in atlas texture

Optional texture

The texture of the sprite frame, could be TextureBase or RenderTexture

Generated using TypeDoc