Struct BlendConstraintData
The Blend constraint data.
Inherited Members
Namespace: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
[Serializable]
public struct BlendConstraintData : IAnimationJobData, IBlendConstraintData
Properties
blendPosition
Toggles whether position is blended in the constraint.
Declaration
public bool blendPosition { get; set; }
Property Value
Type | Description |
---|---|
bool |
blendRotation
Toggles whether rotation is blended in the constraint.
Declaration
public bool blendRotation { get; set; }
Property Value
Type | Description |
---|---|
bool |
constrainedObject
The Transform affected by the two source Transforms.
Declaration
public Transform constrainedObject { get; set; }
Property Value
Type | Description |
---|---|
Transform |
maintainPositionOffsets
This is used to maintain the current position offset from the constrained GameObject to the source GameObjects.
Declaration
public bool maintainPositionOffsets { get; set; }
Property Value
Type | Description |
---|---|
bool |
maintainRotationOffsets
This is used to maintain the current rotation offset from the constrained GameObject to the source GameObjects.
Declaration
public bool maintainRotationOffsets { get; set; }
Property Value
Type | Description |
---|---|
bool |
positionWeight
Specifies the weight with which to blend position. A weight of zero will result in the position of sourceObjectA, while a weight of one will result in the position of sourceObjectB.
Declaration
public float positionWeight { get; set; }
Property Value
Type | Description |
---|---|
float |
rotationWeight
Specifies the weight with which to blend rotation. A weight of zero will result in the rotation of sourceObjectA, while a weight of one will result in the rotation of sourceObjectB.
Declaration
public float rotationWeight { get; set; }
Property Value
Type | Description |
---|---|
float |
sourceObjectA
First Transform in blend.
Declaration
public Transform sourceObjectA { get; set; }
Property Value
Type | Description |
---|---|
Transform |
sourceObjectB
Second Transform in blend.
Declaration
public Transform sourceObjectB { get; set; }
Property Value
Type | Description |
---|---|
Transform |