Hello all
I am using Texh mech pro UGUI to display text + custom icons from a sprite asset liked to a sprite sheet form a sprite image (single)
This works fine.
As i want to add new icons (customs) to the Sprite image without to send all player a new game release i tried to updload and update the source price but it allways fail :
-
direct download of the sprite .png to a game components :
sourceicones.GetComponent().spriteAsset.spriteSheet = newsprite
This show new icons when i open the Sprite Asset in editor with a “type mismatch” but i see the icon in the preview list. Then using <sprite=22> show nothing -
using asset bundle to download a bundle of the sprite imported in unity with all the settings / atlas :
sourceicones.GetComponent().spriteAsset.spriteSheet = newspritebundle
This dont show any issue the spriteasset show correct link no mismatch but same end the sprite dont show using <sprite=22> all others sprites are ok
So is this the good way to do it ?
or should I pack another bundle, the whole sprite asset ? Any other method to force the use of the new spritesheet ?
or could I in any way point this icons list image dynamicly to downloaded asset on device ? (i use android and standalone pc / linux)
Thanks