Bitbybit Docs
    Preparing search index...

    Class SelectVariantDto (Inputs.BabylonGltf)

    Feeds babylon.gltf.selectMaterialVariant with the root node of a loaded glTF asset and the name of the material variant to switch to.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • OptionalrootNode: TransformNode
      • OptionalvariantName: string

      Returns SelectVariantDto

    Properties

    rootNode: TransformNode

    The root transform node of a loaded glTF asset that declares material variants

    undefined
    
    variantName: string

    The variant to activate, one of the names listMaterialVariants gives

    undefined