Package com.banuba.sdk.scene
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.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionCast to beauty_morphing subclass.static FaceMorphing
create
(MorphingType type) Fabric method for face_morphing creating.float
boolean
void
setMorphing
(Morphing morph) Sets morphing asset.void
setVisible
(boolean visible) Set face_morphing visibility flag.void
setWeight
(float weight) set morphing weight.
-
Method Details
-
setMorphing
Sets morphing asset.- Parameters:
morph
- (morphing) morphing instance.
-
getMorphing
- Returns:
- setted morphing (morphing).
-
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
- Returns:
- upcast to base type
-
create
Fabric method for face_morphing creating.- Returns:
- created (face_morphing).
-