Search Unity

Delete or add sprites in OnPostprocessSprites

Discussion in '2D' started by illinar, Dec 14, 2020.

  1. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    863
    How do I delete or add sprites in
    void OnPostprocessSprites(Texture2D texture, Sprite[] sprites)

    ?
    I need to generate a custom number of sprites depending on some data. Would I have to do it somewhere else instead of post processor?