docs.unity3d.com
Version: 

    Class Occurrence

    An occurrence is the main type of node in the product structure, it can have children and prototypes

    Base class: GeomEntity

    classDiagram
        class Occurrence
        GeomEntity <|-- Occurrence
        Occurrence : +core.Ident Id
        Occurrence : +core.String Name
        Occurrence : +core.InheritableBool Visible
        Occurrence : +core.Entity Material
        Occurrence : +geom.Matrix4 Transform
        Occurrence : +core.Entity Prototype
    

    Functions accepting this type or a list of this type as a parameter:

    • algo.assembleCAD
    • algo.backToInitialBRep
    • algo.bakeImpostor
    • algo.bakeVertexAttributes
    • algo.calculateNormalsInPointClouds
    • algo.crackCADMoebiusStrip
    • algo.crackEdges
    • algo.crackMeshEdges
    • algo.createFreeEdgesFromPatches
    • algo.createIdentifiedPatchesFromPatches
    • algo.createIndexMapFromOccurrences
    • algo.createNormals
    • algo.createPointCloudKDTree
    • algo.createTangents
    • algo.createVertexColorFromMaterials
    • algo.createVisibilityPatchesFromPatch
    • algo.decimate
    • algo.decimateEdgeCollapse
    • algo.decimatePointClouds
    • algo.decimateTarget
    • algo.deleteAttibute
    • algo.deleteBRepShapes
    • algo.deleteFreeVertices
    • algo.deleteLines
    • algo.deleteNormals
    • algo.deletePatches
    • algo.deletePolygons
    • algo.deleteTangents
    • algo.deleteTextureCoordinates
    • algo.deleteVisibilityPatches
    • algo.evalDecimateErrorForTarget
    • algo.extractNeutralAxis
    • algo.filletMesh
    • algo.filterHiddenPolygons
    • algo.findBestPivotBetweenOccurrences
    • algo.getAllAxisFromCADModel
    • algo.getOptimalTextureResolution
    • algo.getTessellations
    • algo.getUV3dRatio
    • algo.getVisibilityStats
    • algo.getVisualComparisonFootprint
    • algo.identifyLinesOfInterest
    • algo.identifyPatches
    • algo.identifySharpEdges
    • algo.invertTangents
    • algo.lineToTexture
    • algo.listFeatures
    • algo.loopSubdivMesh
    • algo.mergeVertices
    • algo.meshBooleanOperation
    • algo.meshComparison
    • algo.meshComparisonBatch
    • algo.meshIntersections
    • algo.noiseMesh
    • algo.optimizeCADLoops
    • algo.optimizeForRendering
    • algo.optimizeSubMeshes
    • algo.optimizeTextureSize
    • algo.removeHoles
    • algo.repairCAD
    • algo.segmentMesh
    • algo.setFeatureComponentMaxIndex
    • algo.smoothMesh
    • algo.splitUVForAtlas
    • algo.sweep
    • algo.tessellate
    • algo.tessellatePointClouds
    • algo.tessellateRelativelyToAABB
    • algo.voxelizePointClouds
    • algo.combineMaterials
    • algo.transferUV
    • algo.convexDecomposition
    • algo.explodeBodies
    • algo.explodeByMaterials
    • algo.explodeByVertexCount
    • algo.explodeByVoxel
    • algo.explodeConnectedMeshes
    • algo.explodePatches
    • algo.createVisibilityInformation
    • algo.createVisibilityInformationAdvanced
    • algo.createVisibilityInformationFromViewPoints
    • algo.findOccludedPartOccurrences
    • algo.findOccludedPartOccurrencesAdvanced
    • algo.removeOccludedGeometries
    • algo.removeOccludedGeometriesAdvanced
    • algo.removeOccludedGeometriesFromPoints
    • algo.removeOccludedGeometriesFromViewPoints
    • algo.createOcclusionMesh
    • algo.dualContouring
    • algo.marchingCubes
    • algo.proxyMesh
    • algo.retopologize
    • algo.voxelize
    • algo.replaceBy
    • algo.replaceByBox
    • algo.replaceByConvexHull
    • algo.replaceByPrimitive
    • algo.sawWithAABB
    • algo.sawWithOBB
    • algo.sawWithOctree
    • algo.sawWithPlane
    • algo.convertSimilarPartOccurrencesToInstances
    • algo.convertSimilarPartOccurrencesToInstancesFast
    • algo.findSimilarPartOccurrencesFast
    • algo.alignUVIslands
    • algo.applyUvTransform
    • algo.automaticUVMapping
    • algo.copyUV
    • algo.getRatioUV3D
    • algo.getUVQualityMetrics
    • algo.getUvAabr
    • algo.hasOverlappingUV
    • algo.mapUvOnAABB
    • algo.mapUvOnBox
    • algo.mapUvOnCubicAABB
    • algo.mapUvOnCustomAABB
    • algo.mapUvOnCylinder
    • algo.mapUvOnFittingCylinder
    • algo.mapUvOnFittingSphere
    • algo.mapUvOnMBB
    • algo.mapUvOnPlane
    • algo.mapUvOnSphere
    • algo.mergeUVIslandsAffine
    • algo.mergeUVIslandsRelaxed
    • algo.normalizeUV
    • algo.removeUV
    • algo.repackUV
    • algo.resizeUVsToTextureSize
    • algo.scaleUV
    • algo.swapUvChannels
    • algo.unwrapUV
    • algo.getFittingCylinder
    • algo.getFittingSphere
    • algo.bakeMaps
    • algo.convertNormalMap
    • algo.createBillboard
    • algo.barySmooth
    • algo.crackMoebiusStrips
    • algo.crackNonManifoldVertices
    • algo.createCavityOccurrences
    • algo.invertPolygonFacesOrientation
    • algo.moebiusCracker
    • algo.orientNormals
    • algo.remeshSurfacicHoles
    • algo.removeDegeneratedPolygons
    • algo.removeMultiplePolygon
    • algo.removeZFighting
    • algo.repairMesh
    • algo.repairNullNormals
    • algo.separateToManifold
    • algo.sewBoundary
    • algo.vertexOffset
    • algo.orientPolygonFaces
    • algo.orientPolygonFacesAdvanced
    • algo.orientPolygonFacesFromCamera
    • algo.equilateralize
    • algo.quadify
    • algo.requadify
    • algo.triangularize
    • algo.createVertexWeightsFromVertexColors
    • algo.createVertexWeightsFromVisibilityAttributes
    • algo.deleteVertexWeights
    • algo.createVisibilityAttributes
    • algo.deleteVisibilityAttributes
    • algo.flagVisibilityAttributesOnTransparents
    • algo.transferVisibilityToPolygonalWeight
    • io.exportScene
    • io.importFiles
    • io.importPicture
    • io.importRemote3mxFile
    • io.importScene
    • scene.addComponent
    • scene.addComponents
    • scene.addInParentInstances
    • scene.computeSubTreeChecksum
    • scene.createHierarchicalClusters
    • scene.createOBBMesh
    • scene.createOccurrence
    • scene.createOccurrenceFromSelection
    • scene.createOccurrences
    • scene.createPartsFromMeshes
    • scene.deleteComponentByType
    • scene.deleteComponentsByType
    • scene.deleteEmptyOccurrences
    • scene.deleteOccurrences
    • scene.generateOctree
    • scene.getAABB
    • scene.getActiveMaterial
    • scene.getActiveMaterials
    • scene.getActivePropertyValue
    • scene.getActivePropertyValues
    • scene.getAncestors
    • scene.getComponent
    • scene.getComponentByOccurrence
    • scene.getComponents
    • scene.getGlobalMatrices
    • scene.getGlobalMatrix
    • scene.getGlobalVisibility
    • scene.getLocalMatrices
    • scene.getLocalMatrix
    • scene.getMBB
    • scene.getMaterialsFromSubtree
    • scene.getOBB
    • scene.getOccurrenceActiveMaterial
    • scene.getOccurrenceName
    • scene.getOccurrencesWithComponent
    • scene.getPartOccurrences
    • scene.getPolygonCount
    • scene.getSubTreeStats
    • scene.getVertexCount
    • scene.getVolume
    • scene.getVolumes
    • scene.hasComponent
    • scene.hide
    • scene.inverseVisibility
    • scene.isAncestorOf
    • scene.keepAncestors
    • scene.listComponents
    • scene.removeMaterials
    • scene.replaceMaterial
    • scene.setComponentOccurrence
    • scene.setOccurrenceMaterial
    • scene.setOccurrenceName
    • scene.show
    • scene.showOnly
    • scene.transferCADMaterialsOnPartOccurrences
    • scene.transferMaterialsOnPatches
    • scene.findDuplicatedPartOccurrences
    • scene.findOccurrencesByMetadata
    • scene.findOccurrencesByMetadataValue
    • scene.findOccurrencesByProperty
    • scene.findPartOccurrencesByActiveMaterial
    • scene.findPartOccurrencesByMaximumSize
    • scene.createSubTree
    • scene.getChildren
    • scene.getChildrenCount
    • scene.getFirstChild
    • scene.getNextSibling
    • scene.getOccurrenceAncestors
    • scene.getOccurrencesAncestors
    • scene.getParent
    • scene.getSubTree
    • scene.moveOccurrences
    • scene.setParent
    • scene.addLightComponent
    • scene.createLight
    • scene.createMetadatasFromDefinitions
    • scene.getSubpartMaterial
    • scene.listSubpartMaterials
    • scene.listSubpartVariantMaterials
    • scene.setSubpartMaterial
    • scene.setSubpartMaterials
    • scene.setSubpartVariantMaterials
    • scene.transferSubpartMaterialsOnPatches
    • scene.createAlternativeTree
    • scene.animatesThisOccurrence
    • scene.bakeAnimation
    • scene.createSkeletonMesh
    • scene.getAnimChannelIfExists
    • scene.getOccurrenceJoint
    • scene.moveAnimation
    • scene.getTessellationInfos
    • scene.print
    • scene.evaluateExpressionOnOccurrences
    • scene.evaluateExpressionOnSubTree
    • scene.getFilteredOccurrences
    • scene.isolate
    • scene.findPartOccurrencesWithUnstitchedOpenShells
    • scene.mergeOccurrencesByTreeLevel
    • scene.mergePartOccurrences
    • scene.mergePartOccurrencesByAssemblies
    • scene.mergePartOccurrencesByFinalAssemblies
    • scene.mergePartOccurrencesByMaterials
    • scene.mergePartOccurrencesByName
    • scene.mergePartOccurrencesByRegions
    • scene.mergePartOccurrencesWithSingleOpenShellByAssemblies
    • scene.applyTransformation
    • scene.createSymmetry
    • scene.rotate
    • scene.setLocalMatrices
    • scene.setLocalMatrix
    • scene.alignPivotPointToWorld
    • scene.movePivotPointToOccurrenceCenter
    • scene.movePivotPointToOrigin
    • scene.movePivotPointToSelectionCenter
    • scene.movePivotPointToTargetedOccurrenceCenter
    • scene.setPivotOnly
    • scene.convertPMIToOccurrences
    • scene.getOccurrenceAnnotationDefinitions
    • scene.cleanInstances
    • scene.getDirectInstances
    • scene.getInstances
    • scene.getPrototype
    • scene.getPrototypes
    • scene.prototypeSubTree
    • scene.setPrototype
    • scene.setPrototypes
    • scene.updateChildrenPrototypes
    • scene.invertSelect
    • scene.select
    • scene.unselect
    • scene.compress
    • scene.convertToOldSchoolVisibility
    • scene.getHiddenPartOccurrences
    • scene.getVisiblePartOccurrences
    • scene.makeInstanceUnique
    • scene.rake
    • scene.removeSymmetryMatrices
    • scene.resetPartTransform
    • scene.resetTransform
    • scene.rayCast
    • scene.rayCastAll
    • scene.getMultipleOccurrenceUserData
    • scene.getOccurrenceUserData
    • scene.hasMultipleOccurrenceUserData
    • scene.hasOccurrenceUserData
    • scene.setMultipleOccurrenceUserData
    • scene.setOccurrenceUserData
    • scene.unsetMultipleOccurrenceUserData
    • scene.unsetOccurrenceUserData
    • view.createGPUScene
    • view.getOccurrenceIndex
    • view.fitCamera
    • geom.applyTransform
    • geom.getEntityAABB
    • core.cloneEntity
    • core.deleteEntities
    • core.entityExists
    • core.getEntityType
    • core.getEntityTypeString
    • core.addCustomProperties
    • core.addCustomProperty
    • core.getProperties
    • core.getProperty
    • core.getPropertyInfo
    • core.hasCustomProperty
    • core.hasProperty
    • core.listProperties
    • core.listPropertiesBatch
    • core.removeCustomProperty
    • core.setProperties
    • core.setProperty
    • core.supportCustomProperties
    • core.unsetProperty
    • scene.linkPropertyToAnimation
    • scene.unlinkPropertyToAnimation
    Inheritance
    Occurrence
    Namespace: Scene
    Syntax
    Version 2025.2.0.1
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.