docs.unity3d.com
Version: 

    Python API Change Log

    Release 2022.1.1.4 to 2022.1.2.7

    Released on September 7, 2023.

    Upgrade

    Upgrade to Python 3.8.17.

    Release 2022.1.0.36 to 2022.1.1.4

    Released November 14, 2022.

    Upgrade

    No change to the Python API.

    Release 2021.1.1.5 to 2022.1.0.36

    Released July 11, 2022.

    Added functions

    All modules

    • configureFunctionLogger()

    Module: Algo

    • crackCADMoebiusStrip()
    • createPointCloudKDTree()
    • createCosinusCurve()

    Module: Scene

    • addComponents()
    • createSubTree() - replacing createCompleteTree()
    • getSubTree() - replacing getCompleteTree(). Minor change: the "PackedTree" does not contain parts and meshes directly. Use scene.getComponentByOccurrence(occurrences, scene.ComponentType.Part) to retrieve parts from occurrences and scene.getPartsMeshes(parts) to access the meshes.
    • deleteEmptyAnimation()

    Module: View

    • getCuttingPlaneProperty()
    • getViewerGLContext()

    Removed functions

    Module: Scene

    • createCompleteTree() - replaced with createSubTree()
    • getCompleteTree() - replaced with getSubTree()

    Module: View

    • fitView()
    • getCurrentCamera
    • getMainViewerCuttingPlaneProperty()
    • getMainViewerProperty()
    • getProjectionMatrix()

    Modified functions

    Module: Algo

    • convexDecomposition

      convexDecomposition(occurrences, maxCount, vertexCount, approximate, /, resolution, concavity)

      Experimental:Explode each mesh to approximate convex decomposition

      • Parameters

        • occurrences: OccurrenceList

          Occurrences of part to process

        • maxCount: Int

          Maximum number of convex hulls to be generated

        • vertexCount: Int

          Maximum number of vertices per convex hull

        • approximate: Boolean

          Approximate method

        • resolution: Int , optional

          (default: 100000)

          Resolution

        • concavity: Double , optional

          (default: 0.001)

          Concavity

      • Returns

        • newOccurrences: OccurrenceList

        • Resulting occurrences of the convexDecomposition

    • createTangents

      createTangents(occurrences, /, , uvChannel, override)

      Create tangent attributes on tessellations

      • Parameters

        • occurrences: OccurrenceList

          Occurrences of components to create attributes

        • sharpEdge: Angle , optional

          (default: -1)

          Edges with an angle between their polygons greater than sharpEdge will be considered sharp (default use the Pixyz sharpAngle parameter)

    Module: View

    • createViewer

      createViewer(width, height, /, handleSelection, forward, glContextHandle)

      Create a new viewer

      • Parameters

        • width: Int

          Width of the viewer framebuffer

        • height: Int

          Height of the viewer framebuffer

        • handleSelection: Bool , optional

          (default: true)

          Does the viewer handle selection of occurrences

        • forward: Bool , optional

          (default: true)

          Does the viewer use forward (true) or deferred (false) rendering

        • glContextHandle: GLContextHandle , optional

          (default: view.GLContextHandle(nullptr, nullptr))

          OpenGL context handle

      • Returns

        • viewer: Viewer
    Version 2024.2.0.52
    • 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.