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
Nested Classes Modifier and Type Interface Description static class
FaceMorphing.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description BeautyMorphing
asBeautyMorphing()
Cast to beauty_morphing subclass.Component
asComponent()
static FaceMorphing
create(MorphingType type)
Fabric method for face_morphing creating.Morphing
getMorphing()
float
getWeight()
boolean
isVisible()
void
setMorphing(Morphing morph)
Sets morphing asset.void
setVisible(boolean visible)
Set face_morphing visibility flag.void
setWeight(float weight)
set morphing weight.
-
-
-
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).
-
-