UnityEvent doesn't work with SpriteRenderer

I want to switch a sprite depending on whether im hovering on an object or not. however, this doesnt seem to be supported?
image.png

Original Post on Discord

by user 263967078346653697

This only works right now if both sprites are in the same spritesheet

is there any update on this?

by user 263967078346653697

and if not, how would I use spritesheet for this?

by user 263967078346653697

You have to put in the sprites in one sheet that you want to switch and then set the index you want to show. It also can be an animation in unity. You can find an example in our samples

The event should also work if they are in one sheet but i havent tried

isnt that for particles only?

by user 263967078346653697

there isnt even any event to change index?

by user 263967078346653697

by user 263967078346653697

Are your sprites in one spritesheet above?

With the unity event you setup?

nope not yet

by user 263967078346653697

i don’t get it are you talking about particles here?

by user 263967078346653697

i cant find any info on spriterenderer sheets

by user 263967078346653697

only changing through sprite arrays and stuff

by user 263967078346653697

When you import a texture in Unity and set it to sprite you have the ability to configure it to create multiple sprites from one texture. So that’s what i mean by Spritesheet. Like you have it in one of your particle effects you sent me.

image.png

right, but when i do the multiple thing

by user 263967078346653697

im no longer able to add it as a sprite on spriterenderer

by user 263967078346653697

oh then i probably need to create a particle material and put it up

by user 263967078346653697