Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved How to use a sprite with the ''Multiple'' mode / sprite atlas in UVS?

Discussion in 'Visual Scripting' started by Marou1, Oct 5, 2022.

  1. Marou1

    Marou1

    Joined:
    Dec 13, 2021
    Posts:
    161
    Hi,

    I am developing a 3D game, but for the menus and inventories that display many icons, I'd like to replace individual sprites and use a sprite atlas or a sprite sheet.
    However, right now a slot of the inventory is a game object that has an Image Component with the individual sprite. Once, I use the atlas, how can I attach a slice of the sprite sheet to the game object ''Slot''?

    In UVS, I use Get Image Component and Get/Set Sprite to modify the content of the inventory. How can I do that with an atlas?

    Thanks
     
  2. Marou1

    Marou1

    Joined:
    Dec 13, 2021
    Posts:
    161
    I just remembered that a sprite sheet generates sprites once sliced...
     
    ericb_unity likes this.