fix weird NRE theme binder

This commit is contained in:
ntr committed 2022-03-31 18:10:08 +11:00
1 parent fb18bc08d1
commit 84def133a9
2 files changed
+302 -545

No files matched your search

+10
View File
@@ -26,4 +26,14 @@ public class ThemeVfxBinder : VFXBinderBase {
public override void UpdateBinding(VisualEffect component) {
component.SetGradient(ThemeParameter, themeSelector.CurrentTheme());
}
// have to override these to prevent NRE
protected override void OnEnable() {
// Debug.Log("OnEnable");
}
protected override void OnDisable() {
// Debug.Log("OnDisable");
}
}