Engine API Reference - v2.20.0-beta.0
    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

    • Clones a MorphInstance. The returned clone uses the same Morph and weights are set to defaults.

      Returns MorphInstance

      A clone of the specified MorphInstance.

    • Frees video memory allocated by this object.

      Returns void

    • 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