载入中...
搜索中...
未找到
#include <MotionRuntime.h>
Public 属性 | |
| float | from = 0.f |
| float | to = 0.f |
| float | duration = 0.f |
| float | delay = 0.f |
| int | loops = 1 |
| 1 = once, N = N cycles, -1 = infinite. | |
| MotionLoopMode | loopMode = MotionLoopMode::Restart |
| std::string | ease = "linear" |
| IMotionFloatSink * | sink = nullptr |
| FloatCallback | onUpdate |
| VoidCallback | onComplete |
| VoidCallback | onCancel |
| bool | cancelOnError = true |
| MotionStyle | style = MotionStyle::Tween |
| int | frequency = 10 |
| Oscillation count for Punch/Shake. | |
| float | dampingRatio = 1.f |
| 0 = undamped, 1 = fully damped. | |
| std::uint32_t | seed = 0 |
| Deterministic Shake seed. | |
详细描述
FloatDesc public API.
在文件 MotionRuntime.h 第 37 行定义.
类成员变量说明
◆ cancelOnError
| bool eve::animation::MotionRuntime::FloatDesc::cancelOnError = true |
在文件 MotionRuntime.h 第 49 行定义.
◆ dampingRatio
| float eve::animation::MotionRuntime::FloatDesc::dampingRatio = 1.f |
0 = undamped, 1 = fully damped.
在文件 MotionRuntime.h 第 52 行定义.
◆ delay
| float eve::animation::MotionRuntime::FloatDesc::delay = 0.f |
在文件 MotionRuntime.h 第 41 行定义.
◆ duration
| float eve::animation::MotionRuntime::FloatDesc::duration = 0.f |
在文件 MotionRuntime.h 第 40 行定义.
◆ ease
| std::string eve::animation::MotionRuntime::FloatDesc::ease = "linear" |
在文件 MotionRuntime.h 第 44 行定义.
◆ frequency
| int eve::animation::MotionRuntime::FloatDesc::frequency = 10 |
Oscillation count for Punch/Shake.
在文件 MotionRuntime.h 第 51 行定义.
◆ from
| float eve::animation::MotionRuntime::FloatDesc::from = 0.f |
在文件 MotionRuntime.h 第 38 行定义.
◆ loopMode
| MotionLoopMode eve::animation::MotionRuntime::FloatDesc::loopMode = MotionLoopMode::Restart |
在文件 MotionRuntime.h 第 43 行定义.
◆ loops
| int eve::animation::MotionRuntime::FloatDesc::loops = 1 |
1 = once, N = N cycles, -1 = infinite.
在文件 MotionRuntime.h 第 42 行定义.
◆ onCancel
| VoidCallback eve::animation::MotionRuntime::FloatDesc::onCancel |
在文件 MotionRuntime.h 第 48 行定义.
◆ onComplete
| VoidCallback eve::animation::MotionRuntime::FloatDesc::onComplete |
在文件 MotionRuntime.h 第 47 行定义.
◆ onUpdate
| FloatCallback eve::animation::MotionRuntime::FloatDesc::onUpdate |
在文件 MotionRuntime.h 第 46 行定义.
◆ seed
| std::uint32_t eve::animation::MotionRuntime::FloatDesc::seed = 0 |
Deterministic Shake seed.
在文件 MotionRuntime.h 第 53 行定义.
◆ sink
| IMotionFloatSink* eve::animation::MotionRuntime::FloatDesc::sink = nullptr |
◆ style
| MotionStyle eve::animation::MotionRuntime::FloatDesc::style = MotionStyle::Tween |
在文件 MotionRuntime.h 第 50 行定义.
◆ to
| float eve::animation::MotionRuntime::FloatDesc::to = 0.f |
在文件 MotionRuntime.h 第 39 行定义.
该结构体的文档由以下文件生成:
- src/modules/animation/MotionRuntime.h