Class TextureGeneratorHelper | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureGeneratorHelper

    Inheritance
    System.Object
    TextureGeneratorHelper
    Namespace: UnityEditor.Experimental.U2D.Common
    Syntax
    public static class TextureGeneratorHelper

    Methods

    ExtractTextureAlphaSettings(TextureImporterSettings)

    Declaration
    public static TextureAlphaSettings ExtractTextureAlphaSettings(this TextureImporterSettings settings)
    Parameters
    Type Name Description
    TextureImporterSettings settings
    Returns
    Type Description
    TextureAlphaSettings

    ExtractTextureCubemapSettings(TextureImporterSettings)

    Declaration
    public static TextureCubemapSettings ExtractTextureCubemapSettings(this TextureImporterSettings settings)
    Parameters
    Type Name Description
    TextureImporterSettings settings
    Returns
    Type Description
    TextureCubemapSettings

    ExtractTextureMipmapSettings(TextureImporterSettings)

    Declaration
    public static TextureMipmapSettings ExtractTextureMipmapSettings(this TextureImporterSettings settings)
    Parameters
    Type Name Description
    TextureImporterSettings settings
    Returns
    Type Description
    TextureMipmapSettings

    ExtractTextureNormalSettings(TextureImporterSettings)

    Declaration
    public static TextureNormalSettings ExtractTextureNormalSettings(this TextureImporterSettings settings)
    Parameters
    Type Name Description
    TextureImporterSettings settings
    Returns
    Type Description
    TextureNormalSettings

    ExtractTextureSettings(TextureImporterSettings)

    Declaration
    public static TextureSettings ExtractTextureSettings(this TextureImporterSettings tis)
    Parameters
    Type Name Description
    TextureImporterSettings tis
    Returns
    Type Description
    TextureSettings

    ExtractTextureSpriteSettings(TextureImporterSettings)

    Declaration
    public static TextureSpriteSettings ExtractTextureSpriteSettings(this TextureImporterSettings tis)
    Parameters
    Type Name Description
    TextureImporterSettings tis
    Returns
    Type Description
    TextureSpriteSettings

    ExtractTextureWrapSettings(TextureImporterSettings)

    Declaration
    public static TextureWrapSettings ExtractTextureWrapSettings(this TextureImporterSettings tis)
    Parameters
    Type Name Description
    TextureImporterSettings tis
    Returns
    Type Description
    TextureWrapSettings

    GenerateCookie(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureAlphaSettings, TextureMipmapSettings, TextureCubemapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateCookie(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureAlphaSettings alphaSettings = null, TextureMipmapSettings mipmapSettings = null, TextureCubemapSettings cubemapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureAlphaSettings alphaSettings
    TextureMipmapSettings mipmapSettings
    TextureCubemapSettings cubemapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateLightmap(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureMipmapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateLightmap(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureMipmapSettings mipmapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureMipmapSettings mipmapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateNormalMap(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureNormalSettings, TextureMipmapSettings, TextureCubemapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateNormalMap(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureNormalSettings normalSettings, TextureMipmapSettings mipmapSettings = null, TextureCubemapSettings cubemapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureNormalSettings normalSettings
    TextureMipmapSettings mipmapSettings
    TextureCubemapSettings cubemapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateTextureCursor(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureAlphaSettings, TextureMipmapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateTextureCursor(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureAlphaSettings alphaSettings = null, TextureMipmapSettings mipmapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureAlphaSettings alphaSettings
    TextureMipmapSettings mipmapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateTextureDefault(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureAlphaSettings, TextureMipmapSettings, TextureCubemapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateTextureDefault(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureAlphaSettings alphaSettings = null, TextureMipmapSettings mipmapSettings = null, TextureCubemapSettings cubemapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureAlphaSettings alphaSettings
    TextureMipmapSettings mipmapSettings
    TextureCubemapSettings cubemapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateTextureGUI(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureAlphaSettings, TextureMipmapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateTextureGUI(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureAlphaSettings alphaSettings = null, TextureMipmapSettings mipmapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureAlphaSettings alphaSettings
    TextureMipmapSettings mipmapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateTextureSingleChannel(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureAlphaSettings, TextureMipmapSettings, TextureCubemapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateTextureSingleChannel(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureAlphaSettings alphaSettings = null, TextureMipmapSettings mipmapSettings = null, TextureCubemapSettings cubemapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureAlphaSettings alphaSettings
    TextureMipmapSettings mipmapSettings
    TextureCubemapSettings cubemapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput

    GenerateTextureSprite(NativeArray<Color32>, Int32, Int32, TextureSettings, TextureImporterPlatformSettings, TextureSpriteSettings, TextureAlphaSettings, TextureMipmapSettings, TextureWrapSettings)

    Declaration
    public static TextureGenerationOutput GenerateTextureSprite(NativeArray<Color32> buffer, int bufferWidth, int bufferHeight, TextureSettings settings, TextureImporterPlatformSettings platformSettings, TextureSpriteSettings spriteSettings, TextureAlphaSettings alphaSettings = null, TextureMipmapSettings mipmapSettings = null, TextureWrapSettings wrapSettings = null)
    Parameters
    Type Name Description
    NativeArray<Color32> buffer
    System.Int32 bufferWidth
    System.Int32 bufferHeight
    TextureSettings settings
    TextureImporterPlatformSettings platformSettings
    TextureSpriteSettings spriteSettings
    TextureAlphaSettings alphaSettings
    TextureMipmapSettings mipmapSettings
    TextureWrapSettings wrapSettings
    Returns
    Type Description
    TextureGenerationOutput
    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