Skip to content

SpriteExtensions

Namespace: SideXP.Core

public static class SpriteExtensions

Extension functions for Sprite instances.

Methods

ToTexture(Sprite)

public static Texture2D ToTexture(Sprite sprite)

Extracts a Texture2D from a given sprite.

Parameters

  • sprite: The object that defines the original texture and size of the sprite.

Returns

Returns the extracted Texture2D.