Lens Flares simulate the effect of lights refracting inside camera lens. They are used to represent really bright lights or, more subtly, just to add a bit more atmosphere to your scene.

镜头光晕 模拟相机镜头内的折射光线的效果。它们被用来代表真正的明亮的灯光,更微妙的是,可以在你的场景添加多一点的气氛。

The Lens Flare Inspector 镜头光晕(Lens Flare)检视窗口

The easiest way to setup a Lens Flare is just to assign the Flare property of the Light. Unity contains a couple of pre-configured Flares in the Standard Assets package.

建立镜头光晕 最简单的方法 是 指定光线(Light)的光晕属性( Flare property)。Unity在Standard Assets package.包含了一些预设的光晕(Flares)资源。

Otherwise, create an empty GameObject with GameObject->Create Empty from the menu bar and add the Lens Flare Component to it with Component->Rendering->Lens Flare. Then and choose the Flare in the Inspector.

否则,按照以下步骤: 1. 从菜单栏依次 GameObject - >Create Empty? 来创建一个空的游戏对像(GameObject) 2. 再Component->Rendering->Lens Flare 给这个空的游戏对象(GameObject)添加 镜头光晕组件(Lens Flare?Component) 3.最后在检视面板选择光晕(Flare)

To see the effect of Lens Flare in the Scene View, check the Fx button in the Scene View toolbar:

想要在场景视图中看到镜头光晕的效果,选上场景视图工具栏中的Fx按钮。

Enable the Fx button to view Lens Flares in the Scene View

选上Fx 按钮才能看到场景视图上的镜头光晕(Lens Flares)效果。

Properties 属性

Flare 光晕

The Flare to render. The flare defines all aspects of the lens flare's appearance.

要渲染的光晕(Flare?),光晕定义了镜头光晕外观的所有方面。

Color 颜色

Some flares can be colorized to better fit in with your scene's mood.

一些光晕可以填上颜色以更加适合你场景的风格。

Brightness 亮度

How large and bright the Lens Flare is.

镜头光晕(Lens Flare)的大小和明亮程度。

Directional 方向

If set, the flare will be oriented along positive Z axis of the game object. It will appear as if it was infinitely far away, and won't track object's position, only the direction of Z axis.

如果设置了,光晕将以游戏对象的Z轴为方向。它会看上去好像是无限远,而且不会跟踪对象的位置,只沿着Z轴作为方向。

Details 详情

You can directly set flares as a property of a Light Component, or set them up separately as Lens Flare component. If you attach them to a light, they will automatically track the position and direction of the light. To get more precise control, use this Component.

你可以直接将光晕设置为光线组件(?Light?Component)的属性,或者独立地在镜头光晕组件(Lens Flare component.)建立他们。如果你把它们贴在一个光线上,他们会自动跟踪光线的位置和方向。使用这个组件,得到更精确的控制 。

