UnityEngine.Material.Lerp C# (CSharp) Method

Lerp() private method

private Lerp ( Material start, Material end, float t ) : void
start Material
end Material
t float
return void
        public extern void Lerp(Material start, Material end, float t);
        /// <summary>

Usage Example

コード例 #1
0
 IEnumerator MaterialLerp(Material material,float time)
 {
     float moveTime = 0.0f;
     while(moveTime < time){
         moveTime += Time.deltaTime;
         material.Lerp(material1, material2, moveTime/time);
         yield return null;
     }
 }
All Usage Examples Of UnityEngine.Material::Lerp