docs.unity3d.com
    Show / Hide Table of Contents

    Class Texture

    A texture is defined by an image and a sampler.

    Inheritance
    Object
    NamedObject
    Texture
    Inherited Members
    NamedObject.name
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GLTFast.Schema
    Syntax
    [Serializable]
    public class Texture : NamedObject

    Fields

    extensions

    Declaration
    public TextureExtension extensions
    Field Value
    Type Description
    TextureExtension

    sampler

    The index of the sampler used by this texture.

    Declaration
    public int sampler
    Field Value
    Type Description
    Int32

    source

    The index of the image used by this texture.

    Declaration
    public int source
    Field Value
    Type Description
    Int32

    Properties

    IsKtx

    True, if the texture is of the KTX format.

    Declaration
    public bool IsKtx { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Equals(Object)

    Determines whether two object instances are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    Object.Equals(Object)

    GetHashCode()

    Default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for the current object.

    Overrides
    Object.GetHashCode()

    GetImageIndex()

    Retrieves the final image index.

    Declaration
    public int GetImageIndex()
    Returns
    Type Description
    Int32

    Final image index

    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