Skip to content

TweenMaterialFloat

mrlinds edited this page Sep 29, 2018 · 1 revision

About

All tween classes use the same set of common settings.

See page : Common Settings

TweenMaterialFloat should be able to tween number (float) parameters on materials. This script would be easily modified to adjust other types of material properties like Vector4 types.

Parameters

Float Name

Name of material property of type Float You can see what these are by selecting the shader targeted material is using.

Value Start and End

Set the Color Values to use in Interpolation. This is a typical Unity Color Gradient

Don't Instance Material

Script will typically create and assign a new instance of a material to tween. Select this if this is not desired behaviour. If you've set multiple 'TweenColor' components on an object, you will only want the first Component to do this instancing.

Color Function

Means in which to apply specified Color Many modes are dependent on Initial color

Force Set Material

Script typically sets color on 'renderer.sharedMaterial' Select this if you want to force the script to set referenced 'material' instead This is especially used if setting some things up by script

Lindsay Jorgensen lindsay (at) radialgames (dot) com or twitter @mrlinds

Clone this wiki locally