Engine API Reference - v2.6.1
    Preparing search index...

    Class MorphInstance

    An instance of Morph. Contains weights to assign to every MorphTarget, manages selection of active morph targets.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    morph: Morph

    The morph with its targets, which is being instanced.

    Methods

    • Gets current weight of the specified morph target.

      Parameters

      • key: string | number

        An identifier for the morph target. Either the weight index or the weight name.

      Returns number

      Weight.

    • Sets weight of the specified morph target.

      Parameters

      • key: string | number

        An identifier for the morph target. Either the weight index or the weight name.

      • weight: number

        Weight.

      Returns void

    • Selects active morph targets and prepares morph for rendering. Called automatically by renderer.

      Returns void