使用此工具可以创建临时占位__精灵__ (2D) 图形。可在开发期间在项目中使用这些图形,然后再将其替换为要使用的图形。
选择 __Assets>Create>Sprites__,然后选择要创建的占位精灵(正方形、三角形、菱形、六边形或多边形)。
新的占位精灵在当前打开的资源文件夹中显示为白色形状。新精灵的名称默认为其形状名称,但可以选择在首次创建精灵后对其重命名。如果不确定要使用的名称,请将其保留为默认值;可以稍后通过单击更改名称。
可将占位精灵拖放到 Scene 视图__或 Hierarchy__ 中,然后即可在项目中开始使用该精灵。
要更改占位精灵,请在 Scene 视图__中单击该精灵,然后通过 Inspector__ 中的__精灵渲染器 (Sprite Renderer) 组件__进行编辑。
编辑 Sprite 字段:可单击输入字段右侧的小圆圈以显示 __Sprite Selector__,然后可在其中浏览并从可用 2D 图形资源菜单中进行选择。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.