分享2个 技能指示器 Skill indicator 的插件:Animated Line Renderer 和 VolumeLines

一个是2D 的 还有 一个 是3D 的


指示器 最基本 的是 两点确定一条直线

确定 起点坐标 和 结束 坐标 ,线条的宽度,以及线条 的材质

------------------------------------------------------------------------------------------------------------

2D技能指示器

Animated Line Renderer

[Unity&]技能指示器skill indicator怎么做




------------------------------------------------------------------------------------------------------------

3D技能指示器



VolumeLines

[Unity&]技能指示器skill indicator怎么做


资料网址分享:

/// 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 有问题

[Unity&]技能指示器skill indicator怎么做

[Unity&]技能指示器skill indicator怎么做[Unity&]技能指示器skill indicator怎么做

以上是正常 的项目。


下面是不正常的:

[Unity&]技能指示器skill indicator怎么做

[Unity&]技能指示器skill indicator怎么做


------------------------------------------------------------------------------------------------------------


参考资料:

1.

2.

3.

4.





VolumeLines

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-07-24
  • 2021-08-20
  • 2022-12-23
  • 2021-08-17
  • 2021-12-31
猜你喜欢
  • 2021-06-06
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-11-08
相关资源
相似解决方案