您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

27 行
722 B

using UnityEngine;
using System;
namespace UnityEditor.Experimental.VFX.Toolbox.ImageSequencer
{
internal class ProcessorInfo : ScriptableObject
{
public bool Enabled;
public ProcessorBase Settings;
public static ProcessorInfo CreateDefault(string name, bool enabled, Type type)
{
ProcessorInfo p = ScriptableObject.CreateInstance<ProcessorInfo>();
p.Enabled = enabled;
p.Settings = ScriptableObject.CreateInstance(type) as ProcessorBase;
p.Settings.Default();
return p;
}
public override string ToString()
{
return Settings.label + (Enabled ? "" : "Disabled") ;
}
}
}