mmmmmm44/VTuber-Python-Unity

Error, Can you help me?

ersanliqiao opened this issue · 9 comments

NullReferenceException: Object reference not set to an instance of an object
UnityChanController.Start () (at Assets/Scripts/UnityChanController.cs:66)

The code is:

    GameObject.FindWithTag("GameController").GetComponent<UISystem>().LoadData();
    GameObject.FindWithTag("GameController").GetComponent<UISystem>().InitUI();

Please download the sample unity project in the UnityAssets/Packages and import them to a blank project, and observe how do I set up the UI and other stuff

Of course you can comment these two lines and other part related to the UI and save load system and the project still can be run.

OK,thank you, I will try.

Please download the sample unity project in the UnityAssets/Packages and import them to a blank project, and observe how do I set up the UI and other stuff

Of course you can comment these two lines and other part related to the UI and save load system and the project still can be run.

I got the same problem, and i try to set unitychan's tag to be GameController, but it didn't work.

can u help me plz? thanks :)

image

Please clone the project and check out the sample project for 3D unity chan by importing the package.

In the image below, notice the hierarchy tree, there is an object called App Controller, which is responsible for the UI stuff. And the tag is exactly "GameController".
image

Alternatively, please disable line 66 and 67 of UnityChanController.cs, which are the two lines responsible for running functions in the script UISystem.cs attached to it. These two lines are responsible for loading user preferences (for detection) and load the UI components. Then the program should run smoothly.

Please clone the project and check out the sample project for 3D unity chan by importing the package.

In the image below, notice the hierarchy tree, there is an object called App Controller, which is responsible for the UI stuff. And the tag is exactly "GameController". image

Alternatively, please disable line 66 and 67 of UnityChanController.cs, which are the two lines responsible for running functions in the script UISystem.cs attached to it. These two lines are responsible for loading user preferences (for detection) and load the UI components. Then the program should run smoothly.

thank u very much, i will try it again!

I‘m also confused about how to run Unity sucessfully. Acoording your image,I set as the same,but the result is not teh same. whether I have set canvas somthing error.
1

Please watch the video walkthrough prepared in youtube:

https://youtu.be/V6Wd2kPNbPY?t=180

Follow the instructions mentioned in the video and the descriptions if any error is faced.

Alternatively, you may download the unity package of the sample project.
Link: https://www.dropbox.com/sh/qh7dcqt0z287idt/AACbljJEcD6knM6JL2uojfIaa?dl=0

thanks,it's very kind of you. Do you use bilibili? I think you can be a good uploader.

No, I don't use bilibili.

However, you can share the youtube video and this project to your friends who wish to try playing around with such technology. I will be very grateful.

Happy coding and experimenting.