/// <summary>
 /// 拷贝编辑器变量
 /// </summary>
 /// <param name="FromInstance">从哪一个拷贝</param>
 public void CopyInspectorParamsTo(Effect_MaterialGradientColor FromInstance)
 {
     DuartionTime = FromInstance.DuartionTime;
     gradColor    = FromInstance.gradColor;
     RunMode      = FromInstance.RunMode;
     ColorName    = FromInstance.ColorName;
     Loop         = FromInstance.Loop;
 }
Example #2
0
 public void OnEnable()
 {
     pa      = target as Effect_MaterialGradientColor;
     gradPro = serializedObject.FindProperty("gradColor");
 }