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.
Inherited Members
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. |
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. |
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). |
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. |
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 |