Class TinyAnimationScalePatcher
Specifies whether to prevent TinyAnimation conversion systems from adding runtime Scale components to the TinyAnimation entity during the conversion of Animation components.
Inherited Members
Namespace: Unity.Tiny.Animation
Syntax
[NotKeyable]
[DisallowMultipleComponent]
[RequireComponent(typeof(Animation))]
public class TinyAnimationScalePatcher : MonoBehaviour
Remarks
Use a TinyAnimationScalePatcher component in conjunction an Animation component. This component is optional. If omitted, the TinyAnimation conversion systems default to adding the missing components where needed.
Fields
disableScalePatching
Normally, the TinyAnimation conversion systems adds runtime Scale components when needed. Set the disableScalePatching value to false, to override the default behaviour.
Declaration
[Tooltip("An entity whose scale is (1, 1, 1) at conversion will not get any scaling components. Tiny Animation will add it automatically if needed.\nBy setting this value to true, you explicitly prevent the system from adding the missing components even if they are part of the animation.\nNote that omitting this component is equivalent to setting this value to false.")]
public bool disableScalePatching
Field Value
Type | Description |
---|---|
Boolean |
Remarks
An entity whose scale is (1, 1, 1) at conversion will not get any scaling components which could prevent an animation clip from playing properly.
By setting this value to true, you are opting out of the system generating those components automatically for you.