docs.unity3d.com
Version: 

    Class Variant

    A variant allows to override some occurrences properties

    Base class: Entity

    classDiagram
        class Variant
        Entity <|-- Variant
        Variant : +core.Ident Id
        Variant : +core.String Name
        Variant : +core.Entity Tree
        Variant : +core.String GroupName
        Variant : +core.Boolean ViewIsSet
        Variant : +geom.Matrix4 View
        Variant : +core.Boolean ViewIsOrtho
        Variant : +core.Real ViewFov
        Variant : +core.Boolean CuttingPlane
        Variant : +geom.Vector3 CuttingPlanePosition
        Variant : +geom.Vector3 CuttingPlaneNormal
        Variant : +core.Real ExplodedViewFactor
        Variant : +core.Boolean ExplodedViewX
        Variant : +core.Boolean ExplodedViewY
        Variant : +core.Boolean ExplodedViewZ
    

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

    • scene.setSubpartVariantMaterialsList
    • scene.getProductViewDefinition
    • scene.duplicateVariant
    • scene.getVariantTree
    • scene.removeVariant
    • scene.setCurrentVariant
    • scene.setVariantTree
    • 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
    Variant
    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.