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