- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
- 纳金币
- 17488
- 精华
- 1
|
Incrementor (Animation Behavior)
Summary
Increments the value of any property on the parent object at a uniform rate.
Category
Latest Behaviors
Author
Gavin Kistner
Difficulty
(Reference)
Time to Complete
5 Minutes
Downloads
Click Here
to download the associated files.
(This document covers version 2.0.2 of the 'Incrementor' behavior, current as of 2005-Feb-11)
Description
The
Property Name
is specified relative to the behavior’s parent. For example, ‘rotation.x’ refers to the x value of the ‘rotation’ property on the object to which the behavior is attached.
If
Use Max?
is checked, the property will stop animating when the
Max Value
is hit. (Unless
Use Loop?
is also checked; see below.)
If
Use Loop?
is checked in addition to
Use Max?
, the property will be set to the
Loop Value
as soon as it hits the
Max Value
, and will continue animating.
Basic Properties
Property Name
Code reference to the property to change.
Units per Second
Units per second that the Target Property will be incremented.
Use Max?
Should the Incrementor stop/loop when the 'Max Value' is reached?
Max Value
If 'Use Max?' is checked, the value to stop/loop at.
Use Loop?
Should the Incrementor reset to the 'Loop Value' when the 'Max Value' is reached?
Loop Value
If 'Use Max?' and 'Use Loop?' are checked, the value to loop to whenever the 'Max Value' is hit.
Start Immediately?
Start incrementing immediately, or wait for the Start action to be called?
Actions
Start
Start incrementing the controlled property.
Stop
Stop incrementing the controlled property.
Toggle
If the Incrementor is***nning, stop it; otherwise, start it.
Events
Start
Fires whenever the incrementor is started.
Stop
Fires when the incrementor is stopped (directly or by hitting the 'Max Value').
Loop
Fires when the incrementor loops (requires 'Use Max?' and 'Use Loop?' to be checked).
Demonstration
View Demonstration Project
Download Project File
|
|