当前位置:网站首页>[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.
边栏推荐
- 【系统学习编程-编程入门-全民编程 视频教程】
- 13 and OOM simulation
- Not to be ignored!Features and advantages of outdoor LED display
- mysql delete execution error: You can't specify target table 'doctor_info' for update in FROM clause
- 简易网络传输方法
- 【QT】Qt项目demo:数据在ui界面上显示,鼠标双击可弹窗显示具体信息
- 使用uniapp 封装一个request 请求
- MATLAB | 七夕节快到了,还不给朋友安排上这个咕呱小青蛙?
- C语言03、数组
- 世界顶级级架构师编写2580页DDD领域驱动设计笔记,属实有牌面
猜你喜欢
DataGrip:非常好用的数据库工具,安装与使用教程,亮点介绍
C专家编程 第3章 分析C语言的声明 3.8 理解所有分析过程的代码段
中小微企业如何简单便捷、低成本实现数字化?360视觉云有妙招
【QT】Qt项目demo:数据在ui界面上显示,鼠标双击可弹窗显示具体信息
详谈RDMA技术原理和三种实现方式
一文看懂推荐系统:概要02:推荐系统的链路,从召回粗排,到精排,到重排,最终推荐展示给用户
leetcode:187. 重复的DNA序列
想进阿里?先来搞懂一下分布式事务
Introduction to spark learning - 1
Small Tools (4) integrated Seata1.5.2 distributed transactions
随机推荐
Windows 事件转发到 SQL 数据库
CopyOnWriteArrayList details
新版本 MaxCompute 的SQL 中支持的 EXTRACT 函数有什么作用?
13 and OOM simulation
protobuf 反射使用总结
一文看懂推荐系统:概要02:推荐系统的链路,从召回粗排,到精排,到重排,最终推荐展示给用户
【QT】Qt 给已经开发好的程序快速封装成动态库
一文看懂推荐系统:召回03:基于用户的协同过滤(UserCF),要计算用户之间的相似度
C专家编程 第3章 分析C语言的声明 3.6 typedef int x[10]和#define x int[10]的区别
如何在 DataWorks 中 写SQL语句监控数据的变化到达一定的值 进行提示
Kubernetes 笔记 / 生产环境
滑环安装注意事项
面了个腾讯35k出来的,他让我见识到什么叫精通MySQL调优
附录A 程序员工作面试的秘密
虹科分享 | 如何测试与验证复杂的FPGA设计(3)——硬件测试
Why do I strongly recommend using smart async?
基于DMS的数仓智能运维服务,知多少?
#夏日挑战赛# HarmonyOS 实现一个绘画板
《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架
Tolstoy: There are only two misfortunes in life