Skip to content

(extension).CreateSprite

Aidanamite edited this page Oct 11, 2021 · 2 revisions

Extension of: Texture2D

Description:

Creates a 'Sprite' object from a Texture2D. Recommended to use for creating item sprites

Return Type: Sprite

Arguments: None

Example:

var sprite = image.CreateSprite();

Clone this wiki locally