docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ImportSettings

    Serializable container class for import settings. This class inherits from Unity's ScriptableObject and can be serialized. This allows users to save presets and to use them either from the Import Window or from scripting by declaring a public field in a MonoBehaviour class. This class can also be created at runtime.

    Inheritance
    object
    Object
    ScriptableObject
    ImportSettings
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.PixyzPlugin4Unity.Import
    Assembly: Unity.Pixyz.Plugin4Unity.dll
    Syntax
    public sealed class ImportSettings : ScriptableObject

    Fields

    Name Description
    avoidNegativeScale

    If true, all GameObjects that are considered as symmetries will have their transform baked in their mesh vertices.
    This will break instances for those GameObject's meshes, but avoid negative scales in transform that could cause issues such as lightmapping issues.

    combinePatchesByMaterial

    Should all patch be under the same submesh if they share the same material

    createLightmapUV

    Create Lightmap UVs.

    customMaterialSetup

    Used to translate pixyz custom material to unity material

    hasLODs

    The LODs (Level Of Detail) is an optimization feature that allows Unity to automatically switch a model quality depending on its occupancy relatively to the screen (in %).

    importLines

    Import lines such as laser marking. Only works if model has lines.

    importPatchBorders

    Imports patch boundaries as lines. Only works if model is a CAD model (has BReps).

    importPoints

    Import points, also called 'free vertices'. Points can be CAD position information or point cloud data for instance.

    isLeftHanded

    Mirror CAD right or left.

    isZUp

    Use this setting to rotate model from Z-up axis to Y-up axis.

    lightmapResolution

    Resolution (in pixels).

    loadMetadata

    Imports metadata from the imported model. Only available fi model has metadata and no processing is applied on the hierarchy.

    lodCount

    The number of LOD for point cloud imports

    lodsMode

    The LODs level tells if the LOD should be managed at assembly (Root) or at model (Leaves) level.

    mapUV

    Create a new projected primary UV set (channel #0).

    mapUV3dSize

    The size of the projection box used to create UVs.

    mergeBy

    Number: specify the number of output GameObject (or the number of regions of output GameObject) Size: specify the diagonal size of the output regions

    mergeType

    Choose whether to merge GameObjects into one GameObject or merge GameObjects by materials (one GameObject per material)

    numberOfRegions

    Specify the number of output GameObject (or the number of regions of output GameObject)

    orient

    Orient normals of adjacent faces consistently.

    orientation

    Choose whether Pixyz should automatically detect file orientation or choose your own file orientation system.

    qualities

    The LODs settings describes LODs to be generated with their associated threshold and quality.

    repair

    Is model repair enable

    repairInstances

    If true, Pixyz will attempt to detect similar GameObjects and recreate instances of their meshes.
    This can be used to repair instances or to simplify a model that has similar parts that could be instanciated instead to reduce the number of unique meshes (reduces drawcalls, GPU memory usage and file size).

    scaleFactor

    Scale factor applied to the whole assembly.

    shader

    If specified, the import will use the given shader to create materials contained in the imported model. If not specified, it will use the default shader for the current Render Pipeline.

    sizeOfRegions

    Specify the diagonal size of the output regions (in Unity unit)

    splitTo16BytesIndex

    Use this setting if you wish to create meshes limited to 65k vertices. Meshes will be created with a 16 bit index buffer (32 bit by default).
    Consider using this setting if you wish to publish the model on platform with limited power.

    stitchPatches

    Merge final assemblies: Use this setting to assemble together unconnected CAD surfaces prior to any data treatment at import (it is a pre-process)

    treeLevel

    Simplify the tree to this hierarchy level.

    treeProcess

    Use these functions to simplify the tree (or hierarchy) of your model.

    useMaterialsInResources

    If true, Pixyz will attempt to load materials whose name match the name of the imported one.
    Materials to load needs to be placed at the root of a Resources folder, somewhere in the project Assets.

    uvPadding

    Set the padding (in pixels) between UV islands.

    voxelizeGridSize

    Specify the size of each voxel for point cloud import

    Properties

    Name Description
    locked

    Allow to get/set if this importsetting is in a read only mode

    Methods

    Name Description
    invokeChanged()

    Safely send a changed event about this importsetting

    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)