docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum TextureOrientation

    See Section 5.2 in https://registry.khronos.org/KTX/specs/2.0/ktxspec.v2.html#_ktxorientation

    Namespace: KtxUnity
    Assembly: Ktx.dll
    Syntax
    [Flags]
    public enum TextureOrientation

    Fields

    Name Description
    KtxDefault

    KTX defaults to X=right Y=down Z=out

    UnityDefault

    Unity expects GPU textures to be X=right Y=up

    XLeft

    If present X=left, else X=right

    YUp

    If present Y=up, else Y=down

    ZIn

    If present Z=in, else Z=out

    Extension Methods

    TextureOrientationExtension.IsXFlipped(TextureOrientation)
    TextureOrientationExtension.IsYFlipped(TextureOrientation)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)