編輯

共用方式為


DebugUtilities.LogVerbose(String) Method

Definition

Logs the given message to the Unity console and player log if verbose logging is enabled.

public:
 static void LogVerbose(System::String ^ message);
public static void LogVerbose (string message);
static member LogVerbose : string -> unit
Public Shared Sub LogVerbose (message As String)

Parameters

message
String

Remarks

If you are doing string concatenation or manipulation, use LogVerboseFormat that formats the string, as that will not allocate memory when verbose logging is enabled.

For example, don't do: Debug.LogVerbose("This is my message: " + text);

Do: Debug.LogVerbose("This is my message: {0}", text);

Note that verbose logs do not include the callstack to reduce the noise in the generated editor log. Even with default stack trace parameter (StackTraceLogType.ScriptOnly), the editor logs will grow significantly (i.e. a 10x+ line growth factor).

Applies to