Search Unity

Question Sprite.Create how to provide associatedAlphaSplitTexture

Discussion in 'General Graphics' started by vizgl, May 30, 2023.

  1. vizgl

    vizgl

    Joined:
    Nov 4, 2014
    Posts:
    61
    Unity version 2020.3.48
    I wan't to make a copy of Sprite with custom changes. When I try to create Sprite by code I can't provide associatedAlphaSplitTexture to it, because method Sprite.Create don't have such a parameter. Source Sprite have this field filled.

    How can I make it work?