You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
558 B

using UnityEditor.ShaderGraph;
namespace UnityEditor.VFX
{
interface IRequireVFXContext
{
void ConfigureContextData(VFXContext context, VFXTaskCompiledData data);
}
static class RequireVFXContextExtensions
{
public static bool TryConfigureContextData(this Target target, VFXContext context, VFXTaskCompiledData data)
{
if (!(target is IRequireVFXContext vfxTarget))
return false;
vfxTarget.ConfigureContextData(context, data);
return true;
}
}
}