Hi, I’m fairly new to reflections and all that in unity and I stumbled upon some options under Realtime Mode for the Planar Reflection Probe. I’ve looked everywhere for an example or a reference but I can’t find anything online, so I hope you guys can direct me into the right direction to update the RenderTexture x times in a second.
Um… I’ll go out on a limb here: perhaps put it in an Update() loop and see if it is time to update it again?!
What have you tried so far? Here are some extra handy tips for getting great replies here:
I was reffering to a website with an example or something.
variable:
float timeYet;
code:
if (timeYet > 0) timeYet -= Time.deltaTime;
if (timeYet <= 0)
{
timeYet = 1.0f / 30; // 30ths of a second
// update the RenderTexture here
}
Others will say “use InvokeRepeating!” and you’re welcome to do that too but when it fails to work for some mysterious reason, you have nothing to reason about, whereas the code and values above can be fully debugged right in your project.
1 Like