fix weird NRE theme binder
This commit is contained in:
1 parent
fb18bc08d1
commit
84def133a9
2 files changed
+302
-545
No files matched your search
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user