This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine::AnimationCurve Class

Warning
The functionality described here is EXPERIMENTAL and is not recommended for production use. Future releases may bring significant changes to API and features. Backward compatibility of the final production-ready version is not guaranteed.
Header: #include <UnigineAnimation.h>

This is a base class for all animation curves. Animation curves define changes of values of certain types (bool, float, integer, quat, etc.) over time.

AnimationCurve Class

枚举

TYPE#

Animation curve type.
Name描述
ANIMATION_CURVE = 0The animation curve storing values.
ANIMATION_CURVE_INT = 1The animation curve storing integer values (see the AnimationCurveInt class).
ANIMATION_CURVE_FLOAT = 2The animation curve storing float values (see the AnimationCurveIntFloat class).
ANIMATION_CURVE_DOUBLE = 3The animation curve storing double values (see the AnimationCurveDouble class).
ANIMATION_CURVE_BOOL = 4The animation curve storing boolean values (see the AnimationCurveBool class).
ANIMATION_CURVE_SCALAR = 5The animation curve storing scalar values (see the AnimationCurveScalar class).
ANIMATION_CURVE_QUAT = 6The animation curve storing quaternion values (see the AnimationCurveQuat class).
ANIMATION_CURVE_STRING = 7The animation curve storing string values (see the AnimationCurveString class).
ANIMATION_CURVE_UGUID = 8The animation curve storing UGUID values (see the AnimationCurveUGUID class).

KEY_TYPE#

Type of interpolation between the neighboring keys.
Name描述
KEY_TYPE_CONSTANT = 0The left key value is used within the whole segment between two keys.
KEY_TYPE_LINEAR = 1Linear interpolation between two keys is used.
KEY_TYPE_SMOOTH = 2A Bézier curve is used for interpolation, with the left and the right tangent of each key symmetric to the origin.
KEY_TYPE_BREAK = 3A Bézier curve is used for interpolation, with a possibility to configure the left and the right tangent of each key independently.
NUM_KEY_TYPES = 4The total number of types of interpolation between the keys.

Members

AnimationCurve::TYPE getType() const#

Returns the current type of the animation curve.

Return value

Current type of the animation curve.

const char * getTypeName() const#

Returns the current name of the animation curve type.

Return value

Current name of the animation curve type.
Last update: 2023-11-29
Build: ()