Given a progress (a value that ranges from 0 to 1), this method allows you to create a child progress based on the parent progress.
Imaging the following progress.
Parent progress0 -----0.2------0.4-------0.6-------0.8------1Child progress 0.2----------------0.6mathf.childProgress(parentProgress, 0.2, 0.6) Copy
Parent progress0 -----0.2------0.4-------0.6-------0.8------1Child progress 0.2----------------0.6mathf.childProgress(parentProgress, 0.2, 0.6)
If you have a parent progress runnning from 0 to 1 and you wanted your child progress to start at 0.2 and end at 0.6.
Given the parent progress, this method would return:
Parent progress Output0 ---------> 0|0.2 ---------> 00.3 ---------> 0.250.4 ---------> 0.50.5 ---------> 0.750.6 ---------> 10.7 ---------> 1|1 ---------> 1 Copy
Parent progress Output0 ---------> 0|0.2 ---------> 00.3 ---------> 0.250.4 ---------> 0.50.5 ---------> 0.750.6 ---------> 10.7 ---------> 1|1 ---------> 1
The starting value of the child progress. Value between 0 and 1.
The end value of the child progress. Value between 0 and 1.
Given a progress (a value that ranges from 0 to 1), this method allows you to create a child progress based on the parent progress.
Imaging the following progress.
If you have a parent progress runnning from 0 to 1 and you wanted your child progress to start at 0.2 and end at 0.6.
Given the parent progress, this method would return: