Amplifying your potential.

Incrementing a value at run time w/o depending on deltatime

Your feedback is very important to us. We are listening.
3 posts • Page 1 of 1

Incrementing a value at run time w/o depending on deltatime

Postby jaysadasao » Wed Feb 01, 2017 5:32 pm

I want to use the Burn Dissolve shader in order to make a character dissapear, so I want to increment the Dissolve Amount value in runtime.

However the only way I could find to do it is connected to the time since level load, and if I use the time since level load an object will simply vanish automatically if I apply the shader to it a long time after the scene is loaded. Or if I want to instantiate an object mid game using the dissolve burn shader it will already be created transparent.

Here's a snippet of what I am doing right now - https://imgur.com/a/xY6hY


So I'd like to know how can I implement a sort of counter based on time (*not* time since level load) which I can use to apply this effect.

Hope I made myself clear.
jaysadasao
 
Posts: 1
Joined: Wed Feb 01, 2017 5:10 pm

Re: Incrementing a value at run time w/o depending on deltat

Postby Ricardo Teixeira » Thu Feb 02, 2017 11:28 am

jaysadasao wrote:I want to use the Burn Dissolve shader in order to make a character dissapear, so I want to increment the Dissolve Amount value in runtime.

However the only way I could find to do it is connected to the time since level load, and if I use the time since level load an object will simply vanish automatically if I apply the shader to it a long time after the scene is loaded. Or if I want to instantiate an object mid game using the dissolve burn shader it will already be created transparent.

Here's a snippet of what I am doing right now - https://imgur.com/a/xY6hY


So I'd like to know how can I implement a sort of counter based on time (*not* time since level load) which I can use to apply this effect.

Hope I made myself clear.


Hello Jay,

Thank you for getting in touch. Our apologies for not replying to you here, we did not receive any forum notifications - I will look into it immediately.

I believe your request was solved via email, be sure to let us know if you need any additional support.

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 599
Joined: Fri Aug 09, 2013 2:26 pm

Re: Incrementing a value at run time w/o depending on deltat

Postby Ricardo Teixeira » Thu Feb 02, 2017 11:33 am

jaysadasao wrote:Here's a snippet of what I am doing right now - https://imgur.com/a/xY6hY


On an unrelated note - Are you using some kind of UI Skin override? The Node text is supposed to be white.
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 599
Joined: Fri Aug 09, 2013 2:26 pm


3 posts • Page 1 of 1

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron