# SketchUpImporter

> Derives from AssetImporter to handle importing of SketchUp files.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor
* **Inherits from:** [ModelImporter](/engine/6000.3/script-reference/unityeditor/modelimporter.md)

```csharp
public sealed class SketchUpImporter : ModelImporter
```

## Remarks

From the SketchUpImporter, you can access certain properties that are extracted from the SketchUp file.

The following is an example of showing the geo coordinate extracted from the SketchUp file.

## Examples

```csharp
using UnityEngine;
using UnityEditor;

public class SketchUpUtility
{
    public static void ShowGeoCoordinate(GameObject go)
    {
        string assetPath = AssetDatabase.GetAssetPath(go); // get asset path
        // get SketchUpImporter
        SketchUpImporter importer = AssetImporter.GetAtPath(assetPath) as SketchUpImporter;
        if (importer == null)
        {
            Debug.Log("This object is not imported by SketchUpImporter");
            return;
        }

        Debug.Log(string.Format("Lat:{0} Long:{1} NorthCorrection:{2}", importer.latitude, importer.longitude, importer.northCorrection));
    }
}
```

## Properties

| Property                                                                                           | Description                                                             |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [latitude](/engine/6000.3/script-reference/unityeditor/sketchupimporter/latitude.md)               | Retrieves the latitude Geo Coordinate imported from the SketchUp file.  |
| [longitude](/engine/6000.3/script-reference/unityeditor/sketchupimporter/longitude.md)             | Retrieves the longitude Geo Coordinate imported from the SketchUp file. |
| [northCorrection](/engine/6000.3/script-reference/unityeditor/sketchupimporter/northcorrection.md) | Retrieves the north correction value imported from the SketchUp file.   |

## Methods

| Method                                                                                               | Description                                                                                  |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [GetDefaultCamera](/engine/6000.3/script-reference/unityeditor/sketchupimporter/getdefaultcamera.md) | The default camera or the camera of the active Scene which the SketchUp file was saved with. |
| [GetScenes](/engine/6000.3/script-reference/unityeditor/sketchupimporter/getscenes.md)               | The method returns an array of SketchUpImportScene which represents SketchUp scenes.         |

## Inheritance

**Inherited Members:**

