Summary
When using itemization and attempting to retrieve a fortnite items icon to use in materials it will not work properly and the texture parameter will not change in the material
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Assets
Steps to Reproduce
item_texture_component := class<final_super>(component):
@editable Weapon : concrete_subtype(entity)
OnSimulate<override>()<suspends> : void =
if (RoundManager := Entity.GetFortRoundManager[]):
RoundManager.AwaitRoundStart()
Sleep(5.0)
if (Mesh := Entity.GetComponent[SM_RandomMesh]):
Mat := M_WeaponIcon{}
set Mesh.M_WeaponIcon = Mat
Item := Weapon{}
WeaponIcon := Item.GetComponent[icon_component].Icon or None_texture
set Mat.WeaponIcon = Item.GetComponent[icon_component].Icon or None_texture #Doesn't set the icon
by making a component and using this snippet, when you assign a item to the editable and play the game the texture parameter will not change from the default parameter
Expected Result
the texture in the material will update to show the selected weapon icon
Observed Result
the texture doesn’t change
Platform(s)
PC