Version: Unity 6.2 Alpha (6000.2)
Language : English
Add a Sprite Renderer to an existing GameObject
Set the sort point of a sprite

Change the color of a sprite

The image below demonstrates the effect of changing the RGB values on the SpriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
Renderer’s
Color setting. To change a Sprite’s opacity, change the value of its Color property’s Alpha (A) channel.

Left: The original Sprite. Right: The Sprite with its RGB colors set to red.
Left: The original Sprite. Right: The Sprite with its RGB colors set to red.

SpriteRenderer


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Add a Sprite Renderer to an existing GameObject
Set the sort point of a sprite
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961