Manual
>

Migration Tables

Updated: 2018-09-06

Chronos is designed integrate into any project with as few changes as possible. Unfortunately, there are some cases where you will have to make minimal changes to your scripts. For your convenience, these are all catalogued in the following tables.

In the following tables, remember that Timeline is a component, not a static class. It is only referred to as such for brevity. You must replace it with myGameObject.GetComponent<Timeline>() in your actual scripts.


Time

Instead of ...Use...
Time.deltaTimeTimeline.deltaTime
Time.fixedDeltaTimeTimeline.fixedDeltaTime
Time.timeScaleTimekeeper.Clock("Root").localTimeScale
new WaitForSeconds()Timeline.WaitForSeconds()

Animation

Instead of ...Use...
Animator.speedTimeline.animator.speed
AnimationState.speedTimeline.animation.speed

Particles

Instead of ...Use...
ParticleSystem.playbackSpeedTimeline.particleSystem.playbackSpeed
ParticleSystem.timeTimeline.particleSystem.time
ParticleSystem.isPlaying
ParticleSystem.isPaused
ParticleSystem.isStopped
Timeline.particleSystem.isPlaying
Timeline.particleSystem.isPaused
Timeline.particleSystem.isStopped
ParticleSystem.Play()
ParticleSystem.Pause()
ParticleSystem.Stop()
Timeline.particleSystem.Play()
Timeline.particleSystem.Pause()
Timeline.particleSystem.Stop()
ParticleSystem.IsAlive()Timeline.particleSystem.IsAlive()

Audio

Instead of ...Use...
AudioSource.pitchTimeline.audioSource.pitch

Navigation

Instead of ...Use...
NavMeshAgent.speedTimeline.navMeshAgent.speed
NavMeshAgent.angularSpeedTimeline.navMeshAgent.angularSpeed

Physics

Unless specified, all members below have a Timeline.rigidbody2D equivalent for 2D.

Instead of ...Use...
Rigidbody.massTimeline.rigidbody.mass
Rigidbody.velocityTimeline.rigidbody.velocity
Rigidbody.angularVelocityTimeline.rigidbody.angularVelocity
Rigidbody.dragTimeline.rigidbody.drag
Rigidbody.angularDragTimeline.rigidbody.angularDrag
Rigidbody.isKinematic
Rigidbody2D.bodyType
Timeline.rigidbody.isKinematic
Timeline.rigidbody2D.bodyType
Rigidbody.useGravity
Rigidbody2D.gravityScale
Timeline.rigidbody.useGravity
Timeline.rigidbody2D.gravityScale
Rigidbody.AddForce()
Rigidbody.AddRelativeForce()
Rigidbody.AddForceAtPosition()
Rigidbody.AddExplosionForce()
Rigidbody.AddTorque()
Rigidbody.AddRelativeTorque()
Timeline.rigidbody.AddForce()
Timeline.rigidbody.AddRelativeForce()
Timeline.rigidbody.AddForceAtPosition()
Timeline.rigidbody.AddExplosionForce()
Timeline.rigidbody.AddTorque()
Timeline.rigidbody.AddRelativeTorque()

Wind Zones

Instead of ...Use...
WindZone.windMainTimeline.windZone.windMain
WindZone.windTurbulenceTimeline.windZone.windTurbulence
WindZone.windPulseMagnitudeTimeline.windZone.windPulseMagnitude
WindZone.windPulseFrequencyTimeline.windZone.windPulseFrequency
Was this article helpful?
Be the first to vote!
Yes, helpful
No, not for me