Class AvatarProperties
Definition
- Assembly:
- Tizen.AIAvatar.dll
The Avatar class contains an inner AvatarProperties class. This class manages AvatarProperty information using the AvatarPropertyMapper class. By default, it includes jointMapper, blendShapeMapper, and nodeMapper, which automatically generate Properties based on model information. This structure enables users to work with Avatar properties in a more convenient way.
public class AvatarProperties
- Inheritance
-
objectAvatarProperties
Constructors
View SourceAvatarProperties(AvatarPropertyMapper, AvatarPropertyMapper, AvatarPropertyMapper)
Initializes a new instance of the AvatarProperties class with the specified joint mapper, blend shape mapper, and node mapper. These mappers are used to map between the Avatar's underlying model data and its corresponding properties.
Declaration
public AvatarProperties(AvatarPropertyMapper jointMapper, AvatarPropertyMapper blendShapeMapper, AvatarPropertyMapper nodeMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| AvatarPropertyMapper | jointMapper | The AvatarPropertyMapper for joints. |
| AvatarPropertyMapper | blendShapeMapper | The AvatarPropertyMapper for blend shapes. |
| AvatarPropertyMapper | nodeMapper | The AvatarPropertyMapper for nodes. |
Properties
View SourceBlendShapeMapper
The BlendShapeMapper property gets or sets the AvatarPropertyMapper responsible for managing blend shape information in the Avatar model.
When setting this property, any changes made will trigger the AvatarPropertiesChanged event if it has been subscribed to.
Declaration
public AvatarPropertyMapper BlendShapeMapper { get; set; }
Property Value
| Type | Description |
|---|---|
| AvatarPropertyMapper |
JointMapper
The JointMapper property gets or sets the AvatarPropertyMapper responsible for mapping joint information in the Avatar model. When setting this property, any changes made will trigger the AvatarPropertiesChanged event if it has been subscribed to.
Declaration
public AvatarPropertyMapper JointMapper { get; set; }
Property Value
| Type | Description |
|---|---|
| AvatarPropertyMapper |
NodeMapper
The NodeMapper property gets or sets the AvatarPropertyMapper responsible for managing node information in the Avatar model.
When setting this property, any changes made will trigger the AvatarPropertiesChanged event if it has been subscribed to.
Declaration
public AvatarPropertyMapper NodeMapper { get; set; }
Property Value
| Type | Description |
|---|---|
| AvatarPropertyMapper |
Methods
View SourceCreateBlendShapeMotionIndex(NodeType, BlendShapeType)
This method generates a MotionIndex to be used in animations based on the NodeType and BlendShapeType using the model information of an Avatar.
Declaration
public MotionIndex CreateBlendShapeMotionIndex(NodeType nodeType, BlendShapeType blendShapeType)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeType | nodeType | Node type |
| BlendShapeType | blendShapeType | Blend shape type |
Returns
| Type | Description |
|---|---|
| MotionIndex | The generated MotionIndex |