Photon Quantum 3.0.0

Classes | Public Types | Public Member Functions | Public Attributes | List of all members
Quantum.FPAnimationCurve Struct Reference

A deterministic discretized animation curve. Values between keyframes are interpolated linearly. More...

Classes

struct  Keyframe
 Only used to recreate the curve in the Unity Editor. More...
 

Public Types

enum  WrapMode
 The warp mode describes how the curve behaves outside of the defined time range. More...
 

Public Member Functions

FP Evaluate (FP time)
 Return the curve value at a given time. More...
 

Public Attributes

FP EndTime
 The end time. More...
 
Keyframe[] Keys
 
int OriginalPostWrapMode
 The original PostWrapMode, used to migrate Unity versions. More...
 
int OriginalPreWrapMode
 The original PreWrapMode, used to migrate Unity versions. More...
 
int PostWrapMode
 The wrap mode right of the last keyframe. More...
 
int PreWrapMode
 The wrap mode left of the first keyframe. More...
 
int Resolution
 The number of discrete curve samples. More...
 
FP[] Samples
 The discrete samples. More...
 
FP StartTime
 The start time. More...
 

Detailed Description

A deterministic discretized animation curve. Values between keyframes are interpolated linearly.

Member Enumeration Documentation

◆ WrapMode

The warp mode describes how the curve behaves outside of the defined time range.

Enumerator
Clamp 

Clamp values to the first or last keyframe.

Loop 

Loop the curve.

PingPong 

Loop the curve back and forth.

Member Function Documentation

◆ Evaluate()

FP Quantum.FPAnimationCurve.Evaluate ( FP  time)
inline

Return the curve value at a given time.

Parameters
timeTime to query
Returns
The curve value at requested time

Member Data Documentation

◆ Samples

FP [] Quantum.FPAnimationCurve.Samples

The discrete samples.

◆ PreWrapMode

int Quantum.FPAnimationCurve.PreWrapMode

The wrap mode left of the first keyframe.

◆ PostWrapMode

int Quantum.FPAnimationCurve.PostWrapMode

The wrap mode right of the last keyframe.

◆ StartTime

FP Quantum.FPAnimationCurve.StartTime

The start time.

◆ EndTime

FP Quantum.FPAnimationCurve.EndTime

The end time.

◆ Resolution

int Quantum.FPAnimationCurve.Resolution

The number of discrete curve samples.

◆ OriginalPreWrapMode

int Quantum.FPAnimationCurve.OriginalPreWrapMode

The original PreWrapMode, used to migrate Unity versions.

◆ OriginalPostWrapMode

int Quantum.FPAnimationCurve.OriginalPostWrapMode

The original PostWrapMode, used to migrate Unity versions.

◆ Keys

Keyframe [] Quantum.FPAnimationCurve.Keys