Answer the question
In order to leave comments, you need to log in
How to make images change over time in spriteRedneder?
I want to make a change of pictures over time. I made it into a script that has several textures:
public Texture monkey1;
public Texture monkey2;
public Texture monkey3;
Answer the question
In order to leave comments, you need to log in
and now imagine) that people are not telepaths and perceive differently)
do you need one to change smoothly? or instantly?
for each picture the same time? or does each have its own "display time"?)
Also, if I'm not mistaken, spriteRedneder - wants to substitute a sprite into itself, not a texture.
Also - make it not three separate variables, but an array or a list
, here's a link - read it)
https://docs.unity3d.com/ScriptReference/SpriteRen...
Actually, the link even gives an example - how to replace a sprite in a sprite render, only there by button.
how to make a timer or use
InvokeRepeate
please google + documentation + learn = profit)).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question