Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

871041532/SLGDrawLine

Repository files navigation

SLGDrawLine

SLG游戏画行军线

介绍:

1.画线模块,可用于SLG游戏行军线。

2.多个不同速度、颜色、长度的线在一个DrawCall中实现。

3.材质中ShowLength控制两端显示的长度,AlphaLength控制渐隐长度,AllShowLength是一个临界值,长度小于它的线全部显示,长度大于它的线出现中间渐隐消失效果。(ShowLength、AlphaLength控制这两个效果)

使用demo:

1.画线:int handle=LineManager.Instance.DrawLine(Vector3 start,Vector3 end,Color color,float speed);

2.回收线:LineManager.Instance.BackLine(int handle);

效果:

image

About

SLG游戏画行军线

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /