protected virtual void OnValidate() { if (controller == null) { var attachedController = GetComponent <GraphicPaletteController>(); if (attachedController != null && attachedController.filter == this) { controller = attachedController; } } }
protected virtual void Reset() { if (controller == null) { controller = GetComponent <GraphicPaletteController>(); } if (controller != null && controller.filter == null) { controller.filter = this; } }