# SpeedTreeImporter

> AssetImporter for importing SpeedTree model assets.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor
* **Inherits from:** [AssetImporter](/engine/6000.0/script-reference/unityeditor/assetimporter.md)

```csharp
public class SpeedTreeImporter : AssetImporter
```

## Static Fields

| Value                                                                                                 | Description                                           |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [windQualityNames](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/windqualitynames.md) | Gets an array of name strings for wind quality value. |

## Constructors

| Constructor                                                                                  | Description                               |
| -------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [SpeedTreeImporter()](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/ctor.md) | Construct a new SpeedTreeImporter object. |

## Properties

| Property                                                                                                                                | Description                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [alphaTestRef](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/alphatestref.md)                                           | Gets and sets a default alpha test reference values.                                                                                                                                                                               |
| [animateCrossFading](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/animatecrossfading.md)                               | Indicates if the cross-fade LOD transition, applied to the last mesh LOD and the billboard, should be animated.                                                                                                                    |
| [bestWindQuality](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/bestwindquality.md)                                     | Returns the best-possible wind quality on this asset (configured in SpeedTree modeler).                                                                                                                                            |
| [billboardTransitionCrossFadeWidth](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/billboardtransitioncrossfadewidth.md) | Proportion of the last 3D mesh LOD region width which is used for cross-fading to billboard tree.                                                                                                                                  |
| [castShadows](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/castshadows.md)                                             | Gets and sets an array of booleans to enable shadow casting for each LOD.                                                                                                                                                          |
| [castShadowsByDefault](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/castshadowsbydefault.md)                           | Gets and sets a boolean to toggle whether the imported SpeedTree casts shadows.                                                                                                                                                    |
| [defaultBillboardShader](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/defaultbillboardshader.md)                       | Returns the default SpeedTree billboard shader for the active render pipeline, or null if the asset is a SpeedTree v8 asset.                                                                                                       |
| [defaultShader](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/defaultshader.md)                                         | Returns the default SpeedTree shader for the active render pipeline (either v7 or v8 according to the asset version).                                                                                                              |
| [enableBump](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablebump.md)                                               | Gets and sets an array of booleans to enable normal mapping for each LOD.                                                                                                                                                          |
| [enableBumpByDefault](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablebumpbydefault.md)                             | Gets and sets a boolean to enable normal mapping on the imported SpeedTree model.                                                                                                                                                  |
| [enableHue](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablehue.md)                                                 | Gets and sets an array of booleans to enable hue variation effect for each LOD.                                                                                                                                                    |
| [enableHueByDefault](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablehuebydefault.md)                               | Gets and sets a boolean to enable hue variation effect on the imported SpeedTree model.                                                                                                                                            |
| [enableSettingOverride](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablesettingoverride.md)                         | Gets and sets an array of booleans to customize importer settings for a specific LOD.                                                                                                                                              |
| [enableSmoothLODTransition](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablesmoothlodtransition.md)                 | Enables smooth LOD transitions.                                                                                                                                                                                                    |
| [enableSubsurface](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablesubsurface.md)                                   | Gets and sets an array of booleans to enable the subsurface scattering effect for each LOD (affects only SpeedTree v8 assets).                                                                                                     |
| [enableSubsurfaceByDefault](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablesubsurfacebydefault.md)                 | Gets and sets a boolean to enable the subsurface scattering effect for the SpeedTree asset (affects only SpeedTree v8 assets).                                                                                                     |
| [fadeOutWidth](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/fadeoutwidth.md)                                           | Proportion of the billboard LOD region width which is used for fading out the billboard.                                                                                                                                           |
| [generateColliders](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/generatecolliders.md)                                 | Gets and sets the boolean to toggle collider object generation during import.                                                                                                                                                      |
| [generateRigidbody](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/generaterigidbody.md)                                 | Gets and sets the boolean to toggle Rigidbody generation during import.                                                                                                                                                            |
| [hasBillboard](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/hasbillboard.md)                                           | Tells if there is a billboard LOD.                                                                                                                                                                                                 |
| [hasImported](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/hasimported.md)                                             | Tells if the SPM file has been previously imported.                                                                                                                                                                                |
| [hueVariation](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/huevariation.md)                                           | Gets and sets a default hue variation color and amount (in alpha).                                                                                                                                                                 |
| [isV8](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/isv8.md)                                                           | Returns true if the asset is a SpeedTree v8 asset.                                                                                                                                                                                 |
| [LODHeights](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/lodheights.md)                                               | Gets and sets an array of floats of each LOD's screen height value.                                                                                                                                                                |
| [mainColor](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/maincolor.md)                                                 | Gets and sets a default main color.                                                                                                                                                                                                |
| [materialFolderPath](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/materialfolderpath.md)                               | Returns the folder path where generated materials will be placed in.                                                                                                                                                               |
| [materialLocation](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/materiallocation-1.md)                                 | Material import location options.                                                                                                                                                                                                  |
| [receiveShadows](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/receiveshadows.md)                                       | Gets and sets an array of booleans to enable shadow receiving for each LOD.                                                                                                                                                        |
| [receiveShadowsByDefault](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/receiveshadowsbydefault.md)                     | Gets and sets a boolean to enable whether the SpeedTree asset receives shadows from other objects in your scene.                                                                                                                   |
| [scaleFactor](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/scalefactor.md)                                             | How much to scale the tree model compared to what is in the imported SpeedTree model file.                                                                                                                                         |
| [selectedWindQuality](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/selectedwindquality.md)                             | Gets and sets an integer corresponding to the SpeedTreeWind enum values. The value is clamped by [SpeedTreeImporter.bestWindQuality](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/bestwindquality.md) internally. |
| [useLightProbes](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/uselightprobes.md)                                       | Gets and sets an array of booleans to enable Light Probe lighting for each LOD.                                                                                                                                                    |
| [useLightProbesByDefault](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/uselightprobesbydefault.md)                     | Gets and sets a boolean to enable light probe lighting for the imported SpeedTree model.                                                                                                                                           |
| [windQualities](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/windqualities.md)                                         | Gets and sets an array of integers of the wind qualities on each LOD. Values will be clamped by [SpeedTreeImporter.bestWindQuality](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/bestwindquality.md) internally.  |

