null texture passed to GUI.DrawTexture

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

null texture passed to GUI.DrawTexture

Post by aaajiao »


Just upgraded to 2019.4.9f1 yesterday.
There's an error every time you edit the dialogue.

Code: Select all

null texture passed to GUI.DrawTexture
UnityEngine.GUI:DrawTexture(Rect, Texture)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawEntryNode(DialogueEntry) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:703)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawAllNodes() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:488)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawCanvasContents() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:206)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawCanvas() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditorBase.cs:67)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawConversationSectionNodeStyle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditor.cs:175)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawConversationSection() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowConversationSection.cs:129)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawCurrentSection() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:411)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:DrawMainBody() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:377)
PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow:OnGUI() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowMain.cs:295)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: null texture passed to GUI.DrawTexture

Post by Tony Li »

Hi,

That warning will be gone in version 2.2.10, which will release soon.
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: null texture passed to GUI.DrawTexture

Post by aaajiao »

Screen Shot 2020-09-07 at 5.30.10 PM.png
Screen Shot 2020-09-07 at 5.30.10 PM.png (43.86 KiB) Viewed 1400 times
Hi, Tony.
Also in this version, these icons disappear from the editing screen.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: null texture passed to GUI.DrawTexture

Post by Tony Li »

Hi,

Did you move or rename the folder?

Are there any errors or warnings related to those images?
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: null texture passed to GUI.DrawTexture

Post by aaajiao »

There are no errors or warnings. I really don't remember if I changed the file location.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: null texture passed to GUI.DrawTexture

Post by Tony Li »

'Editor Default Resources' is a special Unity-specified folder name. If you've moved the images out of there, please put them back in the original location so Unity can access them.

If that's not the issue, please let me know.
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: null texture passed to GUI.DrawTexture

Post by aaajiao »

fixed.
http://wiki.unity3d.com/index.php/Speci ... sources.22
Let's not make the same mistake.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: null texture passed to GUI.DrawTexture

Post by Tony Li »

Great! Thanks for letting me know.
Post Reply