NullReferenceException Object reference not set to an instance of an objectDialoguemanagerCheckName at AssetsscriptDialoguemanagercs90DialoguemanagerShowDialogue SystemString _newLines at Assetsscrip
This error message indicates that a null reference exception occurred in your code. It means that you are trying to access a member or method of an object that is currently null (i.e., it doesn't exist or hasn't been instantiated).
In your specific case, the error occurred at line 90 in the Dialoguemanager.cs file, in the CheckName() method. It is also referenced in line 157 in the ShowDialogue() method of the same file, and line 38 in the Update() method of the Talkable.cs file.
To fix this issue, you need to identify the object that is null and make sure it is properly initialized before accessing its members or methods. You can use conditional statements, such as if statements, to check for null references and handle them appropriately
原文地址: https://www.cveoy.top/t/topic/iafG 著作权归作者所有。请勿转载和采集!