## Methods

| Method                                                                                                              | Description                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [GenerateMaterials](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/generatematerials.md)             | Generates all necessary materials under materialFolderPath. If Version Control is enabled please first check out the folder. |
| [SearchAndRemapMaterials](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/searchandremapmaterials.md) | Search the project for matching materials and use them instead of the internal materials.                                    |

## Enums

| Enum                                                                                                                    | Description                       |
| ----------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| [SpeedTreeImporter.MaterialLocation](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/materiallocation.md) | Material import location options. |

## Inheritance

**Inherited Members:**

* [AssetImporter.GetImportLog(string)](/engine/6000.0/script-reference/unityeditor/assetimporter/getimportlog.md)
* [AssetImporter.SetAssetBundleNameAndVariant(string, string)](/engine/6000.0/script-reference/unityeditor/assetimporter/setassetbundlenameandvariant.md)
* [AssetImporter.GetAtPath(string)](/engine/6000.0/script-reference/unityeditor/assetimporter/getatpath.md)
* [AssetImporter.SaveAndReimport()](/engine/6000.0/script-reference/unityeditor/assetimporter/saveandreimport.md)
* [AssetImporter.AddRemap(SourceAssetIdentifier, Object)](/engine/6000.0/script-reference/unityeditor/assetimporter/addremap.md)
* [AssetImporter.RemoveRemap(SourceAssetIdentifier)](/engine/6000.0/script-reference/unityeditor/assetimporter/removeremap.md)
* [AssetImporter.GetExternalObjectMap()](/engine/6000.0/script-reference/unityeditor/assetimporter/getexternalobjectmap.md)
* [AssetImporter.SupportsRemappedAssetType(Type)](/engine/6000.0/script-reference/unityeditor/assetimporter/supportsremappedassettype.md)
* [AssetImporter.assetPath](/engine/6000.0/script-reference/unityeditor/assetimporter/assetpath.md)
* [AssetImporter.importSettingsMissing](/engine/6000.0/script-reference/unityeditor/assetimporter/importsettingsmissing.md)
* [AssetImporter.userData](/engine/6000.0/script-reference/unityeditor/assetimporter/userdata.md)
* [AssetImporter.assetBundleName](/engine/6000.0/script-reference/unityeditor/assetimporter/assetbundlename.md)
* [AssetImporter.assetBundleVariant](/engine/6000.0/script-reference/unityeditor/assetimporter/assetbundlevariant.md)
* [Object.GetInstanceID()](/engine/6000.0/script-reference/unityengine/object/getinstanceid.md)
* [Object.GetHashCode()](/engine/6000.0/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.0/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.0/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectssortmode\))
* [Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive-findobjectssortmode\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.0/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindObjectsByType\<T>(FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectssortmode\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive-findobjectssortmode\))
* [Object.FindFirstObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindFirstObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindFirstObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindFirstObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type-findobjectsinactive\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.0/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.0/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.0/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.0/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.0/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.0/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
