[FUSION] How do I animate hotbar icons?

type item = {
    model: Instance,
    isEquipped: boolean
}

scope:ForValues(itemsInInventory, function(use, scope, info: item)
  local index = table.find(use(itemsInInventory),info)

  return m_item.New(scope, info.model.Name, index)
end),

m_networker:BindEvent("UpdateBackpackUI", function(items: {item})
  itemsInInventory:set(items)
end)

I want to tween my item icons but I dont know a way of doing so. Because im using ForValues, i can’t really use any fusion values per icon to tween because the icons just get deleted when i update the inventory.

i ran into this issue as well. the simple fix is to switch from fusion and just make the ui manually

It can be easily fixed by not using fusion
My current pipeline is building UI using UI Editor from Roblox and compiling it to Luau using Hierarchy Saver.

Inventory code is really hard to code and fusion makes it easier so I dont wanna switch to manual creation. I do have a solution but its really janky and idk if I want to do it.

Please dude, stop the self-promotion. This is like the third time you’ve commented on my posts about some stupid stuff. I dont want to use your 150 line ui module.

Everyone should calm down. We don’t want this post getting taken down or reported. If OP doesn’t want to use your module, you should respect that. At this point he has said he is uncomfortable with with using that module, and at this point the reason doesn’t really matter.

Now please lets get on with actually fixing this issue. Does fusion have any documentation? Good modules usually have a documentation, for example TopBarPlus.

Yes there is: Fusion API

I never mentioned any module in this conversation.

Just use plain Luau with some structuring, no need to bloat anything

local Frame = Instance.new("Frame") do
	Frame.Size = UDim2.fromScale(1,1)
end

It’s pretty depressing seeing so much backlash on a question where a UI library is mentioned. This is part of why a lot of people are scared of getting into software development in general.

@A_Mp5 @Yarik_superpro If OP wanted your opinion, they would’ve asked for it.

@AsianRiceGod666 I don’t have much experience with Fusion myself but if you’re in the HiddenDevs server, #advanced-code or #code-help usually has a few people that have used UI library before that can help (especially #advanced-code). If you’d like, I can put the question out for you there to see if anyone can help, just send me a private message here.

Edit: also, happy new year!

Programming isn’t about opinions, it’s about tradeoffs and outcomes.

It’s objectively true that unnecessary complexity and bloat have real costs (performance, maintainability, onboarding). Pointing that out isn’t backlash, it’s part of engineering review.

I offered a simpler alternative because in many cases it solves the same problem with fewer downsides.

Cut ze fluff, eat ze bug :raised_fist:

you want to animate them how? what do you want them to do, after i know that i can try and help. im not a master at fusion but i used it a few times before

I’ve decided to move on to React-Luau, better long term management and it has a bigger community