Open zhaoguohao opened 5 years ago
Hi zhaoguohao, The error was occurred at line 15 of TestClipboard.cs.
test.text = str;
It seems to be text variable has no reference. You should attach the text component reference to your script at inspector view.
Thanks,
Thank you for your help! I found my mistake, just now! I rewrote the script and assigned it, and then he succeeded! But on the day I submitted the question, I should assign a value to the Text component. In Figure 1, it I printed "Hello world", but it still shows this error, so I uploaded my question. Well, I thought about it now. It may be that I was anxious at the time. I might have written another error, even, I Also packaged on the Android phone, the log display on the Android phone is also Null ReferenceException, but he also has the text paste successfully and displayed on my screen, so I have to ask you for help, but now the problem is inexplicable Ah, aha. This is a great project for scrapbooking text! Thank you for sharing...
Now successful, he shows
Is the error occurring now and the before is exactly same? I make the assumption that some cause like below.
please try it. Thanks.
どうもありがとうございました、私にとってとても役に立ちます、私はあなたに多くのトラブルを与えました、どうもありがとうございました。 I think, I should have found my mistake. Maybe I have extra scripts at the time, or there are extra Text components that are not assigned. Then I just reproduced this bug successfully. I have solved it.
Hello, I met the error of emptying. I don't know where I did wrong. Could you give me some help? Thank you.