I've tried zoom the 3D Model appear in the camera attached Model but when zoom certain limit then the model is not showing proper. Please check the attached image and below is the code. I suspect the model is going above the camera. So, it's not showing proper. How to fix this,
Zoom In:
float oldScale = modalcloneTransform.localScale.x;
float newScale = oldScale * 1.2f;
modalcloneTransform.localScale = new Vector3(newScale, newScale, newScale);
Zoom out:
float oldScale = modalcloneTransform.localScale.x;
float newScale = oldScale / 1.2f;
modalcloneTransform.localScale = new Vector3(newScale, newScale, newScale);
Attachment | Size |
---|---|
![]() | 1.16 MB |
Got it...Set Near clip plane is 0.1 and it works fine.. Thank you..