本文整理汇总了C#中ParticleEffect.SetControlPointOrientation方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleEffect.SetControlPointOrientation方法的具体用法?C# ParticleEffect.SetControlPointOrientation怎么用?C# ParticleEffect.SetControlPointOrientation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleEffect
的用法示例。
在下文中一共展示了ParticleEffect.SetControlPointOrientation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawLine
private static void DrawLine(Vector3 position, float size, int directionf, int directionu)
{
var effect = new ParticleEffect(@"particles\ui_mouseactions\drag_selected_ring.vpcf", position);
ParticleEffects.Add(effect);
effect.SetControlPoint(1, new Vector3(0, 125, 0));
effect.SetControlPoint(2, new Vector3(size, 255, 0));
effect.SetControlPointOrientation(4, new Vector3(directionf, 0, 0), new Vector3(directionu, 0, 0), new Vector3(0, 0, 0));
}
示例2: DrawLine
private static ParticleEffect DrawLine(Vector2 position, float size, int horizontal = 0, int vertical = 0) {
var position3 = position.ToVector3();
var effect = new ParticleEffect(@"particles\ui_mouseactions\drag_selected_ring.vpcf", position3);
effect.SetControlPoint(1, new Vector3(
Program.GetMenuValue("red"),
Program.GetMenuValue("green"),
Program.GetMenuValue("blue")));
effect.SetControlPoint(2, new Vector3(size, 255, 0));
effect.SetControlPointOrientation(4, new Vector3(horizontal, 0, 0), new Vector3(vertical, 0, 0),
new Vector3(0, 0, 0));
return effect;
}