Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing TintBrush.cs m_Color to another color causes NullReferenceException #18

Closed
Demkeys opened this issue Jan 31, 2018 · 1 comment

Comments

@Demkeys
Copy link

Demkeys commented Jan 31, 2018

I opened up the TintBrush.cs file and changed the value of m_Color from Color.white to Color.blue. That's it. I hit save and go back to the Editor. Suddenly I get a NullReferenceException saying the following:
NullReferenceException: Object reference not set to an instance of an object

UnityEditor.GridPaintingState.UnregisterPainterInterest (UnityEngine.Object painter) (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintingState.cs:197)
UnityEditor.GridPaintPaletteWindow.OnDisable () (at C:/buildslave/unity/build/Modules/TilemapEditor/Editor/Managed/Grid/GridPaintPaletteWindow.cs:565)

Anyone else having this issue?
I should mention that I'm using Unity 2017.3.

@Demkeys
Copy link
Author

Demkeys commented Jan 31, 2018

UPDATE: I installed the Unity 2017.3.0p4 Patch and that solved the issue. The error isn't popping up anymore.

@Demkeys Demkeys closed this as completed Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant