protected virtual void OnDestroy() { if (lut != null) { lut.Dispose(); lut = null; } }
protected virtual void Awake() { lut = new LUT3D(); validator.Validation += () => { UpdateLUT(); }; validator.Validated += () => { LUTOnUpdate.Invoke(lut); }; }
protected override void OnEnable() { base.OnEnable (); _lut = new LUT3D (); }