I’m using Image
and ImageRectOffset
and ImageRectSize
to pull icons from rbxasset://LuaPackages/Packages/_Index/FoundationImages/FoundationImages/SpriteSheets
. Everything looks correct in Roblox Studio’s mobile emulator and on PC, but on a real mobile device, the image appears different.
Could the sprite sheet asset differ between platforms (mobile vs. Studio/PC)?
This is on Studio Device Emulator
This is on real mobile
Yes, the sprite sheets are likely different between platforms. These sprite sheets are auto-generated, and if the images that need packing vary between platforms, then so too will the resulting sprite sheets.
The content in these directories is accessible to the CoreScripts
, and the sprite sheets come with an atlas that the CoreScripts
read to fetch which one they want; however, developer code cannot access this atlas.
ROBLOX assets outside of the “content/textures” directory aren’t really intended for developer use and are liable to change at any time. Even content in the “textures” directory is changed periodically, but paths to images are usually preserved even if the underlying images are changed.