Banuba SDK
Instance Methods | Class Methods | List of all members
BNBFaceMorphing Class Reference

#import <BNBFaceMorphing.h>

Inheritance diagram for BNBFaceMorphing:

Instance Methods

(void) - setMorphing:
 Sets morphing asset. More...
 
(nullable BNBMorphing *) - getMorphing
 
(nullable BNBBeautyMorphing *) - asBeautyMorphing
 Cast to beauty_morphing subclass. More...
 
(BOOL) - isVisible
 
(void) - setVisible:
 Set face_morphing visibility flag. More...
 
(void) - setWeight:
 set morphing weight. More...
 
(float) - getWeight
 
(nullable BNBComponent *) - asComponent
 

Class Methods

(nullable BNBFaceMorphing *) + create:
 Fabric method for face_morphing creating. More...
 

Detailed Description

Definition at line 19 of file BNBFaceMorphing.h.

Method Documentation

◆ asBeautyMorphing

- (nullable BNBBeautyMorphing *) asBeautyMorphing

Cast to beauty_morphing subclass.

◆ asComponent

- (nullable BNBComponent *) asComponent
Returns
upcast to base type

◆ create:

+ (nullable BNBFaceMorphing *) create: (BNBMorphingType)  type

Fabric method for face_morphing creating.

Returns
created (face_morphing).

◆ getMorphing

- (nullable BNBMorphing *) getMorphing
Returns
setted morphing (morphing).

◆ getWeight

- (float) getWeight
Returns
current morph weight (float)

◆ isVisible

- (BOOL) isVisible
Returns
visible(bool) visibility flag.

◆ setMorphing:

- (void) setMorphing: (nullable BNBMorphing *)  morph

Sets morphing asset.

Parameters
morph(morphing) morphing instance.

◆ setVisible:

- (void) setVisible: (BOOL)  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)

The documentation for this class was generated from the following file: