1
Support / Re: Asset server
« on: March 13, 2013, 09:43:05 am »
Is this still the recommended approach; deleting the tk2d object before updating?
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.
...you will need a unique material for each sprite (you'd need a unique material on any objects you animate this way too)....because my knowledge of shaders and materials is so basic. I will need to change the materials on all the things I need alpha change on off course. With a lot extra complexity and worse performance as a sideeffect? If yes that should be enough to deter me

function SetChannelA(value:float) {
SetupMaterial();
if (!material) return;
if (!material.HasProperty(propertyName)) return;
var c:Color = material.GetColor(propertyName);
c.a = value;
material.SetColor(propertyName,c);
}