Struct Image2D | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Image2D

    Namespace: Unity.Tiny.Core2D
    Syntax
    public struct Image2D : IComponentData

    Fields

    disableSmoothing

    Disable image bilinear filtering. This is useful for pixel art assets. Defaults to false.

    Declaration
    public bool disableSmoothing
    Field Value
    Type Description
    System.Boolean

    hasAlpha

    Image contains any alpha values != 1. Set only after loading (status must be ImageStatus::Loaded). This is written to by the image loading system and should be treated as read only by user code.

    Declaration
    public bool hasAlpha
    Field Value
    Type Description
    System.Boolean

    imagePixelSize

    Image size in pixels. Set only after loading (status must be ImageStatus::Loaded). This is written to by the image loading system and should be treated as read only by user code.

    Declaration
    public float2 imagePixelSize
    Field Value
    Type Description
    float2

    status

    Load status of the image. This is written to by the image loading system and should be treated as read only by user code.

    Declaration
    public ImageStatus status
    Field Value
    Type Description
    ImageStatus
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023