docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureBase

    A texture is defined by an image and a sampler.

    Inheritance
    object
    NamedObject
    TextureBase
    TextureBase<TExtensions>
    Inherited Members
    NamedObject.name
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Schema
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class TextureBase : NamedObject

    Fields

    sampler

    The index of the sampler used by this texture.

    Declaration
    public int sampler
    Field Value
    Type Description
    int

    source

    The index of the image used by this texture.

    Declaration
    public int source
    Field Value
    Type Description
    int

    Properties

    Extensions

    Texture extensions

    Declaration
    public abstract TextureExtensions Extensions { get; }
    Property Value
    Type Description
    TextureExtensions

    IsKtx

    True, if the texture is of the KTX format.

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

    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
    bool

    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
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    GetImageIndex()

    Retrieves the final image index.

    Declaration
    public int GetImageIndex()
    Returns
    Type Description
    int

    Final image index

    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)