02-09-2021, 08:50 PM
Hello
I am using generator to spot multiple objects along the spline, I do that at run time. I modified the range for rasterized path to be for a part of the curvy spline and not for the full range (ex. 0 - 0.3), and I want to modify that range on other part of spline while player is moving across the spline when he reaches specific distance ( for ex. when player move after 25 distance I want the rasterized path range to be 0.3 - 0.5)
-I was wondering if at run time the generator will reuse the already spotted objects ? or it will destroy them and then reinstantiate them again (if yes can I reuse them)?
-Is there any tips to get max performance for the Generator that will spot a game objects on spline ( all the spotted object are simply sprites only with only sprite renderer component)?
I am using generator to spot multiple objects along the spline, I do that at run time. I modified the range for rasterized path to be for a part of the curvy spline and not for the full range (ex. 0 - 0.3), and I want to modify that range on other part of spline while player is moving across the spline when he reaches specific distance ( for ex. when player move after 25 distance I want the rasterized path range to be 0.3 - 0.5)
-I was wondering if at run time the generator will reuse the already spotted objects ? or it will destroy them and then reinstantiate them again (if yes can I reuse them)?
-Is there any tips to get max performance for the Generator that will spot a game objects on spline ( all the spotted object are simply sprites only with only sprite renderer component)?