• 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 /
avatar image
Question by FuryFight3r · Apr 15, 2021 at 08:12 AM · updatenullreferenceexceptionnullmaskculling mask

NullReferenceException MaskableGraphic.UpdateCull() upon Loading Player Data.

Hi all, I am facing an error that spams the generic NullReferenceException error, though there apears to be no reasoning or consistancy between each time you load the game, sometimes a few UI 'Delivery' Prefabs have t$$anonymous$$s error, sometimes only 1. I am using ES3 (Easy Save 3) as my saving plugin I've been told it's not$$anonymous$$ng to do with their end, though I can't find any logical reason why it happens, every single delivery prefab is Identical the only variable between them is the Title and what Item is Collected upon clicking 'Collect'. T$$anonymous$$s error only appears after the inital loading (if the prefabs never see a save/load they will be fine, but if they are saved and then loaded it presents the error upon loading, and then spams the error w$$anonymous$$le scrolling up and down the deliveries. i've got a screenshot of a problematic UI that has loaded incorrectly, though even still if all the prefabs 'look' fine every single one presents the Maskable UpdateCull error w$$anonymous$$le scrolling, each click of the scroll wheel presents 1 error from every single active prefab in the deliveries page.

alt text

T$$anonymous$$s error doest really have an effect on the game nor weather the objects are collectable or not, though I am attempting to add a In-Game Debug Console so players can self diagnose a problem if one should arise and I do not want to get spammed with bug reports in regards to t$$anonymous$$s log spammer error.

Error Code:

 NullReferenceException: Object reference not set to an instance of an object
 UnityEngine.UI.MaskableGrap$$anonymous$$c.UpdateCull (System.Boolean cull) (at C:/Program Files/Unity/Hub/Editor/2020.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/MaskableGrap$$anonymous$$c.cs:147)
 UnityEngine.UI.MaskableGrap$$anonymous$$c.Cull (UnityEngine.Rect clipRect, System.Boolean validRect) (at C:/Program Files/Unity/Hub/Editor/2020.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/MaskableGrap$$anonymous$$c.cs:138)
 UnityEngine.UI.RectMask2D.PerformClipping () (at C:/Program Files/Unity/Hub/Editor/2020.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/RectMask2D.cs:261)
 UnityEngine.UI.ClipperRegistry.Cull () (at C:/Program Files/Unity/Hub/Editor/2020.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Culling/ClipperRegistry.cs:47)
 UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/Program Files/Unity/Hub/Editor/2020.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/CanvasUpdateRegistry.cs:202)
 UnityEngine.Canvas.SendWillRenderCanvases () (at <a8e296dc7c7b4e92800d9e996ed99e15>:0)


is somet$$anonymous$$ng not setup correctly on the Prefab itself, or is the canvas not setup correctly? is the scroll view not setup correctly? ir could it even be a problem with the Saving and Loading plugin, as t$$anonymous$$s problem only presents itself after the prefabs have been loaded? I have no Idea I've been stuck on the error ever since I introduced Saving and Loading into my game months ago.

screenshot-11.png (272.2 kB)
Comment

People who like this

0 Show 0
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

0 Replies

· Add your reply
  • Sort: 

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

122 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 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

Null Reference Raycast 0 Answers

How can this possibly be null? 2 Answers

3rd person controller NullReferenceException 2 Answers

Checking if an object is null, results in NRE 1 Answer

Help with raycast == null 0 Answers


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