1
Support / Re: Depth Mask negative depth
« on: October 16, 2013, 03:58:32 pm »
I use a perspective camera and because of that the mask will "slide" over my sprite, because of the mask "moving" faster than the sprite just behind it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
if (Time.timeScale < 0.5f && state == UnitState.Celebrating)
{
spriteAnimator.enabled = false;
spriteAnimator.UpdateAnimation(1.0f / 60.0f);
}
From documentation:
int width
Screen width to match. Set to -1 to match any width.
int height
Screen height to match. Set to -1 to match any height.