Struct BlendConstraintData
The Blend constraint data.
Namespace: UnityEngine.Animations.Rigging
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 |
---|---|
Boolean |
blendRotation
Toggles whether rotation is blended in the constraint.
Declaration
public bool blendRotation { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
constrainedObject
The Transform affected by the two source Transforms.
Declaration
public Transform constrainedObject { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Implements
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 |
---|---|
Boolean |
Implements
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 |
---|---|
Boolean |
Implements
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 |
---|---|
Single |
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 |
---|---|
Single |
sourceObjectA
First Transform in blend.
Declaration
public Transform sourceObjectA { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Implements
sourceObjectB
Second Transform in blend.
Declaration
public Transform sourceObjectB { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Implements
Explicit Interface Implementations
IAnimationJobData.IsValid()
Retrieves the data valid state.
Declaration
bool IAnimationJobData.IsValid()
Returns
Type | Description |
---|---|
Boolean | Returns true if data can be successfully used in a constraint. Returns false otherwise. |
Implements
IAnimationJobData.SetDefaultValues()
Resets values to defaults.
Declaration
void IAnimationJobData.SetDefaultValues()
Implements
IBlendConstraintData.blendPositionBoolProperty
The path to the blend position property in the constraint component.
Declaration
readonly string IBlendConstraintData.blendPositionBoolProperty { get; }
Returns
Type | Description |
---|---|
String |
Implements
IBlendConstraintData.blendRotationBoolProperty
The path to the blend rotation property in the constraint component.
Declaration
readonly string IBlendConstraintData.blendRotationBoolProperty { get; }
Returns
Type | Description |
---|---|
String |
Implements
IBlendConstraintData.positionWeightFloatProperty
The path to the position weight property in the constraint component.
Declaration
readonly string IBlendConstraintData.positionWeightFloatProperty { get; }
Returns
Type | Description |
---|---|
String |
Implements
IBlendConstraintData.rotationWeightFloatProperty
The path to the rotation weight property in the constraint component.
Declaration
readonly string IBlendConstraintData.rotationWeightFloatProperty { get; }
Returns
Type | Description |
---|---|
String |