Home > other > Unity4.0 a few words of JS script, cannot run in Unity5.0, beg god to change.
Unity4.0 a few words of JS script, cannot run in Unity5.0, beg god to change.
Time:09-19
As shown in figure, is the code of the video above, not on my Unity5.0 above the version of the run, the red code to find the Main Camera Camera, obtaining the above sheji. Js script sdshu on a variable's value, could you tell me how to modify?? Grows a new struggle may not be the solution, have a day, hope leaders help see,
CodePudding user response:
Your Main Camera the Main Camera name didn't change
CodePudding user response:
I use test 5.5.4 version, no gameobject. Find methods, suggest using Camera. The main direct access to the main Camera