Interface FaceMorphing

  • All Known Implementing Classes:
    FaceMorphing.CppProxy

    public interface FaceMorphing
    class which is the container for morphind and update it's resources. Subclass of component.
    • Method Detail

      • setMorphing

        void setMorphing​(@Nullable
                         Morphing morph)
        Sets morphing asset.
        Parameters:
        morph - (morphing) morphing instance.
      • getMorphing

        @Nullable
        Morphing getMorphing()
        Returns:
        setted morphing (morphing).
      • asBeautyMorphing

        @Nullable
        BeautyMorphing asBeautyMorphing()
        Cast to beauty_morphing subclass.
      • isVisible

        boolean isVisible()
        Returns:
        visible(bool) visibility flag.
      • setVisible

        void setVisible​(boolean visible)
        Set face_morphing visibility flag. Will be overridden if entity with mesh_instance component is child of entity with face_tracker component. Subclass of component.
        Parameters:
        visible - (bool) visibility flag.
      • setWeight

        void setWeight​(float weight)
        set morphing weight. Must be in range [0, 1]
        Parameters:
        weight - (float)
      • getWeight

        float getWeight()
        Returns:
        current morph weight (float)
      • asComponent

        @Nullable
        Component asComponent()
        Returns:
        upcast to base type
      • create

        @Nullable
        static FaceMorphing create​(@NonNull
                                   MorphingType type)
        Fabric method for face_morphing creating.
        Returns:
        created (face_morphing).