分享2个 技能指示器 Skill indicator 的插件:Animated Line Renderer 和 VolumeLines
一个是2D 的 还有 一个 是3D 的
指示器 最基本 的是 两点确定一条直线
确定 起点坐标 和 结束 坐标 ,线条的宽度,以及线条 的材质
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
资料网址分享:
/// Render a single volumetric line using an additive shader which does not support changing the color
///
/// Based on the Volumetric lines algorithm by Sebastien Hillaire
/// http://sebastien.hillaire.free.fr/index.php?option=com_content&view=article&id=57&Itemid=74
///
/// Thread in the Unity3D Forum:
/// http://forum.unity3d.com/threads/181618-Volumetric-lines
///
/// Unity3D port by Johannes Unterguggenberger
/// [email protected]
///
/// Thanks to Michael Probst for support during development.
///
/// Thanks for bugfixes and improvements to Unity Forum User "Mistale"
/// http://forum.unity3d.com/members/102350-Mistale
///
/// Shader code optimization and cleanup by Lex Darlog (aka DRL)
/// http://forum.unity3d.com/members/lex-drl.67487/
VolumeLines U3D下载地址:https://github.com/johannesugb/VolumetricLinesUnity
下载完毕,最好新建一个 项目,再导入 数据包。如下图所示,否则,发射的 射线 的Shader 有问题
以上是正常 的项目。
下面是不正常的:
参考资料:
1.
2.
3.
4.