Method DuplicateSprite
| Edit this page View SourceDuplicateSprite(Sprite)
Creates a readable copy of a Sprite.
Declaration
public static Sprite DuplicateSprite(Sprite sprite)
Parameters
Type | Name | Description |
---|---|---|
Sprite | sprite | Source sprite. |
Returns
Type | Description |
---|---|
Sprite | A new Sprite with a readable copy of its texture region, or null if the texture is null. |