A Camera has to have a Flare Layer Component attached to make Flares visible (this is true by default, so you don't have to do any set-up).

相机(Camera?)贴有光晕层组件(Flare Layer Component)?使光晕可见(这是真的,默认情况下,因此你不需要做任何设置)。

Hints 提示

Be discrete about your usage of Lens Flares. 使用镜头光晕应分散(Lens Flares)。(即不要都叠在一起)

If you use a very bright Lens Flare, make sure its direction fits with your scene's primary light source.

如果你用的是一个很明亮的镜头光晕(Lens Flare),保证它的方向与你的场景主要光源的方向相符合

To design your own Flares, you need to create some Flare Assets. Start by duplicating some of the ones we provided in the the Lens Flares folder of the Standard Assets, then modify from that.

你自己的光晕时,你需要创建一些光晕的资源。通过复制一些在Standard Assets的文件夹中提供的镜头光晕(Lens Flares)的开始,然后修改。

Lens Flares are blocked by Colliders. A Collider in-between the Flare GameObject and the Camera will hide the Flare, even if the Collider does not have a Mesh Renderer.

镜头光晕会被碰撞器遮挡。一个介于光晕游戏对象 (Flare GameObject)和相机之间的碰撞器会把光晕隐藏掉(即使碰撞器没有Mesh Renderer)。

更多unity2018的功能介绍请到paws3d学习中心查找。链接https://www.paws3d.com/learn/,也可以加入unity学习讨论群935714213

Unity组件:Lens Flare 镜头光晕相关推荐

  1. Unity组件:Lens Flare 镜头光晕 1

    Lens Flares simulate the effect of lights refracting inside camera lens. They are used to represent ...

  2. Unity3D镜头眩光组件Lens Flare

    在自然界中,由于亮度差异过大的时候,容易产生镜头眩光.为了增加场景的真实性,某些情况下我们也需要用到该组件. 右键点击创建一个新的flare: 这是个结构比较简单的组件,只需要拖入眩光的图片即可.然后 ...

  3. unity学习笔记——unity组件的从属关系

    unity项目组建:项目--场景--游戏对象--组件--属性 (unity是面向组件开发游戏的) 以下这张图,就很好地总结了unity中各组件之间的从属关系: 下面这张里都是一些比较常见的unity组 ...

  4. 【Unity3D】Unity 组件 ④ ( 摄像机 | 调整摄像机 | 手工调整 | 3D 视图对齐 Align with View 调整摄像机 )

    文章目录 一.摄像机简介 二.调整摄像机 一.摄像机简介 创建新的 Scene 场景时 , 会自带一个 主摄像机 Main Camera , 其主要作用是进行 摄像 , 游戏玩家看到的画面就是 由 摄 ...

  5. Unity 组件批量复制

    Unity Component批量复制 在制作毕设的过程中,我发现我的角色模型需要替换,但是原角色物体上有很多组件,如果全部在Inspector面板右键Copy.Paste很麻烦,所以制作了一个能够将 ...

  6. 【Unity3D】Unity 组件 ③ ( 为物体添加 AudioSource 组件 | 添加 AudioSource 组件 | 导入音频文件 | 为组件设置音频 | Transform 变换组件 )

    文章目录 一.为物体添加 AudioSource 组件 1.AudioSource 组件简介 2.创建物体 3.添加 AudioSource 组件 4.导入音频文件资源 5.为 AudioSource ...

  7. 如何理解Unity组件化开发模式

    Unity的开发模式核心:节点和组件,组件可以加载到任何节点上,每个组件都有 gameobject 属性,可以通过这个属性获取到该节点,即游戏物体. 也就是说游戏物体由节点和组件构成,每个组件表示物体 ...

  8. unity获取脚本组件_王者荣耀是怎样炼成的(三)unity组件与脚本

    上回书说到了unity的基本操作.这回我们来侃侃unity中的组件与脚本. 目录结构 一.组件与脚本简介 1.组件 组件(Component),顾名思义,就是游戏物体的组成部件. 这和我们对现实生活的 ...

  9. 日落20181024001 - Unity组件应用之Animator

    系统:Windows 8 引擎:Unity 2017.2.1f1 (1)在unity官网注册账号,然后从Assets Store获取免费模型资源unity-chan(陈氏). (2)下载后,点击Imp ...

  10. unity组件LineRenderer

    这是一个好玩的组件 主要作用划线,像水果忍者中的刀光,还有一些涂鸦的小游戏,包括让鼠标划线然后让对象进行跟踪导航也可通过此插件完成 附注:unity版本建议使用稳定一些的版本,有些api可能已经发生变 ...

最新文章

  1. IT运维管理员如何写好一份年终总结?
  2. mysql的存储过程正负数的变化_《转》mysql存储过程语法及范例
  3. GCC: libgcc的用途以及交叉编译
  4. 从零开始学前端:CSS盒子模型属性 --- 今天你学习了吗?(CSS:Day14)
  5. CSS级联样式表-css选择器
  6. [Python] L1-056 猜数字-PAT团体程序设计天梯赛GPLT
  7. java源码依赖分析_Spring项目运行依赖spring-contex解析
  8. 2.用户画像:方法论与工程化解决方案 --- 数据指标体系
  9. 【eoeAndroid社区索引】android 条形码的知识汇总
  10. 工业机器人导轨 百度文库_《工业机器人》复习资料
  11. 【渝粤题库】广东开放大学 标准化专业英语 形成性考核
  12. 汽车电子行业英文缩写大全(不断更新)
  13. 2021-10-09烧录固件芯片操作流程
  14. 后渗透篇:COM劫持及加载技术
  15. 深度学习基础(五):循环神经网络概念、结构及原理实现
  16. 处理导入的原理图库中Designator字体不对的问题
  17. 数字逻辑电路(前三章简介)
  18. 中国人寿保险软件开发机试题 java实现
  19. 虹科分享 | 简单实用的CANopen介绍,看完你就明白了(1)——CANopen基础概念
  20. linux版teamview15.5.3

热门文章

  1. 【蓝桥杯选拔赛真题43】Scratch航天飞行 少儿编程scratch蓝桥杯选拔赛真题讲解
  2. fastJson≤1.2.80漏洞修复
  3. favicon.ico在线转换网站
  4. [Unity]DrawLine与DrawRay的区别
  5. 入门数据科学必读书单推荐
  6. 扁豆凝集素LCA/LcH填料/小扁豆凝集素-琼脂糖凝胶/双花扁豆凝集素DBA/黑皮扁豆凝集素
  7. 文明5 java 英_文明5模组“Future Worlds”(未来世界)中英版补丁
  8. 域名注册必须实名认证 《互联网域名管理办法》11月1日实施
  9. js table 生成序号_JS自动为表格增加序号
  10. unity黄金矿工游戏