UILabel.ApplyShadow C# (CSharp) Méthode

ApplyShadow() public méthode

Apply a shadow effect to the buffer.
public ApplyShadow ( BetterList verts, BetterList uvs, BetterList cols, int start, int end, float x, float y ) : void
verts BetterList
uvs BetterList
cols BetterList
start int
end int
x float
y float
Résultat void
	void ApplyShadow (BetterList<Vector3> verts, BetterList<Vector2> uvs, BetterList<Color32> cols, int start, int end, float x, float y)
	{
		Color c = mEffectColor;
		c.a *= finalAlpha;
		Color32 col = (bitmapFont != null && bitmapFont.premultipliedAlpha) ? NGUITools.ApplyPMA(c) : c;

		for (int i = start; i < end; ++i)
		{
			verts.Add(verts.buffer[i]);
			uvs.Add(uvs.buffer[i]);
			cols.Add(cols.buffer[i]);

			Vector3 v = verts.buffer[i];
			v.x += x;
			v.y += y;
			verts.buffer[i] = v;
			cols.buffer[i] = col;
		}
	}

Usage Example

Exemple #1
0
 static public int ApplyShadow(IntPtr l)
 {
     try {
         UILabel self = (UILabel)checkSelf(l);
         BetterList <UnityEngine.Vector3> a1;
         checkType(l, 2, out a1);
         BetterList <UnityEngine.Vector2> a2;
         checkType(l, 3, out a2);
         BetterList <UnityEngine.Color32> a3;
         checkType(l, 4, out a3);
         System.Int32 a4;
         checkType(l, 5, out a4);
         System.Int32 a5;
         checkType(l, 6, out a5);
         System.Single a6;
         checkType(l, 7, out a6);
         System.Single a7;
         checkType(l, 8, out a7);
         self.ApplyShadow(a1, a2, a3, a4, a5, a6, a7);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of UILabel::ApplyShadow