Helper Scripts Collection 1.3.1
API documentation for the helper scripts compatible with Unity3D
Public Member Functions | Public Attributes | List of all members
NikosAssets.Helpers.BlendingHelper Class Reference

A helper class to blend floats, Vector2s, Vector3s and Vector4s More...

Public Member Functions

virtual float Blend (float currentValue, float targetValue, float deltaTime=1)
 
virtual Vector2 Blend (Vector2 currentValue, Vector2 targetValue, float deltaTime=1)
 
virtual Vector3 Blend (Vector3 currentValue, Vector3 targetValue, float deltaTime=1)
 
virtual Vector4 Blend (Vector4 currentValue, Vector4 targetValue, float deltaTime=1)
 

Public Attributes

bool blendOverTime
 Should the Settings blend a value?
 
bool lerp
 Should the blended value lerp or move towards?
 
float blendTime = 1
 The blend in and out time
 

Detailed Description

A helper class to blend floats, Vector2s, Vector3s and Vector4s