Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Editor/Drawing/Interfaces/ISGControlledElement.cs

23 lines
589 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using UnityEditor.ShaderGraph;
namespace UnityEditor.ShaderGraph.Drawing
{
interface ISGControlledElement
{
SGController controller
{
get;
}
void OnControllerChanged(ref SGControllerChangedEvent e);
void OnControllerEvent(SGControllerEvent e);
}
interface ISGControlledElement<T> : ISGControlledElement where T : SGController
{
// This provides a way to access the controller of a ControlledElement at both the base class SGController level and child class level
new T controller { get; }
}
}