docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SpeedTree8MaterialUpgrader

    Material upgrader and relevant utilities for SpeedTree 8.

    Inheritance
    object
    MaterialUpgrader
    SpeedTree8MaterialUpgrader
    Inherited Members
    MaterialUpgrader.NewShaderPath
    MaterialUpgrader.GetPropertyRenameMap(MaterialUpgrader.MaterialPropertyType)
    MaterialUpgrader.Upgrade(Material, MaterialUpgrader.UpgradeFlags)
    MaterialUpgrader.Convert(Material, Material)
    MaterialUpgrader.RenameShader(string, string, MaterialUpgrader.MaterialFinalizer)
    MaterialUpgrader.RenameTexture(string, string)
    MaterialUpgrader.RenameFloat(string, string)
    MaterialUpgrader.RenameColor(string, string)
    MaterialUpgrader.RemoveTexture(string)
    MaterialUpgrader.SetFloat(string, float)
    MaterialUpgrader.SetColor(string, Color)
    MaterialUpgrader.SetTexture(string, Texture)
    MaterialUpgrader.RenameKeywordToFloat(string, string, float, float)
    MaterialUpgrader.ProjectFolderContainsNonBuiltinMaterials(List<MaterialUpgrader>)
    MaterialUpgrader.UpgradeProjectFolder(List<MaterialUpgrader>, string, MaterialUpgrader.UpgradeFlags)
    MaterialUpgrader.UpgradeProjectFolder(List<MaterialUpgrader>, HashSet<string>, string, MaterialUpgrader.UpgradeFlags)
    MaterialUpgrader.Upgrade(Material, MaterialUpgrader, MaterialUpgrader.UpgradeFlags)
    MaterialUpgrader.Upgrade(Material, List<MaterialUpgrader>, MaterialUpgrader.UpgradeFlags)
    MaterialUpgrader.Upgrade(Material, List<MaterialUpgrader>, MaterialUpgrader.UpgradeFlags, ref string)
    MaterialUpgrader.UpgradeSelection(List<MaterialUpgrader>, string, MaterialUpgrader.UpgradeFlags)
    MaterialUpgrader.UpgradeSelection(List<MaterialUpgrader>, HashSet<string>, string, MaterialUpgrader.UpgradeFlags)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public class SpeedTree8MaterialUpgrader : MaterialUpgrader

    Constructors

    SpeedTree8MaterialUpgrader(string, string, MaterialFinalizer)

    Creates a material upgrader that handles the property renames that HD and Universal have in common when upgrading from the built-in SpeedTree 8 shader.

    Declaration
    public SpeedTree8MaterialUpgrader(string sourceShaderName, string destShaderName, MaterialUpgrader.MaterialFinalizer finalizer = null)
    Parameters
    Type Name Description
    string sourceShaderName

    Original SpeedTree8 shader name.

    string destShaderName

    New SpeedTree 8 shader name.

    MaterialUpgrader.MaterialFinalizer finalizer

    A delegate that postprocesses the material for the render pipeline in use.

    Methods

    PostprocessSpeedTree8Materials(GameObject, SpeedTreeImporter, MaterialFinalizer)

    Postprocesses materials while you are importing a SpeedTree 8 asset. Call from OnPostprocessSpeedTree in a MaterialPostprocessor.

    Declaration
    public static void PostprocessSpeedTree8Materials(GameObject speedtree, SpeedTreeImporter stImporter, MaterialUpgrader.MaterialFinalizer finalizer = null)
    Parameters
    Type Name Description
    GameObject speedtree

    The GameObject Unity creates from this imported SpeedTree.

    SpeedTreeImporter stImporter

    The asset importer used to import this SpeedTree asset.

    MaterialUpgrader.MaterialFinalizer finalizer

    Render pipeline-specific material finalizer.

    SpeedTree8MaterialFinalizer(Material)

    Preserves wind quality and billboard settings while you are upgrading a SpeedTree 8 material from previous versions of SpeedTree 8. Wind priority order is enabled keyword > _WindQuality float value. Should work for upgrading versions within a pipeline and from standard to current pipeline.

    Declaration
    public static void SpeedTree8MaterialFinalizer(Material material)
    Parameters
    Type Name Description
    Material material

    SpeedTree 8 material to upgrade.

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    In This Article
    Back to top
    Copyright © 2025 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)