LineRenderer组建实现激光效果
在射击游戏中狙击一般都有一个红外线的效果。比如
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS0AAAC+CAIAAADvBM7gAAAa10lEQVR4nO3d11cU2frw8fmXzmI4IiDqEQTJknMQBEFyztBEiRIkiuRuYpNREBAFBkFhCJJEFAURAREEEZVB3ov9sn81VdUt43RT3dXPs74Xs+aKavmsqt61q/jtPzrBEAQx22+M/wQQBIFDCGI+cAhBzAcOIYj5wCEEMR84hCDmA4cQxHzgEIKYDxxCEPOBQwhiPnAIQcwHDiGI+cAhBDEfOIQg5gOHEMR84BCCmA8cQhDzgUMIYj5wCEHMBw4hiPnAIQQxHziEIOYDhxDEfOAQgpgPHEIQ84FDCGI+cAhBzCdih4e/HTJ+SBAkdcH5EIKYT7wO4fQIQcfpJM6HoBGChHei16UAEoJoY+D7IWiEIFKMrdOARgjCMb9eCiAhiHmHKNAIyXKS4hB1+NshgIRkMMlyiAONkEwloQ5RcHqEZCSJdogCjRDrkwKHKKQRQEKsTGoc4kAjxL6kzyEKTo8Qm5JWhyjQCLEj6XaIA5CQVMcShyjQCElprHKIwhoBJCQtsdAhDjRC0hKbHaLg9AhJfux3iAKNkCQnKw5xABKSwGTOIQo0QhKVjDpEETUCSIjBZNohDjRCzAYO/y84PUJMBQ7JgUbo5AOHAgOQ0IkFDn8SaIROIHB4rEAjJNbA4T8LQELiCBz+SqAREm3g8NcjaQSQ0C8HDkUQaIT+ZeBQZMHpUUI6PN4w/nMSA4ciDjQy9sn/6jD+k/8HHIovAHlCn7PohsGjAIfiDTSK8bMVw2xubjJyLODwJKJqBJD/9iMVzxwcHOzu7i4sLJzw4YDDEw00iuAzFPPs7e1tbW0tLS2d5EGBQwaC0+Ovf3Tin2/fvn369Gltbe3Vq1cndlzgkLFA4z/+xMQ/BwcH3759297eXl9ff/v27ezs7MkcGjhkOFqNAJLmgxL//Pjx4/v377u7u1tbW2tra0tLS/Pz82NjYw8fPhT30YFDSQk0Cun79+8ng/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kY/Et/6tQpFRUVNTU1DQ0NLS0tHR0dfX19ZNLExMT0aMyOBpMzNjY2MjIyNDS8fPmyvr6+np6ejo4Old/p06eFfA88AYSH4BDgSfIQf/sVFRVVVFTOnTt34cKFixcvYpM6Ojq6hNE7Gl1dXW1tbS0tLU1NTQ0NDXV1dTU1NVVV1V/mJz6Eh+AQ4EnyUBnIy8srKCgoKSmdOXMGmUSjejRqR4PInT9//ty5cyoqKmfOnFFWVlZUVFRQUCBtiwGHUpyY/j1gSCOExO+//37q1CkFBYXTR6OoqKioqKikpKSkpHT69GkFBYVTp07Jy8tTt8JIFMJDcAjwJH9EQujfj1iPERwCPCkYpg2KF+EhOAR40jLgkLWJ+8OFEe2wUiAa2XJ4Mp8pjPiGlQgPWe/wxD5HmBMb9iE8ZJ/Dk/zsYBgcNiE8ZIHDE/68YCRnWMAPj/Q5ZOqTgpHkkSJytCMFDpn+iGBgxD6S6JDpzwQG5qRHIhwy/SHAwDA8zDhk+qhhYCRrTsgh04cJAyPRIy6HTB8XDIw0jcgcMn0gMDBSPL/ukOmfHAaGPfMPHDL9o8LAsHaEOWT6Z4OBkZX5DeDBwDA+vzH9A8DAwIBDGBgJGHAIA8P8/D8AOf2XK3+QCwAAAABJRU5ErkJggg==" alt="" />
鼠标指向哪个方向。就在哪个方向发射一条激光。这个用到了LineRenderer组建
我这里用射线检测。
创建一个圆柱体,添加LineRenderer组建。编写代码
using UnityEngine;
using System.Collections; public class ttw : MonoBehaviour
{
LineRenderer reader;
RaycastHit hit;
Ray ray;
void Awake()
{
reader = GetComponent<LineRenderer>();
} // Use this for initialization
void Start()
{
reader.SetVertexCount();//设置顶点
reader.SetWidth(0.1f, 0.1f); //设置开始和结束的宽
reader.SetColors(Color.red, Color.yellow); //设置开始和结束的颜色
reader.SetPosition(, transform.position);//设置开始坐标
} // Update is called once per frame
void Update()
{
ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out hit)) //当射线碰到物体
{
reader.SetPosition(, hit.point);
}
else
{
//以下效果相同,
//reader.SetPosition(1, ray.GetPoint(1000));
reader.SetPosition(, ray.direction * - transform.position);
}
}
}
LineRenderer组建实现激光效果的更多相关文章
- 激光样式——第九届蓝桥杯C语言B组(国赛)第二题
原创 标题:激光样式x星球的盛大节日为增加气氛,用30台机光器一字排开,向太空中打出光柱.安装调试的时候才发现,不知什么原因,相邻的两台激光器不能同时打开!国王很想知道,在目前这种bug存在的情况下, ...
- SurvivalShooter学习笔记(七.玩家射击)
玩家射击:(这个脚本放在玩家的空子物体上,这个位置为枪口位置) 点击鼠标,玩家射击: 射击枪口发光,射击通过射线,方向有激光效果:(关于射线不明白可以参考Unity射线相关) 射击有射击音效 射击有每 ...
- [Unity3D]Unity资料大全免费分享
都是网上找的连七八糟的资料了,整理好分享的,有学习资料,视频,源码,插件……等等 东西比较多,不是所有的都是你需要的,可以按 ctrl+F 来搜索你要的东西,如果有广告,不用理会,关掉就可以了,如 ...
- 2015最新iOS学习线路图
iOS是由苹果公司开发的移动操作系统,以xcode为主要开发工具,具有简单易用的界面.令人惊叹的功能,以及超强的稳定性,已经成为iPhone.iPad 和iPod touch 的强大基础:iOS 内置 ...
- 关于Mongodb的全面总结
MongoDB的内部构造<MongoDB The Definitive Guide> MongoDB的官方文档基本是how to do的介绍,而关于how it worked却少之又少,本 ...
- 2018第九届蓝桥杯决赛(C++ B组)
逛了大半个北京还是挺好玩de 第一题 标题:换零钞 x星球的钞票的面额只有:100元,5元,2元,1元,共4种. 小明去x星旅游,他手里只有2张100元的x星币,太不方便,恰好路过x星银行就去换零钱. ...
- 基于Unity 5的次世代卡通渲染技术 -- Unite 2017 米哈游总监贺甲分享实录
在5月12日Unite2017开发者大会上,米哈游技术总监兼美术指导贺甲进行了主题为次世代卡通渲染的演讲.一下为详细分享内容: 大家好,首先自我介绍一下,我叫贺甲,在米哈游担任技术总监和美术指导工作, ...
- 2018年蓝桥杯b组国赛真题
1.标题:换零钞x星球的钞票的面额只有:100元,5元,2元,1元,共4种.小明去x星旅游,他手里只有2张100元的x星币,太不方便,恰好路过x星银行就去换零钱.小明有点强迫症,他坚持要求200元换出 ...
- 2018年蓝桥杯B组C/C++决赛题目
自己的博客排版,自我感觉略好一点. 先放上题目. 点击查看2018年蓝桥杯B组C/C++决赛题目题解 1.换零钞 x星球的钞票的面额只有:100元,5元,2元,1元,共4种. 小明去x星旅游, ...
随机推荐
- pygme 安装
输入pip install pygame-1.9.3-cp36-cp36m-win32.whl ModuleNotFoundError: No module named 'requests' pip ...
- [No0000E8]C# 方法 参数传递
参数传递 当调用带有参数的方法时,您需要向方法传递参数.在 C# 中,有三种向方法传递参数的方式: 方式 描述 值参数 这种方式复制参数的实际值给函数的形式参数,实参和形参使用的是两个不同内存中的值. ...
- [No0000C8]英特尔快速存储IRST要不要装
IRST (英特尔快速存储技术)Intel Rapid Storage Technology(简称IRST)又称英特尔快速存储技术. Intel Rapid Start Technolog同样是简称( ...
- 【每日一题】 UVA - 11809 Floating-Point Numbers 阅读题+取对数处理爆double
https://cn.vjudge.net/problem/UVA-11809 题意:很长orz 题解:算一下输入范围,发现用double是读不进来的,在这里wa了半天,(double 1e300 ...
- Hive中的order by、sort by、distribute by、cluster by解释及测试
结论: order by:全局排序,这也是4种排序手段中唯一一个能在终端输出中看出全局排序的方法,只有一个reduce,可能造成renduce任务时间过长,在严格模式下,要求必须具备limit子句. ...
- Instruments学习之Allocations
Allocations:检测一个进程(选择自己的app)内存分配和使用情况等 我们启动Allocations后得到一个初始界面 初始界面.png 简单说一下上图的3个地方 1:这里有两个部分了,因为官 ...
- day2_jmeter断言
断言就是:检查返回结果,测试是否通过,就是自动帮你校验结果用的 1)添加响应断言 我们模式匹配规格选择包括
- Beanstalkd 基本概念和使用
1:什么是 Beanstalkd ? Beanstalkd 一个高性能.轻量级的分布式内存队列系统 简单来说,就是一个队列,相比于 数据库/redis 队列相比. 更专业.能完成的功能更多.就这么理解 ...
- Numpy 机器学习三剑客之Numpy
NumPy是Python语言的一个扩充程序库.支持高级大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库.Numpy内部解除了Python的PIL(全局解释器锁),运算效率极好,是大量机 ...
- panda核心数据结构
Series Series是一维带标签的数组,数组里可以放任意的数据(整数.浮点数.字符串.python Object)等等 创建函数: (1)s = pd.Series(data,index=ind ...