- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
- 纳金币
- 17488
- 精华
- 1
|
Graduated Incrementor (Miscellaneous Behavior)
Summary
Controls any property of the parent object by a number of discrete steps.
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 1.0.2 of the 'Graduated Incrementor' behavior, current as of 2005-Aug-04)
Description
This behavior mimics the feedback shown by the ‘volume’ indicator on most TVs. It allows you to move the value of a property between a minimum and maximum value over a discrete number of steps.
This behavior only affects the property when the
Increment
or
Decrement
actions are invoked (either via an action in the Studio interface or by calling the
increment()
or
decrement()
methods of this behavior directly).
When invoking either action, you may specify the number of steps to take; the default is one step.
The
Property Name
parameter is evaluated as a child of the parent object. (For example, “scale.z” refers to z attribute of the scale property of the parent object to which this behavior is attached.)
Basic Properties
Property Name
The property to increment.
Min Value
The minimum value which may be set for the property.
Max Value
The maximum value which may be set for the property.
Total Steps
The number of steps to take between the min and max values.
Actions
Increment
Increment the property towards the Max Value by a number of steps.
steps
The number of steps to take
Decrement
Increment the property towards the Min Value by a number of steps.
steps
The number of steps to take
Events
Value Changed
Fires whenever Increment or Decrement are called.
Demonstration
View Demonstration Project
Download Project File
|
|