1
Support / Re: Grey Edge on Corner of BlendVertexColor Sprites
« on: December 03, 2012, 02:05:58 am »
Solved it through padding
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.
Debug.Log("render queue = " + anim.renderer.material.renderQueue);
if(Physics.Raycast(ray, out hit))
{
if(!hit.collider.gameObject.GetComponent<ProtagonistScript>())
{
if (anim.color != Color.black)
{
Debug.Log("increasing render queue");
anim.renderer.material.renderQueue += 15;
anim.color = Color.black;
}
}
else if (anim.color != Color.white)
{
Debug.Log("decreasing render queue");
anim.renderer.material.renderQueue -= 15;
anim.color = Color.white;
}