Objective

Give Value From to To In Given Time

 

 

Step 1 Function ValueTo

function ValueTo (ExplossionLight : Light , From : float, To : float, time : float) {
    var i = 0.0;
    var rate = 1.0/time;
    while (i < 1.0) {
        i += Time.deltaTime * rate;
        ExplossionLight.intensity = Mathf.Lerp(From,To,i);
        yield;
    }
}

I hope you found this blog helpful while working on Unity Project. Let me know if you have any questions or concerns regarding Unity , please put a comment here and we will get back to you ASAP.

Got an Idea of Game Development? What are you still waiting for? Contact us now and see the Idea live soon. Our company has been named as one of the best Game Development Company in India.

An entrepreneur who has founded 2 flourishing software firms in 7 years, Tejas is keen to understand everything about gaming - from the business dynamics to awesome designs to gamer psychology. As the founder-CEO of a company that has released some very successful games, he knows a thing or two about gaming. He shares his knowledge through blogs and talks that he gets invited to.

face mask Belial The Demon Headgear Pocket Staff Magic