• 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 Geismark · Aug 04, 2015 at 05:20 PM · c#unity 5update

Debug.Log() not working?

Hi guys, Im currently making a project using the latest version of unity and I have started to make my game based around servers using Photon Unity Networking, I have entered the following script into a CSharp Script and t$$anonymous$$s is what it looks like:

**using UnityEngine;

using System.Collections;

public class NetworkManager : MonoBehaviour {

 void Start () {

     Connect ();
 }
 void Connect() {
     PhotonNetwork.ConnectUsingSettings ( "v1.0.1" );
 }
 void OnGUI() {
     GUILayout.Label( PhotonNetwork.connectionStateDetailed.ToString() );
 }
 
 void OnJoinedLobby() {
     Debug.Log("OnJoinedLobby");
     PhotonNetwork.JoinRandomRoom();
 }
 void OnPhotonRandomJoinFailed() {
     Debug.Log("OnPhotonRandomJoinFailed");
     PhotonNetwork.CreateRoom( null );
 }
 void OnJoinedRoom() {
     Debug.Log("OnJoinedRoom");
 }

}**

I know t$$anonymous$$s is pretty basic but whenever I run t$$anonymous$$s the script all works except the 'Debug.Log' parts where it simply does not log anyt$$anonymous$$ng.

Thank you for helping!

P.S. At the start there are gaps between the 1st and 2nd line and inbetween all lines from 3rd to 6th, I did not out that into the script intentionally however the preview is a little bit strange and inconsistant (I'm a little OCD)

Comment
Add comment · Show 10
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 Geismark · Aug 04, 2015 at 04:57 PM 0
Share

I made changes to check that the functions were called just to double check and they were called so no problem there, and I will soon check Debug.LogError!

Thanks for your help

EDIT: Just tried Debug.LogError and it also does not work? Sorry for this inconvenience!

avatar image Hellium · Aug 04, 2015 at 05:05 PM 0
Share

Make sure the log buttons are checked :

alt text

avatar image ruzat Hellium · Mar 03, 2016 at 06:19 AM 0
Share

It solved my problem though I didn't put question. Thanks anyway...!

avatar image Geismark · Aug 04, 2015 at 05:07 PM 0
Share

Already were, but double checked anyway, still no result :?

avatar image Hellium · Aug 04, 2015 at 05:09 PM 0
Share

Have you tried through the executable ? What does the output_log.txt say ?

avatar image Geismark · Aug 04, 2015 at 05:14 PM 0
Share

Is this what you are looking for?:

04/08/2015 18:14:07.936 Console[73218]: Failed to connect (_consoleX) outlet from (NSApplication) to (ConsoleX): missing setter or instance variable

Show more comments

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

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

Related Questions

(Game Build) Validating files and updating to latest version 0 Answers

How do i Update a Transforms Position, and how do i have objects face along a spline?? 1 Answer

How to Use Key Combinations with the Control-Key? 2 Answers

How can I Update c# version? 2 Answers

2D Game has very bad lag because of one script? 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