Unity forge
Debug.Log Manual     Reference     Scripting  
Scripting > Runtime Classes > Debug
Debug.Log
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • Debug
  • All Members
  • Class Variables
  • isDebugBuild
  • Class Functions
  • Break
  • DrawLine
  • DrawRay
  • Log
  • LogError
  • LogWarning

static function Log (message : object) : void

Description

Logs message to the Unity Console.

JavaScripts
Debug.Log ("Hello");

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Debug.Log("Hello");
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
Debug.Log('Hello')

static function Log (message : object, context : Object) : void

Description

Logs message to the Unity Console.

When you select the message in the console a connection to the context object will be drawn. This is very useful if you want know on which object an error occurs.

JavaScripts
Debug.Log ("Hello", gameObject);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Debug.Log("Hello", gameObject);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
Debug.Log('Hello', gameObject)


Unity3d Рекламный блок Unity3d



Установить Adobe Flash плеер
Ruslan Slobodianiuk © unity3dforge.com все права защищены

Полезные ресурсы:

Программа для создания скриншотов