• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by kyubi8 · Dec 21, 2017 at 07:11 AM · errorunityeditornullreferenceexception

Why am i getting this? NullReferenceException because of UnityEditor.GridPaintingState.UnregisterPainterInterest

So i am working on a little game project and was using unity 2017.2 when the new version 2017.3 was out i just had to get it. That all purpose tool is gold.


There is only one problem though. I'm getting this error in my projects. Even when i start a new project the error is there. I have looked around and found that usually people get this kind of error when they for example forgot to link one of their public variables to an object back in unity. But i don't understand why i'm receiving it.


Here is the full error:

 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)

Edit: I've added a screenshot of the error. It only shows up when the Tile Palette window is open and every time i hit play.

alt text

screen-shot.png (224.1 kB)
Comment
coreyog
Luka-NiTL
lampyridae
Theodor1289
nemo10
Zekkownik
eon-s
nguyenlamlll
mcarrascosh
luislodosm
Nestle23
CloudStorm
ProtoTerminator
keyboardcat
Fimiam
And 1 more...

People who like this

16 Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zero_null · Dec 21, 2017 at 07:44 AM 0
Share

posting a screenshot will help better. Looks like installation of Editor went wrong or something similar. I am on Unity 2017.3f3 and everything is great.

avatar image kyubi8 · Dec 21, 2017 at 02:10 PM 0
Share

@adnanpk here is a screen shot, it also shows how the error comes up every time i hit play.

screen-shot.png (224.1 kB)
avatar image pako · Dec 21, 2017 at 08:36 PM 3
Share

This seems to be a bug when the "Tile Palette" window is open:

https://forum.unity.com/threads/nullreferenceexception-in-an-empty-project.509542/

avatar image kyubi8 · Dec 22, 2017 at 03:03 AM 0
Share

Thanks you guys. Well other than then fact that it's annoying there doesn't seem to be much else and it sucks because i don't know how to fix it. I have tried removing and installing unity but the problem still persists. And thanks @pako from your link i didn't know there were others having the same problem. I will report the bug to Unity and hope they fix fast.

avatar image pako kyubi8 · Dec 22, 2017 at 10:14 AM 1
Share

@SasukeBro I can see from the image you posted that you have the "Tile Palette" window open (just to the right of the Inspector tab). Just close the "Tile Palette" window and the problem should go away. Hopefully, Unity will fix this soon.

avatar image martin140311 pako · Dec 30, 2017 at 07:58 AM 1
Share

I had the same error as OP and also had the Tile Palette window docked alongside Inspector. The above solution (Closing Tile Palette tab) solved the problem for me.

Show more comments
avatar image Jeff918 · Jan 24, 2018 at 05:55 PM 0
Share

I have the exact same problem, no solution I know of yet. Neither can I get raycasting to work.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Tojikan · Jan 30, 2018 at 08:03 PM

I got this error too.

I just opened up the palette you're using in the inspector and set a layer on it. It disappeared for me after that.

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

103 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

"Failed to load window layout" Error 5 Answers

fatal error unity 2021 assets no meta file and library error no reference 0 Answers

Porting shader to URP, unexpected identifier "fixed4" even though I don't have it in my code 0 Answers

Null Reference in script after having called other class without a null reference 0 Answers

Unity editor bugs the hell out when moving unity editor windows 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges