This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
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
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.AnimationCurveUGUID 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.
Inherits from: AnimationCurve

This class represents an interface enabling you to create and manage animation curves containing UGUID values.

AnimationCurveUGUID Class

Properties

UGUID DefaultKeyValue#

The default value of all keys in the curve.

int NumKeys#

The total number of key points in the curve.

float MinTime#

The point of the whole animation timeline where this curve starts being applied, in units.

float MaxTime#

The point of the whole animation timeline up to which this curve is applied, in units.

Members


AnimationCurveUGUID ( ) #

Constructor. Creates a new animation curve instance containing UGUID values.

void Copy ( AnimationCurveUGUID curve ) #

Copies all data (key points and tangents) from the specified source curve.

Arguments

  • AnimationCurveUGUID curve - Source curve.

int AddKey ( float time, UGUID value ) #

Adds a new key point with the specified value at the specified point of the timeline to the curve.

Arguments

  • float time - Time of the key on the timeline, in seconds.
  • UGUID value - The UGUID value of the key.

Return value

Index of the added key point.

void RemoveKey ( int index ) #

Removes the key point with the specified index from the curve.

Arguments

int MoveKey ( int index, float new_time ) #

Moves the key point with the specified number to a new time position (preserving the tangents). The index of key point will be updated automatically. This method can be used to implement dragging of keys on the curve.

Arguments

  • int index - Key point number, in the range from 0 to the total number of key points in the curve.
  • float new_time - Time of the key on the timeline, in seconds.

Return value

New index of the key.

float GetKeyTime ( int index ) #

Returns the current time of the key point with the specified index.

Arguments

Return value

The time of the specified key point on the timeline, in seconds.

void SetKeyValue ( int index, UGUID value ) #

Sets the value for the specified key on the curve.

Arguments

UGUID GetKeyValue ( int index ) #

Returns the current value for the specified key on the curve.

Arguments

Return value

The UGUID value of the key.

void Clear ( ) #

Clears the curve removing all key points and tangents.

UGUID GetValueByTime ( float time ) #

Returns the key value at the specified key point of the curve.

Arguments

  • float time - Time of the key on the timeline, in seconds.

Return value

The UGUID value of the key.

UGUID GetValueByNormalizedTime ( float time ) #

Returns the key value using the normalized time value of the key.

Arguments

  • float time - The normalized time value of the key.

Return value

The UGUID value of the key.

void Save ( Blob blob ) #

Saves the curve data to a blob.

Arguments

  • Blob blob - Blob to which the curve data will be saved.

void Load ( Blob blob ) #

Loads the curve data from the blob.

Arguments

  • Blob blob - Blob storing the curve data.
Last update: 2024-12-13
Build: ()