2D Toolkit Forum

2D Toolkit => Support => Topic started by: Santalia on October 27, 2015, 06:08:19 am

Title: Sprite disappear nearly out of camera range
Post by: Santalia on October 27, 2015, 06:08:19 am
2D Toolkit ver. 2.5.1
Unity 3D ver. 5.0.1f1

I have a problem in foreground object that suddenly disappear from camera when it is nearly out of camera range
it only happens in foreground object, which order in layer is in positive number

Here is the video
1. Normal / not disappear
http://www.mediafire.com/watch/e7ia9nbww007yhu/asset%20normal.mp4 (http://www.mediafire.com/watch/e7ia9nbww007yhu/asset%20normal.mp4)

2. Disappear
http://www.mediafire.com/watch/5575lb037q7z6iq/asset_disappear.mp4 (http://www.mediafire.com/watch/5575lb037q7z6iq/asset_disappear.mp4)

In the first video (normal), see the upper left stone object. The object stays there until it is out of camera range.
But in the second video (disappear), see the black chain object. The object is disappear from camera before it is out of camera range.
Both object is in positive number of order in layer.

Is there any solution for this problem?
Any help would be appreciate it
Thank you
Title: Re: Sprite disappear nearly out of camera range
Post by: unikronsoftware on November 03, 2015, 01:26:30 pm
Hi, is that using a perspective camera?
Title: Re: Sprite disappear nearly out of camera range
Post by: Santalia on December 03, 2015, 03:29:47 pm
sorry for very late reply
yes, I use perspective camera and I've already solved the problem the other day
It's because my assets order in layer is in positive number. When I set all my sprites and character in negative number order in layer, the problem solved.