zoukankan      html  css  js  c++  java
  • Unity2017.1官方UGUI文档翻译——Image

    Image

    图片

    The Image control displays a non-interactive image to the user. This can be used for decoration, icons, etc, and the image can also be changed from a script to reflect changes in other controls. The control is similar to the Raw Image control but offers more options for animating the image and accurately filing the control rectangle. However, the Image control requires its texture to be a Sprite, while the Raw Image can accept any texture.

    Image控件向用户展示一个不可交互的图片。它可以被用作装饰品、图标等。而且Image可以用脚本更改Image以反映其他控件的更改。这个控件类似于Raw Image控件但是提供了更多的设置来让图片用不同的方式填充空间的矩形空间。然而,Image控件的texture必须是Sprite,Raw Image却可以用所有类型的texture

    An Image control

    An Image control

    一个Image控件

    Properties

    Property:Function:
    Source Image The texture that represents the image to display (which must be imported as a Sprite).
    Color The color to apply to the image.
    Material The Material to use for rendering the image.
    Raycast Target Should this be considered a target for raycasting?
    Preserve Aspect Ensure image remains existing dimension.
    Set Native Size Button to set the dimensions of the image box to the original pixel size of the texture.
    属性功能
    Source Image 表示要显示的图像的纹理 (必须导入为 Sprite).
    Color 要应用于图像的颜色
    Material 用于渲染图片的Material
    Raycast Target 是否可以被射线投射
    Preserve Aspect 确保图像保持现有的长宽比
    Set Native Size

    设置图片的尺寸为texture的原始像素大小

     

    Details

    详细

    The image to display must be imported as a Sprite to work with the Image control.

    要显示的图像必须导入为 Sprite才能放到Image控件中

  • 相关阅读:
    体温填报APP--体温填报
    体温填报APP--主界面设计
    剑指Offer_#60_n个骰子的点数
    剑指Offer_#56-II_ 数组中数字出现的次数II
    剑指Offer_#56-I_数组中数字出现的次数
    剑指Offer_#55
    用Python从头开始构建神经网络
    使用RetinaNet构建的人脸口罩探测器
    如何利用PyTorch中的Moco-V2减少计算约束
    TF2目标检测API
  • 原文地址:https://www.cnblogs.com/SolarWings/p/8025563.html
Copyright © 2011-2022 走看看