A
A
artshelom2018-11-27 17:44:56
Unity
artshelom, 2018-11-27 17:44:56

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;

How can you make them change over time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2018-11-27
@artshelom

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 question

Ask a Question

731 491 924 answers to any question