docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureOrientationExtension

    Extensions to check if a texture's orientation conforms to Unity's default.

    Inheritance
    object
    TextureOrientationExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: KtxUnity
    Assembly: Ktx.dll
    Syntax
    public static class TextureOrientationExtension

    Methods

    IsXFlipped(TextureOrientation)

    Evaluates if the texture's horizontal orientation conforms to Unity's default. If it's not aligned (=true; =flipped), the texture has to be applied mirrored horizontally.

    Declaration
    public static bool IsXFlipped(this TextureOrientation to)
    Parameters
    Type Name Description
    TextureOrientation to
    Returns
    Type Description
    bool

    True if the horizontal orientation is flipped, false otherwise

    IsYFlipped(TextureOrientation)

    Evaluates if the texture's vertical orientation conforms to Unity's default. If it's not aligned (=true; =flipped), the texture has to be applied mirrored vertically.

    Declaration
    public static bool IsYFlipped(this TextureOrientation to)
    Parameters
    Type Name Description
    TextureOrientation to
    Returns
    Type Description
    bool

    True if the vertical orientation is flipped, false otherwise

    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)