当前位置:网站首页>[Unity Getting Started Plan] Basic Concepts (6) - Sprite Renderer Sprite Renderer
[Unity Getting Started Plan] Basic Concepts (6) - Sprite Renderer Sprite Renderer
2022-08-03 16:37:00 【flashinggg】
目录
9-slicing Sprites 9Slice the elves
2.5 Mask Interaction Mask interaction
2.6 Sprite Sort Point The elves sorting point
由于在学习Unity教程的Ruby's AdventureIn the process of the tutorial,Met the elf renderer this component,Wanted to do a simple study to it,So the example of the screenshots are provided based on the official project.
官方文档
精灵渲染器 (Sprite Renderer) - Unity 手册
1 Sprite 精灵
这个Sprite指的是2D图形对象,在2DIs a graphics object in the scene,那么在3DIn the scene thisSpriteEssentially just a texture,Unity提供了Sprite Renderer组件控制SpriteIn the scene visual effect,这个组件在2D和3DCan be used in the scene(3D场景中还有一个Mesh Renderer)
2 Sprite Renderer 精灵渲染器
前面提到了:Elves renderer is a game object component,Used to control the elves in the the visual effect of the scene,有如下属性
2.1 Sprite 精灵
The right to open the object selector,Can choose from the list the component corresponding elves texture rendering(Sprite Texture).
2.2 Color 着色
For the elf image color,Can use the picker can also modifyRGBA值(A控制透明度),Easy to two examples are given to understand
2.3 Filp 翻转
就是字面上的意思,翻转,But I can't flip game objectTransform变换位置.
2.4 Draw Mode 当前的绘制模式
有三个选项
- Simple
- Sliced
- Tiled
设置成Sliced/Tiled时,Renderer will elves rendering for9切片图像.
9-slicing Sprites 9Slice the elves
关于9切片(Also called scratchable latex),官方文档:Unity - Manual: 9-slicing Sprites
简单来说,9Slice the image is divided into9份,Different parts of the zoom in different ways or flat out
关于这个9Slice the end application where,目前还没有用过,好像是在TileMap会涉及到,Subsequent to will study again.
2.5 Mask Interaction Mask interaction
Understand the mask interaction to understand what is before the elves mask:
Sprite Masks 精灵遮罩
Used to hide or show part or a group of elves,创建方式:Hierarchy窗口右键 -> 2D Object -> Sprite Mask,Elves mask can be used to show some transitions and shows the effect of,Involved in it and then to learn more.
This section is the theme of the mask interaction,Is used to set the renderer mask interact,举例说明:
首先创建了一个Circle Mask
- Mask Interaction:None——Said do not use the mask
- Visable Inside Mask
- Visable Outside Mask
2.6 Sprite Sort Point The elves sorting point
仅当Draw Mode属性为SimpleThis attribute is used when.
2D项目中,Main CameraThe default projection for orthogonal projection,The projection modeUnityAccording to the elves as opposed toCameraOrder to render the distance of the elves.Sprite Sort PointDecide the position of the elves calculating distance,The default for the elvesCenter.
2.7 Material 材质
New elf default material isSprites-Default,The material is not affected by light.The right of the box can choose to want material.
2.8 Layer Layer related to
有Sorting Layer和Order in LayerTo set the position of the elves in the layer.
边栏推荐
- Web3 安全风险令人生畏?应该如何应对?
- Tolstoy: There are only two misfortunes in life
- DataGrip:非常好用的数据库工具,安装与使用教程,亮点介绍
- AI+BI+Visualization, Deep Analysis of Sugar BI Architecture
- 带你了解什么是 Web3.0
- 《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架
- C专家编程 第1章 C:穿越时空的迷雾 1.10 “安静的改变”究竟有多少安静
- 罗克韦尔AB PLC RSLogix5000中创建新项目、任务、程序和例程的具体方法和步骤
- 从MatePad Pro进化看鸿蒙OS的生态势能
- WordPress建站技术笔记
猜你喜欢
随机推荐
C专家编程 第1章 C:穿越时空的迷雾 1.8 ANSI C标准的结构
spark入门学习-2
C专家编程 第3章 分析C语言的声明 3.2 声明是如何形成的
【翻译】关于扩容一个百万级别用户系统的六个课程
高效的组织信息共享知识库是一种宝贵的资源
MATLAB | 七夕节快到了,还不给朋友安排上这个咕呱小青蛙?
DataGrip数据仓库工具
从零开始搭建MySQL主从复制架构
Detailed explanation of ReentrantReadWriteLock
Tolstoy: There are only two misfortunes in life
uniapp的webview滑动缩放
Introduction to spark learning - 1
面了个腾讯35k出来的,他让我见识到什么叫精通MySQL调优
C专家编程 第1章 C:穿越时空的迷雾 1.7 编译限制
高效的组织信息共享知识库是一种宝贵的资源
建造者模式/生成器模式
不可忽略!户外LED显示屏的特点及优势
C专家编程 第3章 分析C语言的声明 3.8 理解所有分析过程的代码段
[Unity Getting Started Plan] Basic Concepts (8) - Tile Map TileMap 01
13 and OOM simulation