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

35 行
1.1 KiB

using UnityEngine;
namespace UnityEditor.VFXToolbox.ImageSequencer
{
internal abstract class ProcessorBase : ScriptableObject
{
public abstract string shaderPath { get; }
public abstract string processorName { get; }
public virtual string label => processorName;
protected FrameProcessor processor;
public void AttachTo(FrameProcessor processor)
{
this.processor = processor;
}
public virtual int numU => 1;
public virtual int numV => 1;
public virtual int sequenceLength => processor.InputSequence.length;
public abstract bool Process(int frame);
public virtual void UpdateOutputSize()
{
processor.SetOutputSize(processor.InputSequence.width, processor.InputSequence.height);
}
public abstract bool OnInspectorGUI(bool changed, SerializedObject serializedObject);
public virtual bool OnCanvasGUI(ImageSequencerCanvas canvas)
{
return false;
}
public abstract void Default();
}
}