Post by tea on Mar 22, 2022 1:26:53 GMT
Hi there, I'm doing a simple test where I had the camera follows the target within the given boundary.
I've been doing it all the time in many different ways actually, and it's handy to use for sure.
However it's the first time I've got this requirement to change the camera's field of view, and that's where I found this problem below..
//=========================================================================================================
Here's how my boundary looks like, as well as the boundary trigger setting.
//=========================================================================================================
And here's the first appearance when enter play mode, with a default camera field of view for 90. and it worked well.
(that little white square was the target that the camera follows.)
//=========================================================================================================
Then I changed it field of view to 60 programmatically, and now I can see the boundary had been limited more narrow from where the white line told.
Which wasn't the desired result... ( now, the little white square can only move within the white line area)
I tried a few different settings for somewhat boundary or camera or the 'ProCamera2D' component.. and then realized, whatever settings are, It'll only work properly at the beginning.
//=========================================================================================================
So, is there any way I can do to refresh or recalculate the boundary detecting?
I would really appreciate in advance for your help!
I've been doing it all the time in many different ways actually, and it's handy to use for sure.
However it's the first time I've got this requirement to change the camera's field of view, and that's where I found this problem below..
//=========================================================================================================
Here's how my boundary looks like, as well as the boundary trigger setting.
//=========================================================================================================
And here's the first appearance when enter play mode, with a default camera field of view for 90. and it worked well.
(that little white square was the target that the camera follows.)
//=========================================================================================================
Then I changed it field of view to 60 programmatically, and now I can see the boundary had been limited more narrow from where the white line told.
Which wasn't the desired result... ( now, the little white square can only move within the white line area)
I tried a few different settings for somewhat boundary or camera or the 'ProCamera2D' component.. and then realized, whatever settings are, It'll only work properly at the beginning.
//=========================================================================================================
So, is there any way I can do to refresh or recalculate the boundary detecting?
I would really appreciate in advance for your help!