docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CreateTextureGenerationSettingsNode.Inputs

    The list of TextureGenerationSettings that can be driven from this graph node.

    Inheritance
    object
    InputPorts
    CreateTextureGenerationSettingsNode.Inputs
    Inherited Members
    InputPorts.AssetLoading
    InputPorts.GraphLogger
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Importer.USD
    Assembly: Unity.Importer.USD.Editor.dll
    Syntax
    public class CreateTextureGenerationSettingsNode.Inputs : InputPorts

    Fields

    allowsAlphaSplitting

    Allows alpha splitting for this Texture on these platforms: tvOS, iOS, Lumin, and Android.

    Declaration
    public bool allowsAlphaSplitting
    Field Value
    Type Description
    bool
    Remarks

    This setting is not exposed in our default graph and is always set to false from an ImportConstant<T>.

    See Also
    allowsAlphaSplitting

    alphaIsTransparency

    Indicates whether to dilate the color channels.

    Declaration
    public bool alphaIsTransparency
    Field Value
    Type Description
    bool
    Remarks

    This helps to avoid filtering artifacts on the edges of the alpha channel if the alpha channel represents transparency.

    See Also
    alphaIsTransparency

    alphaSource

    Select how the alpha of the imported texture is generated.

    Declaration
    public TextureImporterAlphaSource alphaSource
    Field Value
    Type Description
    TextureImporterAlphaSource
    See Also
    alphaSource

    androidETC2FallbackOverride

    ETC2 texture decompression fallback override on Android devices that don’t support ETC2.

    Declaration
    public AndroidETC2FallbackOverride androidETC2FallbackOverride
    Field Value
    Type Description
    AndroidETC2FallbackOverride
    Remarks

    This setting is not exposed in our default graph and is always set to Quality32Bit from an ImportConstant<T>.

    See Also
    androidETC2FallbackOverride

    anisoLevel

    Controls the texture quality when you view the texture at a steep angle.

    Declaration
    public int anisoLevel
    Field Value
    Type Description
    int
    See Also
    aniso

    compression

    Choose the compression type for the Texture.

    Declaration
    public TextureImporterCompression compression
    Field Value
    Type Description
    TextureImporterCompression
    See Also
    textureCompression

    createFromGrayScale

    Indicates whether to create the normal map from a grayscale heightmap.

    Declaration
    public NormalMapFromGrayScale createFromGrayScale
    Field Value
    Type Description
    NormalMapFromGrayScale
    See Also
    NormalMapFromGrayScale

    crunchedCompression

    Use crunch compression, if applicable.

    Declaration
    public CrunchedCompression crunchedCompression
    Field Value
    Type Description
    CrunchedCompression
    See Also
    CrunchedCompression

    filterMode

    Specifies how Unity filters the texture when the texture stretches during 3D transformations.

    Declaration
    public FilterMode filterMode
    Field Value
    Type Description
    FilterMode
    See Also
    filterMode

    flipGreenChannel

    Indicates whether to invert the green (Y) channel values of a normal map.

    Declaration
    public bool flipGreenChannel
    Field Value
    Type Description
    bool
    See Also
    flipGreenChannel

    format

    Select the internal representation format of the texture.

    Declaration
    public TextureImporterFormat format
    Field Value
    Type Description
    TextureImporterFormat
    See Also
    format

    ignorePNGGamma

    Ignore the Gamma attribute in PNG files. This property does not effect other file formats.

    Declaration
    public bool ignorePNGGamma
    Field Value
    Type Description
    bool
    See Also
    ignorePngGamma

    maxSize

    Set the maximum imported Texture dimensions in pixels.

    Declaration
    public int maxSize
    Field Value
    Type Description
    int
    See Also
    maxTextureSize

    mipMaps

    Specifies if and how mipmaps have to be generated for the textures.

    Declaration
    public MipMapSettings mipMaps
    Field Value
    Type Description
    MipMapSettings
    See Also
    MipMapSettings

    mipmapBias

    The mipmap bias of the Texture.

    Declaration
    public float mipmapBias
    Field Value
    Type Description
    float
    See Also
    mipmapBias
    mipMapBias

    npotScale

    Specifies how Unity scales the dimension size if the texture source file has a non-power of two (NPOT) dimension size.

    Declaration
    public TextureImporterNPOTScale npotScale
    Field Value
    Type Description
    TextureImporterNPOTScale
    See Also
    npotScale

    readable

    Indicates whether it is possible to access the texture data from scripts using SetPixels(int, int, int, int, Color[], int), GetPixels(int, int, int, int, int) and other Texture2D methods.

    Declaration
    public bool readable
    Field Value
    Type Description
    bool
    See Also
    readable

    resizeAlgorithm

    Choose an algorithm for downscaling the Texture when the Texture dimensions are larger than the specified maxSize.

    Declaration
    public TextureResizeAlgorithm resizeAlgorithm
    Field Value
    Type Description
    TextureResizeAlgorithm
    See Also
    resizeAlgorithm

    sRGB

    Tells whether the texture contain color data or other type of data.

    Declaration
    public bool sRGB
    Field Value
    Type Description
    bool
    Remarks

    Textures like normal map, metallic map or roughness map usually don't contain color data and should set this setting to false.

    See Also
    sRGBTexture

    textureType

    The TextureImporterType of the texture.

    Declaration
    public TextureImporterType textureType
    Field Value
    Type Description
    TextureImporterType
    Remarks

    The default value is Default. It can be set to NormalMap to tell the TextureGenerator to create a Normal Map Texture.

    See Also
    textureType

    wrapMode

    Specifies how the texture behaves when it tiles.

    Declaration
    public TextureWrapModeSettings wrapMode
    Field Value
    Type Description
    TextureWrapModeSettings
    See Also
    wrapMode
    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)