unity 设置图片九宫格_Unity UGUI – Image组件

本文提供Unity UGUI中Image组件的全图文教程,包括属性解析、图片导入设置和四种图片类型(Simple、Sliced、Tiled、Filled)的详细说明,特别讲解了如何实现九宫格效果,帮助初学者快速掌握并避免踩坑。
摘要由CSDN通过智能技术生成

本文提供全图文流程,中文翻译

助力快速掌握UnityUGUI中 Image组件的使用

为初学者节省宝贵的时间,避免采坑!

Chinar —— 心分享、心创新!

我们的初衷是将一种简单的生活方式,带给世人

使有限时间 具备无限可能!

Chinar教程效果:

@

全文高清图片,点击即可放大观看(很多人竟然不知道)

1

Presentation —— 介绍

Image 组件是 UGUI 中最常用的组件。作用:控制/显示图片

1.1 Attribute —— 属性

我们创建一个 Image 组件看一下它的属性:

在Unity的 Hierarchy 面板上右键–>UI–>Image

选中我们创建的 Image 对象,在 Inspector 面板上查看属性

下面看一下每个属性的详细功能

属性

功能

Source Image

需要显示图片来源(文件引用)

Color

图片的颜色

Material

渲染图像的材质

Raycast Target

能否接收到射线检测

Image Type

图片的排列类型

拯救者15ISK 解锁nvme pcie3.0w 使速度可以到达2300MB/s -? or -h Show this help. -fea Checking whether BIOS support all functions of tool. -r Dump ROM image to file. -a Auto Reset. -l Load Default. -c Load Custom Setting. -gs [-all] Generate setup utility setting to file. (-all: optional , include suppress and grayout setting) -ss Modify setup variable with specified file. -ms -fi -op Modify a setup utility setting. -gd Read image file, and generate setup utility default setting to file. -sd Modify setup utility default setting with specified file on image file. -gstr -s|-b Read image file, and generate setup(-s) or setup browser(-b) string setting. -sstr -s|-b Modify setup or setup browser strings with specified file. -gv Generate variable information to file. -sv Modify variable with specified file. -re -vn -vg Remove a variable by name or GUID. -gi Read image file, and generate variable information to file. -si Modify variable with specified file on image file. -gk Generate BIOS Hotkey setting to file. -mcl List Multi-Config information. -mcl -f|-k Dump the specified config setting to file. -mca -f|-k Add an new config setting with specified file. -mcm -f|-k Modify config setting with specified file. -mcd -f|-k Delete the specified config setting. -lmc [BIOS] -f|-k Load the specified config setting from Multi-Config.(BIOS: optional, it use on Full type to set default setting from BIOS) -i Operation on image. (for Multi-Config command) -out Save as an new ImageFile.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值