message | String or object to be converted to string representation for display. |
context | Object to which the message applies. |
A variant of Debug.Log that logs a warning message to the console.
Debug.LogWarning("A warning assigned to this transform!", transform);
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { Debug.LogWarning("A warning assigned to this transform!", transform); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: Debug.LogWarning('A warning assigned to this transform!', transform)