* [ModelImporter.GetReferencedClipsForModelPath(string)](/engine/6000.3/script-reference/unityeditor/modelimporter/getreferencedclipsformodelpath.md)
* [ModelImporter.CreateDefaultMaskForClip(ModelImporterClipAnimation)](/engine/6000.3/script-reference/unityeditor/modelimporter/createdefaultmaskforclip.md)
* [ModelImporter.ExtractTextures(string)](/engine/6000.3/script-reference/unityeditor/modelimporter/extracttextures.md)
* [ModelImporter.SearchAndRemapMaterials(ModelImporterMaterialName, ModelImporterMaterialSearch)](/engine/6000.3/script-reference/unityeditor/modelimporter/searchandremapmaterials.md)
* [ModelImporter.materialName](/engine/6000.3/script-reference/unityeditor/modelimporter/materialname.md)
* [ModelImporter.materialSearch](/engine/6000.3/script-reference/unityeditor/modelimporter/materialsearch.md)
* [ModelImporter.materialLocation](/engine/6000.3/script-reference/unityeditor/modelimporter/materiallocation.md)
* [ModelImporter.searchTexturesGlobally](/engine/6000.3/script-reference/unityeditor/modelimporter/searchtexturesglobally.md)
* [ModelImporter.globalScale](/engine/6000.3/script-reference/unityeditor/modelimporter/globalscale.md)
* [ModelImporter.isUseFileUnitsSupported](/engine/6000.3/script-reference/unityeditor/modelimporter/isusefileunitssupported.md)
* [ModelImporter.importVisibility](/engine/6000.3/script-reference/unityeditor/modelimporter/importvisibility.md)
* [ModelImporter.useFileUnits](/engine/6000.3/script-reference/unityeditor/modelimporter/usefileunits.md)
* [ModelImporter.fileScale](/engine/6000.3/script-reference/unityeditor/modelimporter/filescale.md)
* [ModelImporter.useFileScale](/engine/6000.3/script-reference/unityeditor/modelimporter/usefilescale.md)
* [ModelImporter.importBlendShapes](/engine/6000.3/script-reference/unityeditor/modelimporter/importblendshapes.md)
* [ModelImporter.importBlendShapeDeformPercent](/engine/6000.3/script-reference/unityeditor/modelimporter/importblendshapedeformpercent.md)
* [ModelImporter.importCameras](/engine/6000.3/script-reference/unityeditor/modelimporter/importcameras.md)
* [ModelImporter.importLights](/engine/6000.3/script-reference/unityeditor/modelimporter/importlights.md)
* [ModelImporter.addCollider](/engine/6000.3/script-reference/unityeditor/modelimporter/addcollider.md)
* [ModelImporter.normalSmoothingAngle](/engine/6000.3/script-reference/unityeditor/modelimporter/normalsmoothingangle.md)
* [ModelImporter.swapUVChannels](/engine/6000.3/script-reference/unityeditor/modelimporter/swapuvchannels.md)
* [ModelImporter.weldVertices](/engine/6000.3/script-reference/unityeditor/modelimporter/weldvertices.md)
* [ModelImporter.bakeAxisConversion](/engine/6000.3/script-reference/unityeditor/modelimporter/bakeaxisconversion.md)
* [ModelImporter.optimizeBones](/engine/6000.3/script-reference/unityeditor/modelimporter/optimizebones.md)
* [ModelImporter.keepQuads](/engine/6000.3/script-reference/unityeditor/modelimporter/keepquads.md)
* [ModelImporter.indexFormat](/engine/6000.3/script-reference/unityeditor/modelimporter/indexformat.md)
* [ModelImporter.preserveHierarchy](/engine/6000.3/script-reference/unityeditor/modelimporter/preservehierarchy.md)
* [ModelImporter.generateSecondaryUV](/engine/6000.3/script-reference/unityeditor/modelimporter/generatesecondaryuv.md)
* [ModelImporter.secondaryUVAngleDistortion](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvangledistortion.md)
* [ModelImporter.secondaryUVAreaDistortion](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvareadistortion.md)
* [ModelImporter.secondaryUVHardAngle](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvhardangle.md)
* [ModelImporter.secondaryUVMarginMethod](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvmarginmethod.md)
* [ModelImporter.secondaryUVPackMargin](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvpackmargin.md)
* [ModelImporter.secondaryUVMinLightmapResolution](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvminlightmapresolution.md)
* [ModelImporter.secondaryUVMinObjectScale](/engine/6000.3/script-reference/unityeditor/modelimporter/secondaryuvminobjectscale.md)
* [ModelImporter.generateMeshLods](/engine/6000.3/script-reference/unityeditor/modelimporter/generatemeshlods.md)
* [ModelImporter.meshLodGenerationFlags](/engine/6000.3/script-reference/unityeditor/modelimporter/meshlodgenerationflags.md)
* [ModelImporter.maximumMeshLod](/engine/6000.3/script-reference/unityeditor/modelimporter/maximummeshlod.md)
* [ModelImporter.generateAnimations](/engine/6000.3/script-reference/unityeditor/modelimporter/generateanimations.md)
* [ModelImporter.importedTakeInfos](/engine/6000.3/script-reference/unityeditor/modelimporter/importedtakeinfos.md)
* [ModelImporter.transformPaths](/engine/6000.3/script-reference/unityeditor/modelimporter/transformpaths.md)
* [ModelImporter.referencedClips](/engine/6000.3/script-reference/unityeditor/modelimporter/referencedclips.md)
* [ModelImporter.isReadable](/engine/6000.3/script-reference/unityeditor/modelimporter/isreadable.md)
* [ModelImporter.meshOptimizationFlags](/engine/6000.3/script-reference/unityeditor/modelimporter/meshoptimizationflags.md)
* [ModelImporter.optimizeMeshPolygons](/engine/6000.3/script-reference/unityeditor/modelimporter/optimizemeshpolygons.md)
* [ModelImporter.optimizeMeshVertices](/engine/6000.3/script-reference/unityeditor/modelimporter/optimizemeshvertices.md)
* [ModelImporter.skinWeights](/engine/6000.3/script-reference/unityeditor/modelimporter/skinweights.md)
* [ModelImporter.maxBonesPerVertex](/engine/6000.3/script-reference/unityeditor/modelimporter/maxbonespervertex.md)
* [ModelImporter.minBoneWeight](/engine/6000.3/script-reference/unityeditor/modelimporter/minboneweight.md)
* [ModelImporter.importNormals](/engine/6000.3/script-reference/unityeditor/modelimporter/importnormals.md)
* [ModelImporter.normalSmoothingSource](/engine/6000.3/script-reference/unityeditor/modelimporter/normalsmoothingsource.md)
* [ModelImporter.importBlendShapeNormals](/engine/6000.3/script-reference/unityeditor/modelimporter/importblendshapenormals.md)
* [ModelImporter.normalCalculationMode](/engine/6000.3/script-reference/unityeditor/modelimporter/normalcalculationmode.md)
* [ModelImporter.importTangents](/engine/6000.3/script-reference/unityeditor/modelimporter/importtangents.md)
* [ModelImporter.bakeIK](/engine/6000.3/script-reference/unityeditor/modelimporter/bakeik.md)
* [ModelImporter.isBakeIKSupported](/engine/6000.3/script-reference/unityeditor/modelimporter/isbakeiksupported.md)
* [ModelImporter.resampleCurves](/engine/6000.3/script-reference/unityeditor/modelimporter/resamplecurves.md)
* [ModelImporter.isTangentImportSupported](/engine/6000.3/script-reference/unityeditor/modelimporter/istangentimportsupported.md)
* [ModelImporter.removeConstantScaleCurves](/engine/6000.3/script-reference/unityeditor/modelimporter/removeconstantscalecurves.md)
* [ModelImporter.strictVertexDataChecks](/engine/6000.3/script-reference/unityeditor/modelimporter/strictvertexdatachecks.md)
* [ModelImporter.meshCompression](/engine/6000.3/script-reference/unityeditor/modelimporter/meshcompression.md)
* [ModelImporter.importAnimation](/engine/6000.3/script-reference/unityeditor/modelimporter/importanimation.md)
* [ModelImporter.optimizeGameObjects](/engine/6000.3/script-reference/unityeditor/modelimporter/optimizegameobjects.md)
* [ModelImporter.extraExposedTransformPaths](/engine/6000.3/script-reference/unityeditor/modelimporter/extraexposedtransformpaths.md)
* [ModelImporter.extraUserProperties](/engine/6000.3/script-reference/unityeditor/modelimporter/extrauserproperties.md)
* [ModelImporter.animationCompression](/engine/6000.3/script-reference/unityeditor/modelimporter/animationcompression.md)
* [ModelImporter.importAnimatedCustomProperties](/engine/6000.3/script-reference/unityeditor/modelimporter/importanimatedcustomproperties.md)
* [ModelImporter.importConstraints](/engine/6000.3/script-reference/unityeditor/modelimporter/importconstraints.md)
* [ModelImporter.animationRotationError](/engine/6000.3/script-reference/unityeditor/modelimporter/animationrotationerror.md)
* [ModelImporter.animationPositionError](/engine/6000.3/script-reference/unityeditor/modelimporter/animationpositionerror.md)
* [ModelImporter.animationScaleError](/engine/6000.3/script-reference/unityeditor/modelimporter/animationscaleerror.md)
* [ModelImporter.animationWrapMode](/engine/6000.3/script-reference/unityeditor/modelimporter/animationwrapmode.md)
* [ModelImporter.animationType](/engine/6000.3/script-reference/unityeditor/modelimporter/animationtype.md)
* [ModelImporter.humanoidOversampling](/engine/6000.3/script-reference/unityeditor/modelimporter/humanoidoversampling.md)
* [ModelImporter.motionNodeName](/engine/6000.3/script-reference/unityeditor/modelimporter/motionnodename.md)
* [ModelImporter.avatarSetup](/engine/6000.3/script-reference/unityeditor/modelimporter/avatarsetup.md)
* [ModelImporter.sourceAvatar](/engine/6000.3/script-reference/unityeditor/modelimporter/sourceavatar.md)
* [ModelImporter.humanDescription](/engine/6000.3/script-reference/unityeditor/modelimporter/humandescription.md)
* [ModelImporter.clipAnimations](/engine/6000.3/script-reference/unityeditor/modelimporter/clipanimations.md)
* [ModelImporter.defaultClipAnimations](/engine/6000.3/script-reference/unityeditor/modelimporter/defaultclipanimations.md)
* [ModelImporter.useSRGBMaterialColor](/engine/6000.3/script-reference/unityeditor/modelimporter/usesrgbmaterialcolor.md)
* [ModelImporter.sortHierarchyByName](/engine/6000.3/script-reference/unityeditor/modelimporter/sorthierarchybyname.md)
* [ModelImporter.materialImportMode](/engine/6000.3/script-reference/unityeditor/modelimporter/materialimportmode.md)
* [ModelImporter.autoGenerateAvatarMappingIfUnspecified](/engine/6000.3/script-reference/unityeditor/modelimporter/autogenerateavatarmappingifunspecified.md)
* [AssetImporter.GetImportLog(string)](/engine/6000.3/script-reference/unityeditor/assetimporter/getimportlog.md)
* [AssetImporter.SetAssetBundleNameAndVariant(string, string)](/engine/6000.3/script-reference/unityeditor/assetimporter/setassetbundlenameandvariant.md)
* [AssetImporter.GetAtPath(string)](/engine/6000.3/script-reference/unityeditor/assetimporter/getatpath.md)
* [AssetImporter.SaveAndReimport()](/engine/6000.3/script-reference/unityeditor/assetimporter/saveandreimport.md)
* [AssetImporter.AddRemap(SourceAssetIdentifier, Object)](/engine/6000.3/script-reference/unityeditor/assetimporter/addremap.md)
* [AssetImporter.RemoveRemap(SourceAssetIdentifier)](/engine/6000.3/script-reference/unityeditor/assetimporter/removeremap.md)
* [AssetImporter.GetExternalObjectMap()](/engine/6000.3/script-reference/unityeditor/assetimporter/getexternalobjectmap.md)
* [AssetImporter.SupportsRemappedAssetType(Type)](/engine/6000.3/script-reference/unityeditor/assetimporter/supportsremappedassettype.md)
* [AssetImporter.assetPath](/engine/6000.3/script-reference/unityeditor/assetimporter/assetpath.md)
* [AssetImporter.importSettingsMissing](/engine/6000.3/script-reference/unityeditor/assetimporter/importsettingsmissing.md)
* [AssetImporter.userData](/engine/6000.3/script-reference/unityeditor/assetimporter/userdata.md)
* [AssetImporter.assetBundleName](/engine/6000.3/script-reference/unityeditor/assetimporter/assetbundlename.md)
* [AssetImporter.assetBundleVariant](/engine/6000.3/script-reference/unityeditor/assetimporter/assetbundlevariant.md)
* [Object.GetInstanceID()](/engine/6000.3/script-reference/unityengine/object/getinstanceid.md)
* [Object.GetHashCode()](/engine/6000.3/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.3/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.3/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.3/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.3/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.3/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.3/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.3/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.3/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.3/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.3/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type, FindObjectsSortMode)](/engine/6000.3/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectssortmode\))
* [Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)](/engine/6000.3/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive-findobjectssortmode\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.3/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindObjectsByType\<T>(FindObjectsSortMode)](/engine/6000.3/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectssortmode\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive, FindObjectsSortMode)](/engine/6000.3/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive-findobjectssortmode\))
* [Object.FindFirstObjectByType\<T>()](/engine/6000.3/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>()](/engine/6000.3/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindFirstObjectByType\<T>(FindObjectsInactive)](/engine/6000.3/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.3/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindFirstObjectByType(Type)](/engine/6000.3/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.3/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindFirstObjectByType(Type, FindObjectsInactive)](/engine/6000.3/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type-findobjectsinactive\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.3/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.3/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.3/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.3/script-reference/unityengine/object/hideflags.md)

### Operators

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