As a matter of fact I am not aware of a public example that uses spritesheets. Good question, @yaustar any idea?
hereās the gif i wanted to use if you wanted to know (this is supposed to be an animated gunskin btw)
That might be better as a video texture TBH.
Hereās the tutorial for changing UVs on a material. https://playcanvas.com/project/405882/overview/tutorial-scrolling-textures
In your case, rather than scroll, you would want to set the UVs on the material to be at each frame.
Hereās an unofficial project to do āspritesā with textures that uses private API: https://playcanvas.com/editor/scene/1305675
okay iāll try my best
oh wait can you also help me with attachments and loadouts similar to call of duty as a menu screen my goal is to create a game similar to cod mobile but for laptop and obviously different i should probably make a new post with the collaboration thing because i need help ill add you if you want hereās what the game is like so far Last Life - PLAYCANVAS
I figured it out @yaustar well part 1 of it i made a texture thatās a sprite BUT i donāt know how to make it a material please reply as soon as possible
you could set it on material, and use texture scale / offset on the same material to swap between individual parts of the texture.
how would you do that perhaps?
Similar to this (not the same) but you can use it as a base:
https://developer.playcanvas.com/en/tutorials/animated-textures/
im not making a scrolling texture i want to turn a sprite i made into a material i can use for 3d models
see look to the right of this screenshot i want to turn that into a material that can be used as a texture in 3d models
well its a texture atlas not a sprite BUT iām still in need of an animated material that ISNāT a scrolling texture
Here is a very quick example: https://playcanvas.com/editor/scene/1305690
will it work if i copy and paste the script
Depends on the use case. You may have to customise it for your usage.
i am in NEED of an animated model but i dont know how to do that i made a texture atlas sprite thingy but i need that into a material that can be used please help and I DONāT WANT A SCROLLING TEXTURE
i dont know how to customize it ugh this is stressful im terrible at coding
can you just add it to my game ill add you i suck at everything so Oh i cant add you so UGHH this is annoying
Iām afraid I donāt have the bandwidth to help with any projects
ughh all this for just something that could be easily fixed with gif/apng support why isnt this on your roadmap it is a serious problem in my opinion it makes this editor way harder to use and way less accessible