0
Answered

Rewinding scale?

Eric Dang 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 1

Hi,

Does the rewinding capabilities also work with the object's scale (size)?
I am able to rewind the object's position and animations, but for some reason, the object doesn't change scale during rewind. It stays at one scale during the entire rew
Chronos Version:
2.4.5
Unity Version:
5.5.1

Answer

Answer
Answered

Hi Eric,

The scale rewinding is disabled by default to alleviate memory pressure.

You can easily enable it by doing uncommenting a few lines:

// public Vector3 scale;
// scale = Vector3.Lerp(from.scale, to.scale, t),

These lines are found in:

  • Source/Timelines/TransformTimeline.cs, line 15, line 23
  • Source/Timelines/RigidbodyTimeline2D.cs, line 15, line 29
  • Source/Timelines/RigidbodyTimeline3D.cs, line 15, line 28

I'll add a knowledge base entry for future reference.

Answer
Answered

Hi Eric,

The scale rewinding is disabled by default to alleviate memory pressure.

You can easily enable it by doing uncommenting a few lines:

// public Vector3 scale;
// scale = Vector3.Lerp(from.scale, to.scale, t),

These lines are found in:

  • Source/Timelines/TransformTimeline.cs, line 15, line 23
  • Source/Timelines/RigidbodyTimeline2D.cs, line 15, line 29
  • Source/Timelines/RigidbodyTimeline3D.cs, line 15, line 28

I'll add a knowledge base entry for future reference.