Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Dopee · Mar 18, 2014 at 03:29 PM · console errorsinternal compiler error

strange error

Hi guys, i have a strange error...

Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Func`1' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

the code is:

 using UnityEngine;
 using System.Collections;
 
 public class NetworkManager : MonoBehaviour {
 
     public Camera standbyCamera;
     SpawnSpot[] spawnSpots;
 
 
     // Use this for initialization                                
     void Start () 
     {
         spawnSpots = GameObject.FindObjectsOfType<SpawnSpot>();
         Connect ();
     }
     
     // Update is called once per frame
     void Connect () 
     {
         PhotonNetwork.ConnectUsingSettings ("1.0");
     }
 
     void OnGUI ()
     {
         GUILayout.Label (PhotonNetwork.connectionStateDetailed.ToString ());
     }
 
     void OnJoinedLobby ()
     {
         PhotonNetwork.JoinRandomRoom ();
     }
 
     void OnPhotonRandomJoinFailed()
     {
         PhotonNetwork.CreateRoom (null);
     }
 
     void OnJoinedRoom()
     {
         SpawnMyPlayer ();
     }
 
     void SpawnMyPlayer ()
     {
         if (spawnSpots == null) 
         {
             Debug.LogError ("HellStarted");
         }
         SpawnSpot mySpawnSpot = spawnSpots [Random.Range (0, spawnSpots.Length)];
         PhotonNetwork.Instantiate("PlayerController", mySpawnSpot.transform.position,  mySpawnSpot.transform.rotation , 0);
         standbyCamera.enabled = false;
     }
 
 
 }

i´d be very nice if you could help me <3

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by wibble82 · Mar 18, 2014 at 04:19 PM

Internal compiler errors are horrible - it basically means something has gone wrong internally, and the compiler has broke so it can't tell you what!

This could be an issue with your setup. If you can't compile any projects at all then that's likely to be the case and I'd start with a reinstall.

If you don't normally experience it, and it's just with this bit of code, there's only 1 reliable way of fixing this type of thing - comment out large chunks of your code until it works again. Put back some code until it stops working. Then comment out a bit of what you put back until it starts working...

Divide and conquer basically. By progressively commenting out bits of your code you can narrow down on the line that's causing the proble,.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dopee · Mar 19, 2014 at 03:21 PM 0
Share

Thank you. that are bad news -.-

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Internal compiler error. See the console log for more information. output was: 2 Answers

when click console not work 1 Answer

Errors with Entity Component System packages at the editor start 0 Answers

Error building Player because scripts had compiler errors,Error building Player because scripts had compiler errors even though there are no errors visible 0 Answers

Internal Compiler Error 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges