您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
29 行
794 B
29 行
794 B
using UnityEngine;
|
|
using System;
|
|
|
|
namespace UnityEditor.VFXToolbox.ImageSequencer
|
|
{
|
|
public class ProcessorInfo : ScriptableObject
|
|
{
|
|
public string ProcessorName;
|
|
public bool Enabled;
|
|
public ProcessorSettingsBase Settings;
|
|
|
|
public static ProcessorInfo CreateDefault(string name, bool enabled, Type type)
|
|
{
|
|
ProcessorInfo p = ScriptableObject.CreateInstance<ProcessorInfo>();
|
|
p.ProcessorName = name;
|
|
p.Enabled = enabled;
|
|
p.Settings = ScriptableObject.CreateInstance(type) as ProcessorSettingsBase;
|
|
p.Settings.Default();
|
|
return p;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return ProcessorName + (Enabled ? "" : "Disabled") ;
|
|
}
|
|
|
|
}
|
|
}
|
|
|