Jos*_*hua 1 user-interface unity-game-engine
图像是否必须是特定类型,因此您只需将其从Unity项目中的文件夹中拖放,然后将其放在元素组件的Source Image字段顶部,例如?ImageUIPanel
我尝试用jpg徽标做这个,以便将它应用到Panel元素,但它不适用...
导航到Unity Editor中的.jpg文件并选择它,以便详细信息显示在Unity Inspector面板中,然后更改Texture Type为Sprite (2D and UI).现在可以将此新Sprite元素分配给组件的Source Image字段Image.